aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile2
-rw-r--r--Makefile.dj27
-rw-r--r--Makefile.in2
-rw-r--r--Makefile.msc4
-rw-r--r--Makefile.riscos46
5 files changed, 52 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index f2ff262..71b269b 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ CFLAGS=-O
22LDFLAGS=-L. -lz 22LDFLAGS=-L. -lz
23LDSHARED=$(CC) 23LDSHARED=$(CC)
24 24
25VER=1.0.2 25VER=1.0.4
26LIBS=libz.a 26LIBS=libz.a
27 27
28AR=ar rc 28AR=ar rc
diff --git a/Makefile.dj2 b/Makefile.dj2
index 07a9bb1..398f28b 100644
--- a/Makefile.dj2
+++ b/Makefile.dj2
@@ -42,7 +42,6 @@ LDLIBS=-L. -lz
42LD=$(CC) -s -o 42LD=$(CC) -s -o
43LDSHARED=$(CC) 43LDSHARED=$(CC)
44 44
45VER=1.0.2
46INCL=zlib.h zconf.h 45INCL=zlib.h zconf.h
47LIBS=libz.a 46LIBS=libz.a
48 47
@@ -68,10 +67,6 @@ test: all
68libz.a: $(OBJS) 67libz.a: $(OBJS)
69 $(AR) $@ $(OBJS) 68 $(AR) $@ $(OBJS)
70 69
71libz.so.$(VER): $(OBJS)
72 $(LDSHARED) -o $@ $(OBJS)
73 $(RM) libz.so; ln -s $@ libz.so
74
75%.exe : %.o $(LIBS) 70%.exe : %.o $(LIBS)
76 $(LD) $@ $< $(LDLIBS) 71 $(LD) $@ $< $(LDLIBS)
77 72
@@ -90,7 +85,7 @@ uninstall:
90 for %%p in ($(LIBS)) do $(RM) $(LIBRARY_PATH)\%%p 85 for %%p in ($(LIBS)) do $(RM) $(LIBRARY_PATH)\%%p
91 86
92clean: 87clean:
93 for %%p in (*.d *.o *.exe libz.a libz.so*) do $(RM) %%p 88 for %%p in (*.d *.o *.exe libz.a libz.so* foo.gz) do $(RM) %%p
94 89
95DEPS := $(wildcard *.d) 90DEPS := $(wildcard *.d)
96ifneq ($(DEPS),) 91ifneq ($(DEPS),)
diff --git a/Makefile.in b/Makefile.in
index f2ff262..71b269b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -22,7 +22,7 @@ CFLAGS=-O
22LDFLAGS=-L. -lz 22LDFLAGS=-L. -lz
23LDSHARED=$(CC) 23LDSHARED=$(CC)
24 24
25VER=1.0.2 25VER=1.0.4
26LIBS=libz.a 26LIBS=libz.a
27 27
28AR=ar rc 28AR=ar rc
diff --git a/Makefile.msc b/Makefile.msc
index 3b7aabd..112684a 100644
--- a/Makefile.msc
+++ b/Makefile.msc
@@ -28,6 +28,8 @@ OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
28OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\ 28OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\
29 infutil$(O)+inffast$(O) 29 infutil$(O)+inffast$(O)
30 30
31all: zlib.lib example.exe minigzip.exe
32
31adler32.obj: adler32.c zutil.h zlib.h zconf.h 33adler32.obj: adler32.c zutil.h zlib.h zconf.h
32 $(CC) -c $(CFLAGS) $*.c 34 $(CC) -c $(CFLAGS) $*.c
33 35
@@ -80,7 +82,7 @@ minigzip.obj: minigzip.c zlib.h zconf.h
80 82
81# we must cut the command line to fit in the MS/DOS 128 byte limit: 83# we must cut the command line to fit in the MS/DOS 128 byte limit:
82zlib.lib: $(OBJ1) $(OBJ2) 84zlib.lib: $(OBJ1) $(OBJ2)
83 del zlib.lib 85 if exist zlib.lib del zlib.lib
84 lib zlib $(OBJ1); 86 lib zlib $(OBJ1);
85 lib zlib $(OBJ2); 87 lib zlib $(OBJ2);
86 88
diff --git a/Makefile.riscos b/Makefile.riscos
new file mode 100644
index 0000000..0f10aa8
--- /dev/null
+++ b/Makefile.riscos
@@ -0,0 +1,46 @@
1# Project: zlib_1_03
2
3
4# Toolflags:
5CCflags = -c -depend !Depend -IC: -g -throwback -DRISCOS -fnah
6C++flags = -c -depend !Depend -IC: -throwback
7Linkflags = -aif -c++ -o $@
8ObjAsmflags = -throwback -NoCache -depend !Depend
9CMHGflags =
10LibFileflags = -c -l -o $@
11Squeezeflags = -o $@
12
13
14# Final targets:
15@.zlib_lib: @.o.adler32 @.o.compress @.o.crc32 @.o.deflate @.o.gzio \
16 @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil @.o.trees \
17 @.o.uncompress @.o.zutil
18 LibFile $(LibFileflags) @.o.adler32 @.o.compress @.o.crc32 @.o.deflate \
19 @.o.gzio @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil \
20 @.o.trees @.o.uncompress @.o.zutil
21@.test: @.tests.minigzip @.tests.example
22 echo Please run "Test" in directory tests
23@.tests.minigzip: @.o.minigzip @.zlib_lib C:o.Stubs
24 Link $(Linkflags) @.o.minigzip @.zlib_lib C:o.Stubs
25@.tests.example: @.o.example @.zlib_lib C:o.Stubs
26 Link $(Linkflags) @.o.example @.zlib_lib C:o.Stubs
27
28
29# User-editable dependencies:
30.c.o:
31 cc $(ccflags) -o $@ $<
32
33# Static dependencies:
34@.o.example: @.tests.c.example
35 cc $(ccflags) -o @.o.example @.tests.c.example
36@.o.minigzip: @.tests.c.minigzip
37 cc $(ccflags) -o @.o.minigzip @.tests.c.minigzip
38
39
40# Dynamic dependencies:
41o.minigzip: tests.c.minigzip
42o.minigzip: h.zlib
43o.minigzip: h.zconf
44o.example: tests.c.example
45o.example: h.zlib
46o.example: h.zconf