| 1 | # Makefile for Audio-CD copy
|
|---|
| 2 |
|
|---|
| 3 | include ../../../make.inc
|
|---|
| 4 |
|
|---|
| 5 | CC = gcc
|
|---|
| 6 | CPPFLAGS = -O -Zomf -Zcrtdll -s
|
|---|
| 7 | #CPPFLAGSSTATIC = -O -Zomf -Zsys -Zmt -s
|
|---|
| 8 |
|
|---|
| 9 | CPPFLAGSVAC = /Ge- /Gm+ /G4 /Gl /O+ /Oc+ /Ol- /Q+
|
|---|
| 10 | INC = ../../include
|
|---|
| 11 | MOREINC = $(COMMONSRC)/include
|
|---|
| 12 | DEFS =
|
|---|
| 13 | PROGS =
|
|---|
| 14 | ODIR = .
|
|---|
| 15 | CPPDIR = .
|
|---|
| 16 | LIBDIR = ./lib
|
|---|
| 17 | BINDIR = ../../dist/bin
|
|---|
| 18 | HELPERDIR = ..\helper
|
|---|
| 19 | OBJECTS = cddb.o \
|
|---|
| 20 | cd.o \
|
|---|
| 21 | helper.o \
|
|---|
| 22 | cddbhelper.o \
|
|---|
| 23 | message.o
|
|---|
| 24 | LIBOBJECTS = $(LIBDIR)/sys_funcs.obj
|
|---|
| 25 |
|
|---|
| 26 | #printHelper.obj
|
|---|
| 27 | #all: querycddb.exe cddbcls.obj
|
|---|
| 28 |
|
|---|
| 29 | all: pmcddb.exe pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll pmdb088.dll
|
|---|
| 30 |
|
|---|
| 31 | nlv: pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll pmdb088.dll
|
|---|
| 32 |
|
|---|
| 33 | pmdb001.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 |
|
|---|
| 41 | pmdb049.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 |
|
|---|
| 48 | pmdb031.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 |
|
|---|
| 55 | pmdb039.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 |
|
|---|
| 64 | pmdb088.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 |
|
|---|
| 75 | cd.o: cd.c
|
|---|
| 76 | gcc -c $< -I$(INC) -Zcrtdll -Zomf
|
|---|
| 77 |
|
|---|
| 78 | helper.o: helper.c
|
|---|
| 79 | gcc -c $< -I$(INC) -Zcrtdll -Zomf
|
|---|
| 80 |
|
|---|
| 81 | message.o: message.c
|
|---|
| 82 | gcc -c $< -I$(INC) -Zcrtdll -Zomf
|
|---|
| 83 |
|
|---|
| 84 | pmcddb.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 |
|
|---|
| 88 | cddb.o: cddb.cpp $(INC)\cddb.hh
|
|---|
| 89 | gcc -c cddb.cpp -I$(INC) -Zcrtdll -Zomf
|
|---|
| 90 |
|
|---|
| 91 | cddbcls.o: cddbcls.cpp $(INC)\cddb.hh $(INC)\cddb.h
|
|---|
| 92 | cd ../pm_launchers && make
|
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 | printHelper.o: printHelper.cpp
|
|---|
| 96 | gcc -c printHelper.cpp -I$(INC) -Zcrtdll -Zomf
|
|---|
| 97 |
|
|---|
| 98 | cddbhelper.o: $(HELPERDIR)\cddbhelper.cpp
|
|---|
| 99 | gcc -c $< -I$(INC) -Zcrtdll -Zomf
|
|---|
| 100 |
|
|---|
| 101 | clean:
|
|---|
| 102 | -rm *.o
|
|---|
| 103 | -rm *.exe
|
|---|
| 104 | -rm *.dll
|
|---|
| 105 | -cd ./res && make clean
|
|---|
| 106 |
|
|---|
| 107 | cleaner:
|
|---|
| 108 | -rm *.*~
|
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 |
|
|---|