2 # This Makefile builds a shared version of the library,
3 # libbz2.so.1.0.1, with soname libbz2.so.1.0,
4 # at least on x86-Linux (RedHat 5.2),
5 # with gcc-2.7.2.3. Please see the README file for some
6 # important info about building the library like this.
10 BIGFILES=-D_FILE_OFFSET_BITS=64
11 CFLAGS=-fpic -fPIC -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce $(BIGFILES)
22 $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.1 $(OBJS)
23 $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.1
25 ln -s libbz2.so.1.0.1 libbz2.so.1.0
28 rm -f $(OBJS) bzip2.o libbz2.so.1.0.1 libbz2.so.1.0 bzip2-shared
30 blocksort.o: blocksort.c
31 $(CC) $(CFLAGS) -c blocksort.c
33 $(CC) $(CFLAGS) -c huffman.c
34 crctable.o: crctable.c
35 $(CC) $(CFLAGS) -c crctable.c
36 randtable.o: randtable.c
37 $(CC) $(CFLAGS) -c randtable.c
38 compress.o: compress.c
39 $(CC) $(CFLAGS) -c compress.c
40 decompress.o: decompress.c
41 $(CC) $(CFLAGS) -c decompress.c
43 $(CC) $(CFLAGS) -c bzlib.c