Mercurial > ~darius > hgwebdir.cgi > paradise_client
comparison zlib/Makefile @ 3:5a977ccbc7a9 default tip
Empty changelog
author | darius |
---|---|
date | Sat, 06 Dec 1997 05:41:29 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:fba0b6e6cdc7 | 3:5a977ccbc7a9 |
---|---|
1 # Makefile for zlib | |
2 # Copyright (C) 1995 Jean-loup Gailly. | |
3 # For conditions of distribution and use, see copyright notice in zlib.h | |
4 | |
5 CC=cc | |
6 CFLAGS=-O | |
7 #use -O3 for gcc to take advantage of inlining | |
8 #CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7" | |
9 #CFLAGS=-g -DDEBUG | |
10 LDFLAGS=-L. -lgz | |
11 | |
12 RANLIB=ranlib | |
13 | |
14 prefix=/usr/local | |
15 | |
16 OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ | |
17 zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o | |
18 | |
19 TEST_OBJS = example.o minigzip.o | |
20 | |
21 all: example minigzip | |
22 | |
23 test: all | |
24 ./example | |
25 echo hello world | ./minigzip | ./minigzip -d | |
26 | |
27 install: libgz.a | |
28 -@mkdir $(prefix)/include | |
29 -@mkdir $(prefix)/lib | |
30 cp zlib.h zconf.h $(prefix)/include | |
31 chmod 644 $(prefix)/include/zlib.h $(prefix)/include/zconf.h | |
32 cp libgz.a $(prefix)/lib | |
33 chmod 644 $(prefix)/lib/libgz.a | |
34 | |
35 libgz.a: $(OBJS) | |
36 ar rc $@ $(OBJS) | |
37 $(RANLIB) $@ | |
38 | |
39 example: example.o libgz.a | |
40 $(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS) | |
41 | |
42 minigzip: minigzip.o libgz.a | |
43 $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) | |
44 | |
45 clean: | |
46 rm -f *.o example minigzip libgz.a foo.gz | |
47 | |
48 zip: | |
49 zip -ul9 zlib README ChangeLog Makefile Makefile.??? Makefile.?? *.[ch] | |
50 | |
51 tgz: | |
52 cd ..; tar cfz zlib/zlib.tgz zlib/README zlib/ChangeLog zlib/Makefile \ | |
53 zlib/Makefile.??? zlib/Makefile.?? zlib/*.[ch] | |
54 | |
55 # DO NOT DELETE THIS LINE -- make depend depends on it. | |
56 | |
57 adler32.o: zutil.h zlib.h zconf.h | |
58 compress.o: zlib.h zconf.h | |
59 crc32.o: zutil.h zlib.h zconf.h | |
60 deflate.o: deflate.h zutil.h zlib.h zconf.h | |
61 example.o: zlib.h zconf.h | |
62 gzio.o: zutil.h zlib.h zconf.h | |
63 infblock.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h | |
64 infcodes.o: zutil.h zlib.h zconf.h inftrees.h infutil.h infcodes.h inffast.h | |
65 inffast.o: zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h | |
66 inflate.o: zutil.h zlib.h zconf.h infblock.h | |
67 inftrees.o: zutil.h zlib.h zconf.h inftrees.h | |
68 infutil.o: zutil.h zlib.h zconf.h inftrees.h infutil.h | |
69 minigzip.o: zlib.h zconf.h | |
70 trees.o: deflate.h zutil.h zlib.h zconf.h | |
71 uncompr.o: zlib.h zconf.h | |
72 zutil.o: zutil.h zlib.h zconf.h |