gcc/zlib/amiga/Makefile.sas

66 lines
1.7 KiB
Makefile
Raw Normal View History

1999-05-04 21:30:25 +02:00
# SMakefile for zlib
# Modified from the standard UNIX Makefile Copyright Jean-loup Gailly
# Osma Ahvenlampi <Osma.Ahvenlampi@hut.fi>
# Amiga, SAS/C 6.56 & Smake
CC=sc
CFLAGS=OPT
#CFLAGS=OPT CPU=68030
#CFLAGS=DEBUG=LINE
LDFLAGS=LIB z.lib
SCOPTIONS=OPTSCHED OPTINLINE OPTALIAS OPTTIME OPTINLOCAL STRMERGE \
NOICONS PARMS=BOTH NOSTACKCHECK UTILLIB NOVERSION ERRORREXX \
DEF=POSTINC
1999-05-04 21:30:25 +02:00
OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
zutil.o inflate.o infback.o inftrees.o inffast.o
1999-05-04 21:30:25 +02:00
TEST_OBJS = example.o minigzip.o
all: SCOPTIONS example minigzip
check: test
1999-05-04 21:30:25 +02:00
test: all
example
echo hello world | minigzip | minigzip -d
1999-05-04 21:30:25 +02:00
install: z.lib
copy clone zlib.h zconf.h INCLUDE:
copy clone z.lib LIB:
1999-05-04 21:30:25 +02:00
z.lib: $(OBJS)
oml z.lib r $(OBJS)
example: example.o z.lib
$(CC) $(CFLAGS) LINK TO $@ example.o $(LDFLAGS)
minigzip: minigzip.o z.lib
$(CC) $(CFLAGS) LINK TO $@ minigzip.o $(LDFLAGS)
mostlyclean: clean
1999-05-04 21:30:25 +02:00
clean:
-delete force quiet example minigzip *.o z.lib foo.gz *.lnk SCOPTIONS
1999-05-04 21:30:25 +02:00
SCOPTIONS: Makefile.sas
copy to $@ <from <
1999-05-04 21:30:25 +02:00
$(SCOPTIONS)
<
# DO NOT DELETE THIS LINE -- make depend depends on it.
adler32.o: zlib.h zconf.h
1999-05-04 21:30:25 +02:00
compress.o: zlib.h zconf.h
crc32.o: crc32.h zlib.h zconf.h
1999-05-04 21:30:25 +02:00
deflate.o: deflate.h zutil.h zlib.h zconf.h
example.o: zlib.h zconf.h
gzio.o: zutil.h zlib.h zconf.h
inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
1999-05-04 21:30:25 +02:00
inftrees.o: zutil.h zlib.h zconf.h inftrees.h
minigzip.o: zlib.h zconf.h
trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
1999-05-04 21:30:25 +02:00
uncompr.o: zlib.h zconf.h
zutil.o: zutil.h zlib.h zconf.h