]> git.donarmstrong.com Git - samtools.git/blob - zlib/Makefile
* added zlib-1.2.3 as razip requires that
[samtools.git] / zlib / Makefile
1 CC=                     gcc
2 CFLAGS=         -g -Wall -O2
3 DFLAGS=         -D_FILE_OFFSET_BITS=64
4 ZOBJS=          adler32.o compress.o crc32.o deflate.o gzio.o inffast.o inflate.o \
5                         infback.o inftrees.o trees.o uncompr.o zutil.o
6 LIBS=           -lm
7
8 .SUFFIXES:.c .o
9
10 .c.o:
11                 $(CC) -c $(CFLAGS) $(DFLAGS) $< -o $@
12
13 all:lib
14
15 lib:libz.a
16
17 libz.a:$(ZOBJS)
18                 $(AR) -cru $@ $(ZOBJS)
19
20 adler32.o: zlib.h zconf.h
21 compress.o: zlib.h zconf.h
22 crc32.o: crc32.h zlib.h zconf.h
23 deflate.o: deflate.h zutil.h zlib.h zconf.h
24 gzio.o: zutil.h zlib.h zconf.h
25 inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
26 inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
27 infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
28 inftrees.o: zutil.h zlib.h zconf.h inftrees.h
29 trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
30 uncompr.o: zlib.h zconf.h
31 zutil.o: zutil.h zlib.h zconf.h
32
33 cleanlocal:
34                 rm -f *.o a.out *~ *.a libzr.a gmon.out
35
36 clean:cleanlocal
37