source: trunk/mediafolder/c/cddb/makefile@ 150

Last change on this file since 150 was 148, checked in by gyoung, 22 months ago

Automate building of all def files. Some minor code and makefile cleanup

File size: 3.2 KB
Line 
1# Makefile for Audio-CD copy
2
3include ../../../make.inc
4
5CC = icc
6#CPPFLAGS = -O -Wno-write-strings -Zomf -Zcrtdll -s
7#CPPFLAGSSTATIC = -O -Zomf -Zsys -Zmt -s
8CPPFLAGS = /Ge+ /Gm+ /G5 /Ss /Gl /O+ /Oc+ /Ol- /Q+ /Ti /Sp4 /B"/pmtype:pm /ma /de"
9CPPFLAGSVAC = /Ge- /Gm+ /G4 /Gl- /O+ /Oc+ /Ol- /Q+
10INC = ../../include
11MOREINC = $(COMMONSRC)/include
12DEFS =
13PROGS =
14ODIR = .
15CPPDIR = .
16LIBDIR = ./lib
17BINDIR = ../../dist/bin
18HELPERDIR = ..\helper
19#TOOLDIR = $(BUILD_ROOT)/classes/mm-progs
20OBJECTS = cddb.obj \
21 cd.obj \
22 helper.obj \
23 cddbhelper.obj \
24 message.obj
25LIBOBJECTS = $(LIBDIR)/sys_funcs.obj
26
27#printHelper.obj
28#all: querycddb.exe cddbcls.obj
29
30all: pmcddb.exe pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll pmdb088.dll
31
32nlv: pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll pmdb088.dll
33
34pmdb001.dll: ./res/pmcddb001.c ./res/pmcddb001.res
35 cd ./Res && make
36 -rm pmdb001.dll
37 cp ./res/pmcddb001.dll pmdb001.dll
38
39./res/pmcddb001.res: ./res/pmcddb001.rc ./res/pmcddb001.dlg $(INC)/pmcddbres.h
40 cd ./Res && make
41
42pmdb049.dll: ./res/pmcddb049.c ./res/pmcddb049.res
43 -rm pmdb049.dll
44 cp ./res/pmcddb049.dll pmdb049.dll
45
46./res/pmcddb049.res: ./res/pmcddb049.rc ./res/pmcddb049.dlg $(INC)/pmcddbres.h
47 cd ./Res && make
48
49pmdb031.dll: ./res/pmcddb031.c ./res/pmcddb031.res
50 -rm pmdb031.dll
51 cp ./res/pmcddb031.dll pmdb031.dll
52
53./res/pmcddb031.res: ./res/pmcddb031.rc ./res/pmcddb031.dlg $(INC)/pmcddbres.h
54 cd ./Res && make
55
56pmdb039.dll: ./res/pmcddb039.c ./res/pmcddb039.res
57 -rm pmdb039.dll
58 cp ./res/pmcddb039.dll pmdb039.dll
59
60./res/pmcddb039.res: ./res/pmcddb039.rc ./res/pmcddb039.dlg $(INC)/pmcddbres.h
61 cd ./Res && make
62
63
64
65pmdb088.dll: ./res/pmcddb088.c ./res/pmcddb088.res
66 -rm pmdb088.dll
67 cp ./res/pmcddb088.dll pmdb088.dll
68
69./res/pmcddb088.res: ./res/pmcddb088.rc ./res/pmcddb088.dlg $(INC)/pmcddbres.h
70 cd ./Res && make
71
72
73$(LIBDIR)/%.obj: $(COMMONSRC)/%.c
74# $(CC) -c -Wall -o$@ -Zomf -I$(INC) -I$(MOREINC) $<
75 $(CC) $(CPPFLAGS) /C+ -I$(INC) -I$(MOREINC) /Fo$@ $<
76cd.obj: cd.c
77# gcc -c $< -I$(INC) -Zcrtdll -Zomf
78 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
79helper.obj: helper.c
80# gcc -c $< -I$(INC) -Zcrtdll -Zomf
81 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
82message.obj: message.c
83# gcc -c $< -I$(INC) -Zcrtdll -Zomf
84 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
85pmcddb.exe: pmcddb.cpp $(OBJECTS) $(LIBOBJECTS) $(CDDBOBJ) $(INC)\cddb.h $(INC)\cddb.hh
86 cmd /C $(TOOLDIR)\create_def.cmd pmcddb.def
87 $(CC) $(CPPFLAGS) -I$(INC) -I$(MOREINC) $< $(LIBOBJECTS) $(OBJECTS) $(CDDBOBJ) so32dll.lib TCPIP32.LIB pmcddb.def
88
89cddb.obj: cddb.cpp $(INC)\cddb.hh
90# gcc -c cddb.cpp -I$(INC) -Zcrtdll -Zomf
91 echo $(INC)
92 echo $(INCLUDE)
93 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
94cddbcls.obj: cddbcls.cpp $(INC)\cddb.hh $(INC)\cddb.h
95 cd ../pm_launchers && make
96
97
98printHelper.obj: printHelper.cpp
99# gcc -c printHelper.cpp -I$(INC) -Zcrtdll -Zomf
100 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
101cddbhelper.obj: $(HELPERDIR)\cddbhelper.cpp
102# gcc -c $< -I$(INC) -Zcrtdll -Zomf
103 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
104clean:
105 -rm *.o
106 -rm *.obj
107 -rm *.exe
108 -rm *.dll
109 -rm *.def
110 -rm $(LIBDIR)/*.obj
111 -cd ./res && make clean
112
113cleaner:
114 -rm *.*~
115
116
Note: See TracBrowser for help on using the repository browser.