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 |
|
---|
15 | OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
|
---|
16 | zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
|
---|
17 |
|
---|
18 | TEST_OBJS = example.o minigzip.o
|
---|
19 |
|
---|
20 | all: SCOPTIONS example minigzip
|
---|
21 |
|
---|
22 | test: all
|
---|
23 | `cd`/example
|
---|
24 | echo hello world | minigzip | minigzip -d
|
---|
25 |
|
---|
26 | install: z.lib
|
---|
27 | copy zlib.h zconf.h INCLUDE: clone
|
---|
28 | copy z.lib LIB: clone
|
---|
29 |
|
---|
30 | z.lib: $(OBJS)
|
---|
31 | oml z.lib r $(OBJS)
|
---|
32 |
|
---|
33 | example: example.o z.lib
|
---|
34 | $(CC) $(CFLAGS) LINK TO $@ example.o $(LDFLAGS)
|
---|
35 |
|
---|
36 | minigzip: minigzip.o z.lib
|
---|
37 | $(CC) $(CFLAGS) LINK TO $@ minigzip.o $(LDFLAGS)
|
---|
38 |
|
---|
39 | clean:
|
---|
40 | -delete force quiet *.o example minigzip z.lib foo.gz *.lnk SCOPTIONS
|
---|
41 |
|
---|
42 | SCOPTIONS: Smakefile
|
---|
43 | copy to $@ <from <
|
---|
44 | $(SCOPTIONS)
|
---|
45 | <
|
---|
46 |
|
---|
47 | # DO NOT DELETE THIS LINE -- make depend depends on it.
|
---|
48 |
|
---|
49 | adler32.o: zutil.h zlib.h zconf.h
|
---|
50 | compress.o: zlib.h zconf.h
|
---|
51 | crc32.o: zutil.h zlib.h zconf.h
|
---|
52 | deflate.o: deflate.h zutil.h zlib.h zconf.h
|
---|
53 | example.o: zlib.h zconf.h
|
---|
54 | gzio.o: zutil.h zlib.h zconf.h
|
---|
55 | infblock.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h
|
---|
56 | infcodes.o: zutil.h zlib.h zconf.h inftrees.h infutil.h infcodes.h inffast.h
|
---|
57 | inffast.o: zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
|
---|
58 | inflate.o: zutil.h zlib.h zconf.h infblock.h
|
---|
59 | inftrees.o: zutil.h zlib.h zconf.h inftrees.h
|
---|
60 | infutil.o: zutil.h zlib.h zconf.h inftrees.h infutil.h
|
---|
61 | minigzip.o: zlib.h zconf.h
|
---|
62 | trees.o: deflate.h zutil.h zlib.h zconf.h
|
---|
63 | uncompr.o: zlib.h zconf.h
|
---|
64 | zutil.o: zutil.h zlib.h zconf.h
|
---|