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

Last change on this file since 13 was 4, checked in by stevenhl, 8 years ago

Import modifications from cwmm-0_2_9-work-01_10_2006.zip dated 2006-08-27

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