[9] | 1 | # SMakefile for zlib
|
---|
| 2 | # Modified from the standard UNIX Makefile Copyright Jean-loup Gailly
|
---|
| 3 | # Osma Ahvenlampi <Osma.Ahvenlampi@hut.fi>
|
---|
| 4 | # Amiga, SAS/C 6.56 & Smake
|
---|
| 5 |
|
---|
| 6 | CC=sc
|
---|
| 7 | CFLAGS=OPT
|
---|
| 8 | #CFLAGS=OPT CPU=68030
|
---|
| 9 | #CFLAGS=DEBUG=LINE
|
---|
| 10 | LDFLAGS=LIB z.lib
|
---|
| 11 |
|
---|
| 12 | SCOPTIONS=OPTSCHED OPTINLINE OPTALIAS OPTTIME OPTINLOCAL STRMERGE \
|
---|
| 13 | NOICONS PARMS=BOTH NOSTACKCHECK UTILLIB NOVERSION ERRORREXX \
|
---|
| 14 | DEF=POSTINC
|
---|
| 15 |
|
---|
| 16 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
|
---|
| 17 | zutil.o inflate.o infback.o inftrees.o inffast.o
|
---|
| 18 |
|
---|
| 19 | TEST_OBJS = example.o minigzip.o
|
---|
| 20 |
|
---|
| 21 | all: SCOPTIONS example minigzip
|
---|
| 22 |
|
---|
| 23 | check: test
|
---|
| 24 | test: all
|
---|
| 25 | example
|
---|
| 26 | echo hello world | minigzip | minigzip -d
|
---|
| 27 |
|
---|
| 28 | install: z.lib
|
---|
| 29 | copy clone zlib.h zconf.h INCLUDE:
|
---|
| 30 | copy clone z.lib LIB:
|
---|
| 31 |
|
---|
| 32 | z.lib: $(OBJS)
|
---|
| 33 | oml z.lib r $(OBJS)
|
---|
| 34 |
|
---|
| 35 | example: example.o z.lib
|
---|
| 36 | $(CC) $(CFLAGS) LINK TO $@ example.o $(LDFLAGS)
|
---|
| 37 |
|
---|
| 38 | minigzip: minigzip.o z.lib
|
---|
| 39 | $(CC) $(CFLAGS) LINK TO $@ minigzip.o $(LDFLAGS)
|
---|
| 40 |
|
---|
| 41 | mostlyclean: clean
|
---|
| 42 | clean:
|
---|
| 43 | -delete force quiet example minigzip *.o z.lib foo.gz *.lnk SCOPTIONS
|
---|
| 44 |
|
---|
| 45 | SCOPTIONS: Makefile.sas
|
---|
| 46 | copy to $@ <from <
|
---|
| 47 | $(SCOPTIONS)
|
---|
| 48 | <
|
---|
| 49 |
|
---|
| 50 | # DO NOT DELETE THIS LINE -- make depend depends on it.
|
---|
| 51 |
|
---|
| 52 | adler32.o: zlib.h zconf.h
|
---|
| 53 | compress.o: zlib.h zconf.h
|
---|
| 54 | crc32.o: crc32.h zlib.h zconf.h
|
---|
| 55 | deflate.o: deflate.h zutil.h zlib.h zconf.h
|
---|
| 56 | example.o: zlib.h zconf.h
|
---|
| 57 | gzio.o: zutil.h zlib.h zconf.h
|
---|
| 58 | inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
|
---|
| 59 | inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
|
---|
| 60 | infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
|
---|
| 61 | inftrees.o: zutil.h zlib.h zconf.h inftrees.h
|
---|
| 62 | minigzip.o: zlib.h zconf.h
|
---|
| 63 | trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
|
---|
| 64 | uncompr.o: zlib.h zconf.h
|
---|
| 65 | zutil.o: zutil.h zlib.h zconf.h
|
---|