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
RevLine 
[2]1# Makefile for Audio-CD copy
2
[4]3include ../../../make.inc
4
[211]5CC = gcc
6CPPFLAGS = -O -Zomf -Zcrtdll -s
[2]7#CPPFLAGSSTATIC = -O -Zomf -Zsys -Zmt -s
[211]8
9CPPFLAGSVAC = /Ge- /Gm+ /G4 /Gl /O+ /Oc+ /Ol- /Q+
[2]10INC = ../../include
[4]11MOREINC = $(COMMONSRC)/include
[211]12DEFS =
13PROGS =
[2]14ODIR = .
15CPPDIR = .
[4]16LIBDIR = ./lib
[2]17BINDIR = ../../dist/bin
18HELPERDIR = ..\helper
[211]19OBJECTS = cddb.o \
20 cd.o \
21 helper.o \
22 cddbhelper.o \
23 message.o
[4]24LIBOBJECTS = $(LIBDIR)/sys_funcs.obj
[2]25
26#printHelper.obj
27#all: querycddb.exe cddbcls.obj
28
[211]29all: pmcddb.exe pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll pmdb088.dll
[2]30
[211]31nlv: pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll pmdb088.dll
[2]32
33pmdb001.dll: ./res/pmcddb001.c ./res/pmcddb001.res
[53]34 cd ./Res && make
[2]35 -rm pmdb001.dll
36 cp ./res/pmcddb001.dll pmdb001.dll
37
[211]38./res/pmcddb001.res: ./res/pmcddb001.rc ./res/pmcddb001.dlg $(INC)/pmcddbres.h
[2]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
[211]45./res/pmcddb049.res: ./res/pmcddb049.rc ./res/pmcddb049.dlg $(INC)/pmcddbres.h
[2]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
[211]52./res/pmcddb031.res: ./res/pmcddb031.rc ./res/pmcddb031.dlg $(INC)/pmcddbres.h
[2]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
[211]59./res/pmcddb039.res: ./res/pmcddb039.rc ./res/pmcddb039.dlg $(INC)/pmcddbres.h
[2]60 cd ./Res && make
61
[4]62
63
64pmdb088.dll: ./res/pmcddb088.c ./res/pmcddb088.res
65 -rm pmdb088.dll
66 cp ./res/pmcddb088.dll pmdb088.dll
67
[211]68./res/pmcddb088.res: ./res/pmcddb088.rc ./res/pmcddb088.dlg $(INC)/pmcddbres.h
[4]69 cd ./Res && make
70
71
[211]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
[127]84pmcddb.exe: pmcddb.cpp $(OBJECTS) $(LIBOBJECTS) $(CDDBOBJ) $(INC)\cddb.h $(INC)\cddb.hh
[221]85 cmd /C $(TOOLDIR)\create_def.cmd pmcddb.def
[211]86 $(CC) $< $(CPPFLAGS) -I$(INC) -I$(MOREINC) $(LIBOBJECTS) $(OBJECTS) $(CDDBOBJ) -lsocket -lstdc++6_dll.lib pmcddb.def
[4]87
[211]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
[2]92 cd ../pm_launchers && make
93
94
[211]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
[2]101clean:
[128]102 -rm *.o
[2]103 -rm *.exe
104 -rm *.dll
105 -cd ./res && make clean
106
107cleaner:
108 -rm *.*~
109
110
[211]111
Note: See TracBrowser for help on using the repository browser.