comparison zlib/Makefile.qnx @ 10:1040ca591f2e

First entry of Paradise Server 2.9 patch 10 Beta
author darius
date Sat, 06 Dec 1997 04:37:18 +0000
parents
children
comparison
equal deleted inserted replaced
9:331055a97a9d 10:1040ca591f2e
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 # Modified slightly for QNX by Chris Herborth (chrish@qnx.com)
6
7 CC=cc
8 CFLAGS=-4 -O -Q
9 #use -O3 for gcc to take advantage of inlining
10 #CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
11 #CFLAGS=-g -DDEBUG
12 LDFLAGS=-L. -lz
13
14 #RANLIB=ranlib
15
16 prefix=/usr/local
17
18 OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
19 zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
20
21 TEST_OBJS = example.o minigzip.o
22
23 all: example minigzip
24
25 test: all
26 ./example
27 echo hello world | ./minigzip | ./minigzip -d
28
29 install: zlib.lib
30 -@mkdir $(prefix)/include
31 -@mkdir $(prefix)/lib
32 cp zlib.h zconf.h $(prefix)/include
33 chmod 644 $(prefix)/include/zlib.h $(prefix)/include/zconf.h
34 cp zlib.lib $(prefix)/lib
35 chmod 644 $(prefix)/lib/zlib.lib
36
37 zlib.lib: $(OBJS)
38 cc -A $@ $(OBJS)
39 # ar rc $@ $(OBJS)
40 # $(RANLIB) $@
41
42 example: example.o zlib.lib
43 $(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS)
44
45 minigzip: minigzip.o zlib.lib
46 $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS)
47
48 clean:
49 rm -f *.o example minigzip zlib.lib foo.gz
50
51 zip:
52 zip -ul9 zlib README ChangeLog Makefile Makefile.??? Makefile.?? *.[ch]
53
54 tgz:
55 cd ..; tar cfz zlib/zlib.tgz zlib/README zlib/ChangeLog zlib/Makefile \
56 zlib/Makefile.??? zlib/Makefile.?? zlib/*.[ch]
57
58 # DO NOT DELETE THIS LINE -- make depend depends on it.
59
60 adler32.o: zutil.h zlib.h zconf.h
61 compress.o: zlib.h zconf.h
62 crc32.o: zutil.h zlib.h zconf.h
63 deflate.o: deflate.h zutil.h zlib.h zconf.h
64 example.o: zlib.h zconf.h
65 gzio.o: zutil.h zlib.h zconf.h
66 infblock.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h
67 infcodes.o: zutil.h zlib.h zconf.h inftrees.h infutil.h infcodes.h inffast.h
68 inffast.o: zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
69 inflate.o: zutil.h zlib.h zconf.h infblock.h
70 inftrees.o: zutil.h zlib.h zconf.h inftrees.h
71 infutil.o: zutil.h zlib.h zconf.h inftrees.h infutil.h
72 minigzip.o: zlib.h zconf.h
73 trees.o: deflate.h zutil.h zlib.h zconf.h
74 uncompr.o: zlib.h zconf.h
75 zutil.o: zutil.h zlib.h zconf.h