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