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

Last change on this file since 144 was 129, checked in by gyoung, 2 years ago

Change missed in CS 128

File size: 3.1 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
19OBJECTS = cddb.obj \
20 cd.obj \
21 helper.obj \
22 cddbhelper.obj \
23 message.obj
24LIBOBJECTS = $(LIBDIR)/sys_funcs.obj
25
26#printHelper.obj
27#all: querycddb.exe cddbcls.obj
28
29all: pmcddb.exe pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll pmdb088.dll
30
31nlv: pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll pmdb088.dll
32
33pmdb001.dll: ./res/pmcddb001.c ./res/pmcddb001.res
34 cd ./Res && make
35 -rm pmdb001.dll
36 cp ./res/pmcddb001.dll pmdb001.dll
37
38./res/pmcddb001.res: ./res/pmcddb001.rc ./res/pmcddb001.dlg $(INC)/pmcddbres.h
39 cd ./Res && make
40
41pmdb049.dll: ./res/pmcddb049.c ./res/pmcddb049.res
42 -rm pmdb049.dll
43 cp ./res/pmcddb049.dll pmdb049.dll
44
45./res/pmcddb049.res: ./res/pmcddb049.rc ./res/pmcddb049.dlg $(INC)/pmcddbres.h
46 cd ./Res && make
47
48pmdb031.dll: ./res/pmcddb031.c ./res/pmcddb031.res
49 -rm pmdb031.dll
50 cp ./res/pmcddb031.dll pmdb031.dll
51
52./res/pmcddb031.res: ./res/pmcddb031.rc ./res/pmcddb031.dlg $(INC)/pmcddbres.h
53 cd ./Res && make
54
55pmdb039.dll: ./res/pmcddb039.c ./res/pmcddb039.res
56 -rm pmdb039.dll
57 cp ./res/pmcddb039.dll pmdb039.dll
58
59./res/pmcddb039.res: ./res/pmcddb039.rc ./res/pmcddb039.dlg $(INC)/pmcddbres.h
60 cd ./Res && make
61
62
63
64pmdb088.dll: ./res/pmcddb088.c ./res/pmcddb088.res
65 -rm pmdb088.dll
66 cp ./res/pmcddb088.dll pmdb088.dll
67
68./res/pmcddb088.res: ./res/pmcddb088.rc ./res/pmcddb088.dlg $(INC)/pmcddbres.h
69 cd ./Res && make
70
71
72$(LIBDIR)/%.obj: $(COMMONSRC)/%.c
73# $(CC) -c -Wall -o$@ -Zomf -I$(INC) -I$(MOREINC) $<
74 $(CC) $(CPPFLAGS) /C+ -I$(INC) -I$(MOREINC) /Fo$@ $<
75cd.obj: cd.c
76# gcc -c $< -I$(INC) -Zcrtdll -Zomf
77 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
78helper.obj: helper.c
79# gcc -c $< -I$(INC) -Zcrtdll -Zomf
80 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
81message.obj: message.c
82# gcc -c $< -I$(INC) -Zcrtdll -Zomf
83 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
84pmcddb.exe: pmcddb.cpp $(OBJECTS) $(LIBOBJECTS) $(CDDBOBJ) $(INC)\cddb.h $(INC)\cddb.hh
85 $(CC) $(CPPFLAGS) -I$(INC) -I$(MOREINC) $< $(LIBOBJECTS) $(OBJECTS) $(CDDBOBJ) so32dll.lib TCPIP32.LIB pmcddb.def
86
87cddb.obj: cddb.cpp $(INC)\cddb.hh
88# gcc -c cddb.cpp -I$(INC) -Zcrtdll -Zomf
89 echo $(INC)
90 echo $(INCLUDE)
91 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
92cddbcls.obj: cddbcls.cpp $(INC)\cddb.hh $(INC)\cddb.h
93 cd ../pm_launchers && make
94
95
96printHelper.obj: printHelper.cpp
97# gcc -c printHelper.cpp -I$(INC) -Zcrtdll -Zomf
98 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
99cddbhelper.obj: $(HELPERDIR)\cddbhelper.cpp
100# gcc -c $< -I$(INC) -Zcrtdll -Zomf
101 $(CC) $(CPPFLAGS) /C+ -I$(INC) /Fo$@ $<
102clean:
103 -rm *.o
104 -rm *.obj
105 -rm *.exe
106 -rm *.dll
107 -rm $(LIBDIR)/*.obj
108 -cd ./res && make clean
109
110cleaner:
111 -rm *.*~
112
113
114
Note: See TracBrowser for help on using the repository browser.