[2] | 1 | # Makefile
|
---|
| 2 |
|
---|
| 3 | include ../make.inc
|
---|
| 4 |
|
---|
| 5 | DISTNAME = cwaudio-classes-$(VERSION)
|
---|
| 6 | CC = icc
|
---|
| 7 |
|
---|
| 8 | LDFLAGS = /Gm+ -G4 /Ss -Gl /O+ -Oc+ -Ol- /Q+
|
---|
| 9 | #-Wcnd /Weff /Wini /Wpar /Wpro /Wuse /Wrea
|
---|
| 10 | #CFLAGS = /Wuse /Wrea -Ge- /Gm+ -G4 /Ss -Gl /O+ -Oc+ -Ol- /Q+ /C
|
---|
| 11 | CFLAGS = -Ge- /Gm+ -G4 /Ss -Gl /O+ -Oc+ -Ol- /Q+ /C
|
---|
| 12 |
|
---|
| 13 | LIBS = somtk.lib mmPM2.lib rexx.lib
|
---|
| 14 | DEFS =
|
---|
| 15 |
|
---|
| 16 | MOREINC = ./include -I./inc -I../common_functions/include
|
---|
| 17 | CDIR = ./c
|
---|
| 18 | IDLDIR = ./idl
|
---|
| 19 | OBJDIR = ./obj
|
---|
| 20 | # Object files of common functions are going here
|
---|
| 21 | LIBDIR = ./lib
|
---|
| 22 | #Where the resource dlls are going
|
---|
| 23 | RESDLLDIR = ./RES/dll
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | #######################################
|
---|
| 27 | #
|
---|
| 28 | # Define compile command
|
---|
| 29 | #
|
---|
| 30 | #######################################
|
---|
| 31 | COMPILE = $(CC) -I $(MOREINC) $(CFLAGS) /Fo$@ $<
|
---|
| 32 |
|
---|
| 33 |
|
---|
| 34 |
|
---|
| 35 | #######################################
|
---|
| 36 | #
|
---|
| 37 | # Define objects to build
|
---|
| 38 | #
|
---|
| 39 | #######################################
|
---|
| 40 |
|
---|
| 41 | # These are the object files containing general functions
|
---|
| 42 | LIBOBJS = $(LIBDIR)/menu_funcs.obj $(LIBDIR)/message.obj $(LIBDIR)/ea_funcs.obj $(LIBDIR)/som_wps_funcs.obj \
|
---|
| 43 | $(LIBDIR)/sys_funcs.obj
|
---|
| 44 |
|
---|
| 45 | #Audio objects
|
---|
| 46 | OBJECTS = $(OBJDIR)/cwaudio.obj $(OBJDIR)/cwmp3.obj \
|
---|
| 47 | $(OBJDIR)/cwvoc.obj \
|
---|
| 48 | $(OBJDIR)/cwm3u.obj $(OBJDIR)/cwflac.obj
|
---|
| 49 |
|
---|
| 50 |
|
---|
| 51 | #######################################
|
---|
| 52 | #
|
---|
| 53 | # Define targets to build
|
---|
| 54 | #
|
---|
| 55 | #######################################
|
---|
| 56 | all: mmtest.exe
|
---|
| 57 |
|
---|
| 58 |
|
---|
| 59 | RESDLL :
|
---|
| 60 | #$(RESDLLDIR)/mmres_de.dll $(RESDLLDIR)/mmres_en.dll
|
---|
| 61 |
|
---|
| 62 | mmtest.exe: mmtest.c
|
---|
| 63 | $(CC) $(LDFLAGS) $< /L /Fm$(basename $@) /Fe$@ $(LIBS)
|
---|
| 64 |
|
---|
| 65 | # $(CC) $(LDFLAGS) /L /Fm$(basename $@) /Fe$@ $(ALL_OBJECTS) $(LIBS) ./c/cwmm.def
|
---|
| 66 |
|
---|
| 67 |
|
---|
| 68 |
|
---|
| 69 |
|
---|
| 70 | ###################################
|
---|
| 71 | #
|
---|
| 72 | # Rules for cleaning the tree
|
---|
| 73 | #
|
---|
| 74 | ###################################
|
---|
| 75 |
|
---|
| 76 | clean:
|
---|
| 77 | -rm *.obj
|
---|
| 78 | -rm *.exe
|
---|
| 79 |
|
---|
| 80 |
|
---|
| 81 |
|
---|
| 82 |
|
---|
| 83 |
|
---|