source: trunk/mediafolder/c/cddb/makefile

Last change on this file was 221, checked in by gyoung, 5 months ago

Fix updating of pmcddb def file

File size: 2.7 KB
Line 
1# Makefile for Audio-CD copy
2
3include ../../../make.inc
4
5CC = gcc
6CPPFLAGS = -O -Zomf -Zcrtdll -s
7#CPPFLAGSSTATIC = -O -Zomf -Zsys -Zmt -s
8
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.o \
20 cd.o \
21 helper.o \
22 cddbhelper.o \
23 message.o
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
75cd.o: cd.c
76 gcc -c $< -I$(INC) -Zcrtdll -Zomf
77
78helper.o: helper.c
79 gcc -c $< -I$(INC) -Zcrtdll -Zomf
80
81message.o: message.c
82 gcc -c $< -I$(INC) -Zcrtdll -Zomf
83
84pmcddb.exe: pmcddb.cpp $(OBJECTS) $(LIBOBJECTS) $(CDDBOBJ) $(INC)\cddb.h $(INC)\cddb.hh
85 cmd /C $(TOOLDIR)\create_def.cmd pmcddb.def
86 $(CC) $< $(CPPFLAGS) -I$(INC) -I$(MOREINC) $(LIBOBJECTS) $(OBJECTS) $(CDDBOBJ) -lsocket -lstdc++6_dll.lib pmcddb.def
87
88cddb.o: cddb.cpp $(INC)\cddb.hh
89 gcc -c cddb.cpp -I$(INC) -Zcrtdll -Zomf
90
91cddbcls.o: cddbcls.cpp $(INC)\cddb.hh $(INC)\cddb.h
92 cd ../pm_launchers && make
93
94
95printHelper.o: printHelper.cpp
96 gcc -c printHelper.cpp -I$(INC) -Zcrtdll -Zomf
97
98cddbhelper.o: $(HELPERDIR)\cddbhelper.cpp
99 gcc -c $< -I$(INC) -Zcrtdll -Zomf
100
101clean:
102 -rm *.o
103 -rm *.exe
104 -rm *.dll
105 -cd ./res && make clean
106
107cleaner:
108 -rm *.*~
109
110
111
Note: See TracBrowser for help on using the repository browser.