A massively spiffy yet delicately unobtrusive compression library. (grpc依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.8 KiB

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