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

Last change on this file since 168 was 156, checked in by gyoung, 21 months ago

Changes to build all the language dlls for cddb

File size: 4.0 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 pmdb007.dll pmdb049.dll pmdb031.dll \
31 pmdb039.dll pmdb088.dll pmdb033.dll pmdb034.dll
32
33nlv: pmdb001.dll pmdb007.dll pmdb049.dll pmdb031.dll \
34 pmdb039.dll pmdb088.dll pmdb033.dll pmdb034.dll
35
36pmdb001.dll: ./res/pmcddb001.c ./res/pmcddb001.res
37 cd ./Res && make
38 -rm pmdb001.dll
39 cp ./res/pmcddb001.dll pmdb001.dll
40
41./res/pmcddb001.res: ./res/pmcddb001.rc ./res/pmcddb001.dlg $(INC)/pmcddbres.h
42 cd ./Res && make
43
44pmdb007.dll: ./res/pmcddb007.c ./res/pmcddb007.res
45 -rm pmdb007.dll
46 cp ./res/pmcddb007.dll pmdb007.dll
47
48./res/pmcddb007.res: ./res/pmcddb007.rc ./res/pmcddb007.dlg $(INC)/pmcddbres.h
49 cd ./Res && make
50
51pmdb049.dll: ./res/pmcddb049.c ./res/pmcddb049.res
52 -rm pmdb049.dll
53 cp ./res/pmcddb049.dll pmdb049.dll
54
55./res/pmcddb049.res: ./res/pmcddb049.rc ./res/pmcddb049.dlg $(INC)/pmcddbres.h
56 cd ./Res && make
57
58pmdb031.dll: ./res/pmcddb031.c ./res/pmcddb031.res
59 -rm pmdb031.dll
60 cp ./res/pmcddb031.dll pmdb031.dll
61
62./res/pmcddb031.res: ./res/pmcddb031.rc ./res/pmcddb031.dlg $(INC)/pmcddbres.h
63 cd ./Res && make
64
65pmdb033.dll: ./res/pmcddb033.c ./res/pmcddb033.res
66 -rm pmdb033.dll
67 cp ./res/pmcddb033.dll pmdb033.dll
68
69./res/pmcddb033.res: ./res/pmcddb033.rc ./res/pmcddb033.dlg $(INC)/pmcddbres.h
70 cd ./Res && make
71
72pmdb034.dll: ./res/pmcddb034.c ./res/pmcddb034.res
73 -rm pmdb034.dll
74 cp ./res/pmcddb034.dll pmdb034.dll
75
76./res/pmcddb034.res: ./res/pmcddb034.rc ./res/pmcddb034.dlg $(INC)/pmcddbres.h
77 cd ./Res && make
78
79pmdb039.dll: ./res/pmcddb039.c ./res/pmcddb039.res
80 -rm pmdb039.dll
81 cp ./res/pmcddb039.dll pmdb039.dll
82
83./res/pmcddb039.res: ./res/pmcddb039.rc ./res/pmcddb039.dlg $(INC)/pmcddbres.h
84 cd ./Res && make
85
86
87
88pmdb088.dll: ./res/pmcddb088.c ./res/pmcddb088.res
89 -rm pmdb088.dll
90 cp ./res/pmcddb088.dll pmdb088.dll
91
92./res/pmcddb088.res: ./res/pmcddb088.rc ./res/pmcddb088.dlg $(INC)/pmcddbres.h
93 cd ./Res && make
94
95
96$(LIBDIR)/%.obj: $(COMMONSRC)/%.c
97# $(CC) -c -Wall -o$@ -Zomf -I$(INC) -I$(MOREINC) $<
98 $(CC) $(CPPFLAGS) /C+ -I$(INC) -I$(MOREINC) /Fo$@ $<
99cd.obj: cd.c
100# gcc -c $< -I$(INC) -Zcrtdll -Zomf
101 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
102helper.obj: helper.c
103# gcc -c $< -I$(INC) -Zcrtdll -Zomf
104 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
105message.obj: message.c
106# gcc -c $< -I$(INC) -Zcrtdll -Zomf
107 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
108pmcddb.exe: pmcddb.cpp $(OBJECTS) $(LIBOBJECTS) $(CDDBOBJ) $(INC)\cddb.h $(INC)\cddb.hh
109 cmd /C $(TOOLDIR)\create_def.cmd pmcddb.def
110 $(CC) $(CPPFLAGS) -I$(INC) -I$(MOREINC) $< $(LIBOBJECTS) $(OBJECTS) $(CDDBOBJ) so32dll.lib TCPIP32.LIB pmcddb.def
111
112cddb.obj: cddb.cpp $(INC)\cddb.hh
113# gcc -c cddb.cpp -I$(INC) -Zcrtdll -Zomf
114 echo $(INC)
115 echo $(INCLUDE)
116 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
117cddbcls.obj: cddbcls.cpp $(INC)\cddb.hh $(INC)\cddb.h
118 cd ../pm_launchers && make
119
120
121printHelper.obj: printHelper.cpp
122# gcc -c printHelper.cpp -I$(INC) -Zcrtdll -Zomf
123 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
124cddbhelper.obj: $(HELPERDIR)\cddbhelper.cpp
125# gcc -c $< -I$(INC) -Zcrtdll -Zomf
126 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
127clean:
128 -rm *.o
129 -rm *.obj
130 -rm *.exe
131 -rm *.dll
132 -rm *.def
133 -rm $(LIBDIR)/*.obj
134 -cd ./res && make clean
135
136cleaner:
137 -rm *.*~
138
139
Note: See TracBrowser for help on using the repository browser.