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

Last change on this file since 3 was 2, checked in by stevenhl, 8 years ago

Import sources from cwmm-full.zip dated 2005-03-21

File size: 2.3 KB
Line 
1# Makefile for Audio-CD copy
2
3CC = icc
4LIB_DIR = $d:/emx/lib
5#CPPFLAGS = -Ge- /Gm+ -G4 -Gl /O+ -Oc+ -Ol
6CPPFLAGS = -O -Zomf -Zcrtdll -s
7#CPPFLAGSSTATIC = -O -Zomf -Zsys -Zmt -s
8
9CPPFLAGSVAC = /Ge- /Gm+ /G4 /Gl /O+ /Oc+ /Ol- /Q+
10INC = ../../include
11DEFS =
12PROGS =
13ODIR = .
14CPPDIR = .
15BINDIR = ../../dist/bin
16HELPERDIR = ..\helper
17
18CPPFILES =
19OBJECTS = cddb.obj cd.obj helper.obj cddbhelper.obj message.obj
20#printHelper.obj
21#all: querycddb.exe cddbcls.obj
22
23all: pmcddb.exe pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll
24
25nlv: pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll
26
27pmdb001.dll: ./res/pmcddb001.c ./res/pmcddb001.res
28 -rm pmdb001.dll
29 cp ./res/pmcddb001.dll pmdb001.dll
30
31./res/pmcddb001.res: ./res/pmcddb001.rc ./res/pmcddb001.dlg $(INC)/pmcddbres.h
32 cd ./Res && make
33
34pmdb049.dll: ./res/pmcddb049.c ./res/pmcddb049.res
35 -rm pmdb049.dll
36 cp ./res/pmcddb049.dll pmdb049.dll
37
38./res/pmcddb049.res: ./res/pmcddb049.rc ./res/pmcddb049.dlg $(INC)/pmcddbres.h
39 cd ./Res && make
40
41pmdb031.dll: ./res/pmcddb031.c ./res/pmcddb031.res
42 -rm pmdb031.dll
43 cp ./res/pmcddb031.dll pmdb031.dll
44
45./res/pmcddb031.res: ./res/pmcddb031.rc ./res/pmcddb031.dlg $(INC)/pmcddbres.h
46 cd ./Res && make
47
48pmdb039.dll: ./res/pmcddb039.c ./res/pmcddb039.res
49 -rm pmdb039.dll
50 cp ./res/pmcddb039.dll pmdb039.dll
51
52./res/pmcddb039.res: ./res/pmcddb039.rc ./res/pmcddb039.dlg $(INC)/pmcddbres.h
53 cd ./Res && make
54
55cd.obj: cd.c
56 gcc -c $< -I$(INC) -Zcrtdll -Zomf
57# cd ../. && cd helper && make
58
59helper.obj: helper.c
60 gcc -c $< -I$(INC) -Zcrtdll -Zomf
61
62message.obj: message.c
63 gcc -c $< -I$(INC) -Zcrtdll -Zomf
64
65pmcddb.exe: pmcddb.cc $(OBJECTS) $(CDDBOBJ) $(INC)\cddb.h $(INC)\cddb.hh
66 gcc $< $(CPPFLAGS) -I$(INC) $(OBJECTS) $(CDDBOBJ) -lsocket pmcddb.def
67
68cddb.obj: cddb.cpp $(INC)\cddb.hh
69 gcc -c cddb.cpp -I$(INC) -Zcrtdll -Zomf
70
71cddbcls.obj: cddbcls.cpp $(INC)\cddb.hh $(INC)\cddb.h
72 cd ../pm_launchers && make
73
74
75printHelper.obj: printHelper.cpp
76 gcc -c printHelper.cpp -I$(INC) -Zcrtdll -Zomf
77
78cddbhelper.obj: $(HELPERDIR)\cddbhelper.cpp
79 gcc -c $< -I$(INC) -Zcrtdll -Zomf
80
81clean:
82 -rm *.obj
83 -rm *.exe
84 -rm *.dll
85 -cd ./res && make clean
86
87cleaner:
88 -rm *.*~
89
90
91
Note: See TracBrowser for help on using the repository browser.