aboutsummaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
Diffstat (limited to 'amiga')
-rw-r--r--amiga/Makefile.pup66
-rw-r--r--amiga/Makefile.sas65
2 files changed, 131 insertions, 0 deletions
diff --git a/amiga/Makefile.pup b/amiga/Makefile.pup
new file mode 100644
index 0000000..3f7e155
--- /dev/null
+++ b/amiga/Makefile.pup
@@ -0,0 +1,66 @@
1# Amiga powerUP (TM) Makefile
2# makefile for libpng and SAS C V6.58/7.00 PPC compiler
3# Copyright (C) 1998 by Andreas R. Kleinert
4
5LIBNAME = libzip.a
6
7CC = scppc
8CFLAGS = NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL \
9 OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8 NOVER
10AR = ppc-amigaos-ar cr
11RANLIB = ppc-amigaos-ranlib
12LD = ppc-amigaos-ld -r
13LDFLAGS = -o
14LDLIBS = LIB:scppc.a LIB:end.o
15RM = delete quiet
16
17OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
18 zutil.o inflate.o infback.o inftrees.o inffast.o
19
20TEST_OBJS = example.o minigzip.o
21
22all: example minigzip
23
24check: test
25test: all
26 example
27 echo hello world | minigzip | minigzip -d
28
29$(LIBNAME): $(OBJS)
30 $(AR) $@ $(OBJS)
31 -$(RANLIB) $@
32
33example: example.o $(LIBNAME)
34 $(LD) $(LDFLAGS) $@ LIB:c_ppc.o $@.o $(LIBNAME) $(LDLIBS)
35
36minigzip: minigzip.o $(LIBNAME)
37 $(LD) $(LDFLAGS) $@ LIB:c_ppc.o $@.o $(LIBNAME) $(LDLIBS)
38
39mostlyclean: clean
40clean:
41 $(RM) *.o example minigzip $(LIBNAME) foo.gz
42
43zip:
44 zip -ul9 zlib README ChangeLog Makefile Make????.??? Makefile.?? \
45 descrip.mms *.[ch]
46
47tgz:
48 cd ..; tar cfz zlib/zlib.tgz zlib/README zlib/ChangeLog zlib/Makefile \
49 zlib/Make????.??? zlib/Makefile.?? zlib/descrip.mms zlib/*.[ch]
50
51# DO NOT DELETE THIS LINE -- make depend depends on it.
52
53adler32.o: zlib.h zconf.h
54compress.o: zlib.h zconf.h
55crc32.o: crc32.h zlib.h zconf.h
56deflate.o: deflate.h zutil.h zlib.h zconf.h
57example.o: zlib.h zconf.h
58gzio.o: zutil.h zlib.h zconf.h
59inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
60inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
61infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
62inftrees.o: zutil.h zlib.h zconf.h inftrees.h
63minigzip.o: zlib.h zconf.h
64trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
65uncompr.o: zlib.h zconf.h
66zutil.o: zutil.h zlib.h zconf.h
diff --git a/amiga/Makefile.sas b/amiga/Makefile.sas
new file mode 100644
index 0000000..d6842b8
--- /dev/null
+++ b/amiga/Makefile.sas
@@ -0,0 +1,65 @@
1# SMakefile for zlib
2# Modified from the standard UNIX Makefile Copyright Jean-loup Gailly
3# Osma Ahvenlampi <Osma.Ahvenlampi@hut.fi>
4# Amiga, SAS/C 6.56 & Smake
5
6CC=sc
7CFLAGS=OPT
8#CFLAGS=OPT CPU=68030
9#CFLAGS=DEBUG=LINE
10LDFLAGS=LIB z.lib
11
12SCOPTIONS=OPTSCHED OPTINLINE OPTALIAS OPTTIME OPTINLOCAL STRMERGE \
13 NOICONS PARMS=BOTH NOSTACKCHECK UTILLIB NOVERSION ERRORREXX \
14 DEF=POSTINC
15
16OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
17 zutil.o inflate.o infback.o inftrees.o inffast.o
18
19TEST_OBJS = example.o minigzip.o
20
21all: SCOPTIONS example minigzip
22
23check: test
24test: all
25 example
26 echo hello world | minigzip | minigzip -d
27
28install: z.lib
29 copy clone zlib.h zconf.h INCLUDE:
30 copy clone z.lib LIB:
31
32z.lib: $(OBJS)
33 oml z.lib r $(OBJS)
34
35example: example.o z.lib
36 $(CC) $(CFLAGS) LINK TO $@ example.o $(LDFLAGS)
37
38minigzip: minigzip.o z.lib
39 $(CC) $(CFLAGS) LINK TO $@ minigzip.o $(LDFLAGS)
40
41mostlyclean: clean
42clean:
43 -delete force quiet example minigzip *.o z.lib foo.gz *.lnk SCOPTIONS
44
45SCOPTIONS: Makefile.sas
46 copy to $@ <from <
47$(SCOPTIONS)
48<
49
50# DO NOT DELETE THIS LINE -- make depend depends on it.
51
52adler32.o: zlib.h zconf.h
53compress.o: zlib.h zconf.h
54crc32.o: crc32.h zlib.h zconf.h
55deflate.o: deflate.h zutil.h zlib.h zconf.h
56example.o: zlib.h zconf.h
57gzio.o: zutil.h zlib.h zconf.h
58inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
59inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
60infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
61inftrees.o: zutil.h zlib.h zconf.h inftrees.h
62minigzip.o: zlib.h zconf.h
63trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
64uncompr.o: zlib.h zconf.h
65zutil.o: zutil.h zlib.h zconf.h