zlib/amiga/Makefile.sas

69 lines
1.8 KiB
Makefile
Raw Permalink Normal View History

2011-09-10 02:14:39 -04: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 \
2011-09-10 02:23:01 -04:00
NOICONS PARMS=BOTH NOSTACKCHECK UTILLIB NOVERSION ERRORREXX \
DEF=POSTINC
2011-09-10 02:14:39 -04:00
2011-09-10 02:27:26 -04:00
OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \
2011-09-10 02:26:49 -04:00
uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
2011-09-10 02:14:39 -04:00
TEST_OBJS = example.o minigzip.o
all: SCOPTIONS example minigzip
2011-09-10 02:23:01 -04:00
check: test
2011-09-10 02:14:39 -04:00
test: all
2011-09-10 02:23:01 -04:00
example
2011-09-10 02:25:17 -04:00
echo hello world | minigzip | minigzip -d
2011-09-10 02:14:39 -04:00
install: z.lib
2011-09-10 02:23:01 -04:00
copy clone zlib.h zconf.h INCLUDE:
copy clone z.lib LIB:
2011-09-10 02:14:39 -04: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)
2011-09-10 02:23:01 -04:00
mostlyclean: clean
2011-09-10 02:14:39 -04:00
clean:
2011-09-10 02:23:01 -04:00
-delete force quiet example minigzip *.o z.lib foo.gz *.lnk SCOPTIONS
2011-09-10 02:14:39 -04:00
2011-09-10 02:23:01 -04:00
SCOPTIONS: Makefile.sas
copy to $@ <from <
2011-09-10 02:14:39 -04:00
$(SCOPTIONS)
<
# DO NOT DELETE THIS LINE -- make depend depends on it.
2011-09-10 02:23:01 -04:00
adler32.o: zlib.h zconf.h
2011-09-10 02:14:39 -04:00
compress.o: zlib.h zconf.h
2011-09-10 02:23:01 -04:00
crc32.o: crc32.h zlib.h zconf.h
2011-09-10 02:14:39 -04:00
deflate.o: deflate.h zutil.h zlib.h zconf.h
example.o: zlib.h zconf.h
2011-09-10 02:26:49 -04:00
gzclose.o: zlib.h zconf.h gzguts.h
gzlib.o: zlib.h zconf.h gzguts.h
gzread.o: zlib.h zconf.h gzguts.h
gzwrite.o: zlib.h zconf.h gzguts.h
2011-09-10 02:23:01 -04:00
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
2011-09-10 02:14:39 -04:00
inftrees.o: zutil.h zlib.h zconf.h inftrees.h
minigzip.o: zlib.h zconf.h
2011-09-10 02:23:01 -04:00
trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
2011-09-10 02:14:39 -04:00
uncompr.o: zlib.h zconf.h
zutil.o: zutil.h zlib.h zconf.h