2
2
# makefile for libpng and SAS C V6.58/7.00 PPC compiler
3
3
# Copyright (C) 1998 by Andreas R. Kleinert
6
CFLAGS = NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL \
7
OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8
11
RANLIB = ppc-amigaos-ranlib
8
CFLAGS = NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL \
9
OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8 NOVER
10
AR = ppc-amigaos-ar cr
11
RANLIB = ppc-amigaos-ranlib
12
LD = ppc-amigaos-ld -r
14
LDLIBS = LIB:scppc.a LIB:end.o
17
17
OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
18
zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
18
zutil.o inflate.o infback.o inftrees.o inffast.o
20
20
TEST_OBJS = example.o minigzip.o
22
22
all: example minigzip
26
echo hello world | minigzip | minigzip -d
27
echo hello world | minigzip | minigzip -d
28
29
$(LIBNAME): $(OBJS)
29
$(AR) $(AR_FLAGS) $@ $(OBJS)
32
33
example: example.o $(LIBNAME)
33
$(LN) $(LDFLAGS) example LIB:c_ppc.o example.o $(LIBNAME) $(LDLIBS) LIB:end.o
34
$(LD) $(LDFLAGS) $@ LIB:c_ppc.o $@.o $(LIBNAME) $(LDLIBS)
35
36
minigzip: minigzip.o $(LIBNAME)
36
$(LN) $(LDFLAGS) minigzip LIB:c_ppc.o minigzip.o $(LIBNAME) $(LDLIBS) LIB:end.o
37
$(LD) $(LDFLAGS) $@ LIB:c_ppc.o $@.o $(LIBNAME) $(LDLIBS)
39
$(RM) *.o example minigzip $(LIBNAME) foo.gz
41
$(RM) *.o example minigzip $(LIBNAME) foo.gz
42
zip -ul9 zlib README ChangeLog Makefile Make????.??? Makefile.?? \
44
zip -ul9 zlib README ChangeLog Makefile Make????.??? Makefile.?? \
46
cd ..; tar cfz zlib/zlib.tgz zlib/README zlib/ChangeLog zlib/Makefile \
47
zlib/Make????.??? zlib/Makefile.?? zlib/descrip.mms zlib/*.[ch]
48
cd ..; tar cfz zlib/zlib.tgz zlib/README zlib/ChangeLog zlib/Makefile \
49
zlib/Make????.??? zlib/Makefile.?? zlib/descrip.mms zlib/*.[ch]
49
51
# DO NOT DELETE THIS LINE -- make depend depends on it.
51
adler32.o: zutil.h zlib.h zconf.h
53
adler32.o: zlib.h zconf.h
52
54
compress.o: zlib.h zconf.h
53
crc32.o: zutil.h zlib.h zconf.h
55
crc32.o: crc32.h zlib.h zconf.h
54
56
deflate.o: deflate.h zutil.h zlib.h zconf.h
55
57
example.o: zlib.h zconf.h
56
58
gzio.o: zutil.h zlib.h zconf.h
57
infblock.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h
58
infcodes.o: zutil.h zlib.h zconf.h inftrees.h infutil.h infcodes.h inffast.h
59
inffast.o: zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
60
inflate.o: zutil.h zlib.h zconf.h infblock.h
59
inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
60
inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
61
infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
61
62
inftrees.o: zutil.h zlib.h zconf.h inftrees.h
62
infutil.o: zutil.h zlib.h zconf.h inftrees.h infutil.h
63
63
minigzip.o: zlib.h zconf.h
64
trees.o: deflate.h zutil.h zlib.h zconf.h
64
trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
65
65
uncompr.o: zlib.h zconf.h
66
66
zutil.o: zutil.h zlib.h zconf.h