| 1 | # Makefile for Audio-CD copy
|
|---|
| 2 |
|
|---|
| 3 | CC = icc
|
|---|
| 4 | LIB_DIR = $d:/emx/lib
|
|---|
| 5 | #CPPFLAGS = -Ge- /Gm+ -G4 -Gl /O+ -Oc+ -Ol
|
|---|
| 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 | DEFS =
|
|---|
| 12 | PROGS =
|
|---|
| 13 | ODIR = .
|
|---|
| 14 | CPPDIR = .
|
|---|
| 15 | BINDIR = ../../dist/bin
|
|---|
| 16 | HELPERDIR = ..\helper
|
|---|
| 17 |
|
|---|
| 18 | CPPFILES =
|
|---|
| 19 | OBJECTS = cddb.obj cd.obj helper.obj cddbhelper.obj message.obj
|
|---|
| 20 | #printHelper.obj
|
|---|
| 21 | #all: querycddb.exe cddbcls.obj
|
|---|
| 22 |
|
|---|
| 23 | all: pmcddb.exe pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll
|
|---|
| 24 |
|
|---|
| 25 | nlv: pmdb001.dll pmdb049.dll pmdb031.dll pmdb039.dll
|
|---|
| 26 |
|
|---|
| 27 | pmdb001.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 |
|
|---|
| 34 | pmdb049.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 |
|
|---|
| 41 | pmdb031.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 |
|
|---|
| 48 | pmdb039.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 |
|
|---|
| 55 | cd.obj: cd.c
|
|---|
| 56 | gcc -c $< -I$(INC) -Zcrtdll -Zomf
|
|---|
| 57 | # cd ../. && cd helper && make
|
|---|
| 58 |
|
|---|
| 59 | helper.obj: helper.c
|
|---|
| 60 | gcc -c $< -I$(INC) -Zcrtdll -Zomf
|
|---|
| 61 |
|
|---|
| 62 | message.obj: message.c
|
|---|
| 63 | gcc -c $< -I$(INC) -Zcrtdll -Zomf
|
|---|
| 64 |
|
|---|
| 65 | pmcddb.exe: pmcddb.cc $(OBJECTS) $(CDDBOBJ) $(INC)\cddb.h $(INC)\cddb.hh
|
|---|
| 66 | gcc $< $(CPPFLAGS) -I$(INC) $(OBJECTS) $(CDDBOBJ) -lsocket pmcddb.def
|
|---|
| 67 |
|
|---|
| 68 | cddb.obj: cddb.cpp $(INC)\cddb.hh
|
|---|
| 69 | gcc -c cddb.cpp -I$(INC) -Zcrtdll -Zomf
|
|---|
| 70 |
|
|---|
| 71 | cddbcls.obj: cddbcls.cpp $(INC)\cddb.hh $(INC)\cddb.h
|
|---|
| 72 | cd ../pm_launchers && make
|
|---|
| 73 |
|
|---|
| 74 |
|
|---|
| 75 | printHelper.obj: printHelper.cpp
|
|---|
| 76 | gcc -c printHelper.cpp -I$(INC) -Zcrtdll -Zomf
|
|---|
| 77 |
|
|---|
| 78 | cddbhelper.obj: $(HELPERDIR)\cddbhelper.cpp
|
|---|
| 79 | gcc -c $< -I$(INC) -Zcrtdll -Zomf
|
|---|
| 80 |
|
|---|
| 81 | clean:
|
|---|
| 82 | -rm *.obj
|
|---|
| 83 | -rm *.exe
|
|---|
| 84 | -rm *.dll
|
|---|
| 85 | -cd ./res && make clean
|
|---|
| 86 |
|
|---|
| 87 | cleaner:
|
|---|
| 88 | -rm *.*~
|
|---|
| 89 |
|
|---|
| 90 |
|
|---|
| 91 |
|
|---|