git » fp-git.git » commit bab2bb0

Added this makefile for old make compatibility.

author ecalot
2004-03-18 14:32:33 UTC
committer ecalot
2004-03-18 14:32:33 UTC
parent ec7afef6d86508c88d24501f3d452f6a4b0ca64b

Added this makefile for old make compatibility.

PR/src/Makefile.old +142 -0

diff --git a/PR/src/Makefile.old b/PR/src/Makefile.old
new file mode 100644
index 0000000..4ec78a8
--- /dev/null
+++ b/PR/src/Makefile.old
@@ -0,0 +1,142 @@
+#Programs
+CC      = @gcc
+LINKER  = @ld
+INFO    = @echo
+MAKEDIR = @mkdir -p
+
+#Operating Systems
+OS      = `uname`
+SRC2    = getopt.o getopt1.o
+
+#Compiler options
+INCLUDE = -Iinclude/
+DEFINES = -DOS=\"$(OS)\"
+OPTIONS = $(INCLUDE) $(DEFINES)
+
+OBJFILES = compile.o compress.o extract.o resources.o tasks.o disk.o\
+           xmlparse.o xmlsearch.o dat.o bmp.o mid.o pal.o wav.o plv.o\
+           memory.o $(SRC2)
+
+SRC1     = pr.o
+SRC3     = prlib.o
+
+EXEFILE  = bin/pr
+
+#main file
+
+bin/pr: $(OBJFILES) $(SRC1) bin/resources.xml
+	$(INFO) Linking files...
+	$(MAKEDIR) bin
+	$(CC) -o bin/pr $(OBJFILES) $(SRC1) -s -O2
+	$(INFO) Program successfully compiled
+	$(INFO)
+	$(INFO) Please read readme.txt for syntax information
+	$(INFO)
+
+#command options
+
+clean:
+	$(INFO) Erasing temporary object files...
+	@rm -f *.o bin/pr
+
+build: clean bin/pr
+
+all: $(EXEFILE)
+
+lib: clean $(OBJFILES) $(SRC3)
+	$(MAKEDIR) bin
+	$(INFO) Making dynamic library...
+	$(CC) -o bin/pr.so $(OBJFILES) $(SRC3) -O2 -Llibc -shared -dynamic
+	$(INFO) Library successfully compiled
+	$(INFO)
+	$(INFO) Please read readme.coders.txt and pr.h for interfaces
+	$(INFO)
+
+#files
+
+bin/resources.xml: resources.xml.gz
+	$(INFO) Uncompressing resources...
+	@mkdir -p bin
+	@gunzip resources.xml.gz
+	@cp -f resources.xml bin
+	@gzip resources.xml
+
+compile.o: compile.c
+	$(INFO) Compiling import module...
+	$(CC) -c compile.c $(OPTIONS)
+
+memory.o: memory.c
+	$(INFO) Compiling memory manager...
+	$(CC) -c memory.c $(OPTIONS)
+
+extract.o: extract.c
+	$(INFO) Compiling export module...
+	$(CC) -c extract.c $(OPTIONS)
+
+compress.o: compress.c
+	$(INFO) Compiling compression module...
+	$(CC) -c compress.c $(OPTIONS)
+
+pr.o: pr.c
+	$(INFO) Compiling main module in standard mode...
+	$(CC) -c pr.c $(OPTIONS)
+
+prlib.o: pr.c
+	$(INFO) Compiling main module in library mode...
+	$(CC) -c pr.c $(OPTIONS) -DDLL -o prlib.o
+
+resources.o: resources.c
+	$(INFO) Compiling resource manager module...
+	$(CC) -c resources.c $(OPTIONS)
+
+tasks.o: tasks.c
+	$(INFO) Compiling extra tasks module...
+	$(CC) -c tasks.c $(OPTIONS)
+
+xmlparse.o: xmlparse.c
+	$(INFO) Compiling xml parsing module...
+	$(CC) -c xmlparse.c $(OPTIONS)
+
+xmlsearch.o: xmlsearch.c
+	$(INFO) Compiling xml search features...
+	$(CC) -c xmlsearch.c $(OPTIONS)
+
+disk.o: disk.c
+	$(INFO) Compiling disk access library...
+	$(CC) -c disk.c $(OPTIONS)
+
+dat.o: dat.c
+	$(INFO) Compiling dat editing library...
+	$(CC) -c dat.c $(OPTIONS)
+
+bmp.o: formats/bmp.c
+	$(INFO) Compiling bitmap files support \(bmp\)...
+	$(CC) -c formats/bmp.c $(OPTIONS)
+
+mid.o: formats/mid.c
+	$(INFO) Compiling midi audio files support \(mid\)...
+	$(CC) -c formats/mid.c $(OPTIONS)
+
+plv.o: formats/plv.c
+	$(INFO) Compiling prince level files support \(plv\)...
+	$(CC) -c formats/plv.c $(OPTIONS)
+
+pal.o: formats/pal.c
+	$(INFO) Compiling JASC palette support \(pal\)...
+	$(CC) -c formats/pal.c $(OPTIONS)
+
+wav.o: formats/wav.c
+	$(INFO) Compiling digital wave audio support \(wav\)...
+	$(CC) -c formats/wav.c $(OPTIONS)
+
+dirent.o: ports/dirent.c
+	$(INFO) Porting the dirent structure...
+	$(CC) $(OPTIONS) -c ports/dirent.c
+	
+getopt.o: ports/getopt.c
+	$(INFO) Porting the Unix-like getopt function \(first part\)...
+	$(CC) $(OPTIONS) -c ports/getopt.c
+
+getopt1.o: ports/getopt1.c
+	$(INFO) Porting the Unix-like getopt function \(second part\)...
+	$(CC) $(OPTIONS) -c ports/getopt1.c