author | ecalot
<ecalot> 2005-06-02 21:14:55 UTC |
committer | ecalot
<ecalot> 2005-06-02 21:14:55 UTC |
parent | 6bdfeb624b2e735fc72f43c73e0f8e7b2a4ad3a1 |
PR/src/.cvsignore | +1 | -1 |
PR/src/Makefile | +67 | -66 |
diff --git a/PR/src/.cvsignore b/PR/src/.cvsignore index b30a728..73adfd9 100644 --- a/PR/src/.cvsignore +++ b/PR/src/.cvsignore @@ -1,2 +1,2 @@ -*.o +.*.o bin diff --git a/PR/src/Makefile b/PR/src/Makefile index d5dcd9b..56e5372 100644 --- a/PR/src/Makefile +++ b/PR/src/Makefile @@ -8,6 +8,7 @@ INFO = @echo MAKEDIR = @mkdir -p REMOVER = @rm -f GZIP = @gzip +COPY = @cp -f ##################### # Operating Systems # @@ -20,7 +21,7 @@ ifeq ($(OS),Linux) PORTS = else LINUX = -DNOLINUX - PORTS = getopt.o getopt1.o + PORTS = .getopt.o .getopt1.o ifeq ($(OS),Darwin) LINUX = -DNOLINUX -DMACOS endif @@ -50,13 +51,13 @@ else LINKERRELEASE = -s endif -FILES = import.o export.o resources.o classify.o disk.o\ - dat.o bmp.o mid.o pal.o wav.o plv.o\ - memory.o pr.o +FILES = .import.o .export.o .resources.o .classify.o .disk.o\ + .dat.o .bmp.o .mid.o .pal.o .wav.o .plv.o\ + .memory.o .pr.o -XML = parse.o search.o -COMPRESS = compress.o lzg_compress.o lzg_uncompress.o rle_compress.o rle_uncompress.o -CONSOLE = main.o filedir.o +XML = .parse.o .search.o +COMPRESS = .compress.o .lzg_compress.o .lzg_uncompress.o .rle_compress.o .rle_uncompress.o +CONSOLE = .main.o .filedir.o EXEOBJ = $(FILES) $(XML) $(COMPRESS) $(CONSOLE) $(PORTS) LIBOBJ = $(FILES) $(XML) $(COMPRESS) $(PORTS) @@ -64,7 +65,7 @@ LIBOBJ = $(FILES) $(XML) $(COMPRESS) $(PORTS) EXEFILE = bin/pr XMLFILE = bin/resources.xml -ADDONS = python.o +ADDONS = .python.o #Use this to temporary remove an option OPTIONS = $(INCLUDE) $(DEFINES) $(RELEASE) @@ -75,7 +76,7 @@ LINKEROPTIONS = $(LINKERRELEASE) $(EXEFILE): $(EXEOBJ) $(INFO) Linking files... $(MAKEDIR) bin - $(CC) $(OPTIONS) -o $(EXEFILE) $(EXEOBJ) + $(CC) $(OPTIONS) -o $(EXEFILE) $(EXEOBJ) -o $@ $(INFO) Program successfully compiled $(INFO) $(INFO) Please read readme.txt for syntax information @@ -99,7 +100,7 @@ all: $(EXEFILE) lib: $(LIBOBJ) $(MAKEDIR) bin $(INFO) Making dynamic library... - $(CC) $(OPTIONS) -o bin/pr.so $(LIBOBJ) -Llibc -shared -dynamic + $(CC) $(OPTIONS) -o bin/pr.so $(LIBOBJ) -Llibc -shared -dynamic -o $@ $(INFO) Library successfully compiled $(INFO) $(INFO) Please read readme.coders.txt and pr.h for interfaces @@ -108,117 +109,117 @@ lib: $(LIBOBJ) #files $(XMLFILE): resources.xml.gz - $(INFO) Uncompressing resources... + $(INFO) Copying resources... $(MAKEDIR) bin - $(GZIP) -cd resources.xml.gz >bin/resources.xml + $(CP) xml/resources.xml $(XMLFILE) -import.o: lib/actions/import.c +.import.o: lib/actions/import.c $(INFO) Compiling import module... - $(CC) $(OPTIONS) -c lib/actions/import.c + $(CC) $(OPTIONS) -c lib/actions/import.c -o $@ -memory.o: lib/layers/memory.c +.memory.o: lib/layers/memory.c $(INFO) Compiling memory manager... - $(CC) $(OPTIONS) -c lib/layers/memory.c + $(CC) $(OPTIONS) -c lib/layers/memory.c -o $@ -export.o: lib/actions/export.c +.export.o: lib/actions/export.c $(INFO) Compiling export module... - $(CC) $(OPTIONS) -c lib/actions/export.c + $(CC) $(OPTIONS) -c lib/actions/export.c -o $@ -compress.o: lib/compression/main.c +.compress.o: lib/compression/main.c $(INFO) Compiling compression module... - $(CC) $(OPTIONS) -c lib/compression/main.c -o compress.o + $(CC) $(OPTIONS) -c lib/compression/main.c -o .compress.o -o $@ -lzg_compress.o: lib/compression/lzg_compress.c +.lzg_compress.o: lib/compression/lzg_compress.c $(INFO) Compiling LZG compression module... - $(CC) $(OPTIONS) -c lib/compression/lzg_compress.c + $(CC) $(OPTIONS) -c lib/compression/lzg_compress.c -o $@ -rle_compress.o: lib/compression/rle_compress.c +.rle_compress.o: lib/compression/rle_compress.c $(INFO) Compiling RLE compression module... - $(CC) $(OPTIONS) -c lib/compression/rle_compress.c + $(CC) $(OPTIONS) -c lib/compression/rle_compress.c -o $@ -lzg_uncompress.o: lib/compression/lzg_uncompress.c +.lzg_uncompress.o: lib/compression/lzg_uncompress.c $(INFO) Compiling LZG uncompression module... - $(CC) $(OPTIONS) -c lib/compression/lzg_uncompress.c + $(CC) $(OPTIONS) -c lib/compression/lzg_uncompress.c -o $@ -rle_uncompress.o: lib/compression/rle_uncompress.c +.rle_uncompress.o: lib/compression/rle_uncompress.c $(INFO) Compiling RLE uncompression module... - $(CC) $(OPTIONS) -c lib/compression/rle_uncompress.c + $(CC) $(OPTIONS) -c lib/compression/rle_uncompress.c -o $@ -main.o: console/main.c +.main.o: console/main.c $(INFO) Compiling command parsing module for standard mode... - $(CC) $(OPTIONS) -c console/main.c + $(CC) $(OPTIONS) -c console/main.c -o $@ -pr.o: lib/pr.c +.pr.o: lib/pr.c $(INFO) Compiling main library primitives for both modes... - $(CC) $(OPTIONS) -c lib/pr.c + $(CC) $(OPTIONS) -c lib/pr.c -o $@ -filedir.o: console/filedir.c +.filedir.o: console/filedir.c $(INFO) Compiling directory and recursive file reading module for standard mode... - $(CC) $(OPTIONS) -c console/filedir.c + $(CC) $(OPTIONS) -c console/filedir.c -o $@ -resources.o: lib/resources.c +.resources.o: lib/resources.c $(INFO) Compiling resource manager module... - $(CC) $(OPTIONS) -c lib/resources.c + $(CC) $(OPTIONS) -c lib/resources.c -o $@ -classify.o: lib/actions/classify.c +.classify.o: lib/actions/classify.c $(INFO) Compiling classification module... - $(CC) $(OPTIONS) -c lib/actions/classify.c + $(CC) $(OPTIONS) -c lib/actions/classify.c -o $@ -parse.o: lib/xml/parse.c +.parse.o: lib/xml/parse.c $(INFO) Compiling XML parsing module... - $(CC) $(OPTIONS) -c lib/xml/parse.c + $(CC) $(OPTIONS) -c lib/xml/parse.c -o $@ -search.o: lib/xml/search.c +.search.o: lib/xml/search.c $(INFO) Compiling XML search features... - $(CC) $(OPTIONS) -c lib/xml/search.c + $(CC) $(OPTIONS) -c lib/xml/search.c -o $@ -disk.o: lib/layers/disk.c +.disk.o: lib/layers/disk.c $(INFO) Compiling disk access library... - $(CC) $(OPTIONS) -c lib/layers/disk.c + $(CC) $(OPTIONS) -c lib/layers/disk.c -o $@ -dat.o: lib/layers/dat.c +.dat.o: lib/layers/dat.c $(INFO) Compiling DAT editing library... - $(CC) $(OPTIONS) -c lib/layers/dat.c + $(CC) $(OPTIONS) -c lib/layers/dat.c -o $@ -bmp.o: lib/formats/bmp.c +.bmp.o: lib/formats/bmp.c $(INFO) Compiling bitmap files support \(bmp\)... - $(CC) $(OPTIONS) -c lib/formats/bmp.c + $(CC) $(OPTIONS) -c lib/formats/bmp.c -o $@ -mid.o: lib/formats/mid.c +.mid.o: lib/formats/mid.c $(INFO) Compiling MIDI audio files support \(mid\)... - $(CC) $(OPTIONS) -c lib/formats/mid.c + $(CC) $(OPTIONS) -c lib/formats/mid.c -o $@ -plv.o: lib/formats/plv.c +.plv.o: lib/formats/plv.c $(INFO) Compiling prince level files support \(plv\)... - $(CC) $(OPTIONS) -c lib/formats/plv.c + $(CC) $(OPTIONS) -c lib/formats/plv.c -o $@ -pal.o: lib/formats/pal.c +.pal.o: lib/formats/pal.c $(INFO) Compiling JASC palette support \(pal\)... - $(CC) $(OPTIONS) -c lib/formats/pal.c + $(CC) $(OPTIONS) -c lib/formats/pal.c -o $@ -wav.o: lib/formats/wav.c +.wav.o: lib/formats/wav.c $(INFO) Compiling digital wave audio support \(wav\)... - $(CC) $(OPTIONS) -c lib/formats/wav.c + $(CC) $(OPTIONS) -c lib/formats/wav.c -o $@ -dirent.o: ports/dirent.c +.dirent.o: ports/dirent.c $(INFO) Porting the dirent structure... - $(CC) $(OPTIONS) -c ports/dirent.c + $(CC) $(OPTIONS) -c ports/dirent.c -o $@ -getopt.o: ports/getopt.c +.getopt.o: ports/getopt.c $(INFO) Porting the Unix-like getopt function \(first part\)... - $(CC) $(OPTIONS) -c ports/getopt.c + $(CC) $(OPTIONS) -c ports/getopt.c -o $@ -getopt1.o: ports/getopt1.c +.getopt1.o: ports/getopt1.c $(INFO) Porting the Unix-like getopt function \(second part\)... - $(CC) $(OPTIONS) -c ports/getopt1.c + $(CC) $(OPTIONS) -c ports/getopt1.c -o $@ #python -python.o: addons/python/python.c +.python.o: addons/python/python.c $(INFO) Building the python interfaces - $(CC) -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/python2.3 -c addons/python/python.c $(INCLUDE) + $(CC) -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -fPIC -I/usr/include/python2.3 -c addons/python/python.c $(INCLUDE) -o $@ -pylib: python.o $(LIBOBJ) +pylib: .python.o $(LIBOBJ) $(INFO) Building the python module $(MAKEDIR) addons/python/bin - $(CC) -pthread -shared python.o $(LIBOBJ) -o addons/python/bin/pr.so + $(CC) -pthread -shared .python.o $(LIBOBJ) -o addons/python/bin/pr.so -o $@