| 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.obj \
|
|---|
| 20 | cd.obj \
|
|---|
| 21 | helper.obj \
|
|---|
| 22 | cddbhelper.obj \
|
|---|
| 23 | message.obj
|
|---|
| 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 | -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 |
|
|---|
| 40 | pmdb049.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 |
|
|---|
| 47 | pmdb031.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 |
|
|---|
| 54 | pmdb039.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 |
|
|---|
| 63 | pmdb088.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 |
|
|---|
| 74 | cd.obj: cd.c
|
|---|
| 75 | gcc -c $< -I$(INC) -Zcrtdll -Zomf
|
|---|
| 76 |
|
|---|
| 77 | helper.obj: helper.c
|
|---|
| 78 | gcc -c $< -I$(INC) -Zcrtdll -Zomf
|
|---|
| 79 |
|
|---|
| 80 | message.obj: message.c
|
|---|
| 81 | gcc -c $< -I$(INC) -Zcrtdll -Zomf
|
|---|
| 82 |
|
|---|
| 83 | pmcddb.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 |
|
|---|
| 86 | cddb.obj: cddb.cpp $(INC)\cddb.hh
|
|---|
| 87 | gcc -c cddb.cpp -I$(INC) -Zcrtdll -Zomf
|
|---|
| 88 |
|
|---|
| 89 | cddbcls.obj: cddbcls.cpp $(INC)\cddb.hh $(INC)\cddb.h
|
|---|
| 90 | cd ../pm_launchers && make
|
|---|
| 91 |
|
|---|
| 92 |
|
|---|
| 93 | printHelper.obj: printHelper.cpp
|
|---|
| 94 | gcc -c printHelper.cpp -I$(INC) -Zcrtdll -Zomf
|
|---|
| 95 |
|
|---|
| 96 | cddbhelper.obj: $(HELPERDIR)\cddbhelper.cpp
|
|---|
| 97 | gcc -c $< -I$(INC) -Zcrtdll -Zomf
|
|---|
| 98 |
|
|---|
| 99 | clean:
|
|---|
| 100 | -rm *.obj
|
|---|
| 101 | -rm *.exe
|
|---|
| 102 | -rm *.dll
|
|---|
| 103 | -cd ./res && make clean
|
|---|
| 104 |
|
|---|
| 105 | cleaner:
|
|---|
| 106 | -rm *.*~
|
|---|
| 107 |
|
|---|
| 108 |
|
|---|
| 109 |
|
|---|