source: s10k/CommonLibs/zlib-1.2.8/amiga/Makefile.sas@ 1171

Last change on this file since 1171 was 1096, checked in by s10k, 7 years ago

Added zlib, quazip, basicxmlsyntaxhighlighter, conditionalsemaphore and linenumberdisplay libraries. zlib and quazip are pre-compiled, but you can compile them yourself, just delete the dll files (or equivalent binary files to your OS)

File size: 1.8 KB
Line 
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
6CC=sc
7CFLAGS=OPT
8#CFLAGS=OPT CPU=68030
9#CFLAGS=DEBUG=LINE
10LDFLAGS=LIB z.lib
11
12SCOPTIONS=OPTSCHED OPTINLINE OPTALIAS OPTTIME OPTINLOCAL STRMERGE \
13 NOICONS PARMS=BOTH NOSTACKCHECK UTILLIB NOVERSION ERRORREXX \
14 DEF=POSTINC
15
16OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \
17 uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
18
19TEST_OBJS = example.o minigzip.o
20
21all: SCOPTIONS example minigzip
22
23check: test
24test: all
25 example
26 echo hello world | minigzip | minigzip -d
27
28install: z.lib
29 copy clone zlib.h zconf.h INCLUDE:
30 copy clone z.lib LIB:
31
32z.lib: $(OBJS)
33 oml z.lib r $(OBJS)
34
35example: example.o z.lib
36 $(CC) $(CFLAGS) LINK TO $@ example.o $(LDFLAGS)
37
38minigzip: minigzip.o z.lib
39 $(CC) $(CFLAGS) LINK TO $@ minigzip.o $(LDFLAGS)
40
41mostlyclean: clean
42clean:
43 -delete force quiet example minigzip *.o z.lib foo.gz *.lnk SCOPTIONS
44
45SCOPTIONS: Makefile.sas
46 copy to $@ <from <
47$(SCOPTIONS)
48<
49
50# DO NOT DELETE THIS LINE -- make depend depends on it.
51
52adler32.o: zlib.h zconf.h
53compress.o: zlib.h zconf.h
54crc32.o: crc32.h zlib.h zconf.h
55deflate.o: deflate.h zutil.h zlib.h zconf.h
56example.o: zlib.h zconf.h
57gzclose.o: zlib.h zconf.h gzguts.h
58gzlib.o: zlib.h zconf.h gzguts.h
59gzread.o: zlib.h zconf.h gzguts.h
60gzwrite.o: zlib.h zconf.h gzguts.h
61inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
62inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
63infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
64inftrees.o: zutil.h zlib.h zconf.h inftrees.h
65minigzip.o: zlib.h zconf.h
66trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
67uncompr.o: zlib.h zconf.h
68zutil.o: zutil.h zlib.h zconf.h
Note: See TracBrowser for help on using the repository browser.