diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | Makefile.dj2 | 7 | ||||
-rw-r--r-- | Makefile.in | 2 | ||||
-rw-r--r-- | Makefile.msc | 4 | ||||
-rw-r--r-- | Makefile.riscos | 46 |
5 files changed, 52 insertions, 9 deletions
@@ -22,7 +22,7 @@ CFLAGS=-O | |||
22 | LDFLAGS=-L. -lz | 22 | LDFLAGS=-L. -lz |
23 | LDSHARED=$(CC) | 23 | LDSHARED=$(CC) |
24 | 24 | ||
25 | VER=1.0.2 | 25 | VER=1.0.4 |
26 | LIBS=libz.a | 26 | LIBS=libz.a |
27 | 27 | ||
28 | AR=ar rc | 28 | AR=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 | |||
42 | LD=$(CC) -s -o | 42 | LD=$(CC) -s -o |
43 | LDSHARED=$(CC) | 43 | LDSHARED=$(CC) |
44 | 44 | ||
45 | VER=1.0.2 | ||
46 | INCL=zlib.h zconf.h | 45 | INCL=zlib.h zconf.h |
47 | LIBS=libz.a | 46 | LIBS=libz.a |
48 | 47 | ||
@@ -68,10 +67,6 @@ test: all | |||
68 | libz.a: $(OBJS) | 67 | libz.a: $(OBJS) |
69 | $(AR) $@ $(OBJS) | 68 | $(AR) $@ $(OBJS) |
70 | 69 | ||
71 | libz.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 | ||
92 | clean: | 87 | clean: |
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 | ||
95 | DEPS := $(wildcard *.d) | 90 | DEPS := $(wildcard *.d) |
96 | ifneq ($(DEPS),) | 91 | ifneq ($(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 | |||
22 | LDFLAGS=-L. -lz | 22 | LDFLAGS=-L. -lz |
23 | LDSHARED=$(CC) | 23 | LDSHARED=$(CC) |
24 | 24 | ||
25 | VER=1.0.2 | 25 | VER=1.0.4 |
26 | LIBS=libz.a | 26 | LIBS=libz.a |
27 | 27 | ||
28 | AR=ar rc | 28 | AR=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) \ | |||
28 | OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\ | 28 | OBJP2 = zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)+\ |
29 | infutil$(O)+inffast$(O) | 29 | infutil$(O)+inffast$(O) |
30 | 30 | ||
31 | all: zlib.lib example.exe minigzip.exe | ||
32 | |||
31 | adler32.obj: adler32.c zutil.h zlib.h zconf.h | 33 | adler32.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: |
82 | zlib.lib: $(OBJ1) $(OBJ2) | 84 | zlib.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: | ||
5 | CCflags = -c -depend !Depend -IC: -g -throwback -DRISCOS -fnah | ||
6 | C++flags = -c -depend !Depend -IC: -throwback | ||
7 | Linkflags = -aif -c++ -o $@ | ||
8 | ObjAsmflags = -throwback -NoCache -depend !Depend | ||
9 | CMHGflags = | ||
10 | LibFileflags = -c -l -o $@ | ||
11 | Squeezeflags = -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: | ||
41 | o.minigzip: tests.c.minigzip | ||
42 | o.minigzip: h.zlib | ||
43 | o.minigzip: h.zconf | ||
44 | o.example: tests.c.example | ||
45 | o.example: h.zlib | ||
46 | o.example: h.zconf | ||