2 # This Makefile builds a shared version of the library,
3 # libbz2.so.1.0.4, with soname libbz2.so.1.0,
4 # at least on x86-Linux (RedHat 7.2),
5 # with gcc-2.96 20000731 (Red Hat Linux 7.1 2.96-98).
6 # Please see the README file for some important info
7 # about building the library like this.
9 # ------------------------------------------------------------------
10 # This file is part of bzip2/libbzip2, a program and library for
11 # lossless, block-sorting data compression.
13 # bzip2/libbzip2 version 1.0.5 of 10 December 2007
14 # Copyright (C) 1996-2007 Julian Seward <jseward@bzip.org>
16 # Please read the WARNING, DISCLAIMER and PATENTS sections in the
19 # This program is released under the terms of the license contained
20 # in the file LICENSE.
21 # ------------------------------------------------------------------
26 BIGFILES=-D_FILE_OFFSET_BITS=64
27 CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
38 $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.4 $(OBJS)
39 $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.4
41 ln -s libbz2.so.1.0.4 libbz2.so.1.0
44 rm -f $(OBJS) bzip2.o libbz2.so.1.0.4 libbz2.so.1.0 bzip2-shared
46 blocksort.o: blocksort.c
47 $(CC) $(CFLAGS) -c blocksort.c
49 $(CC) $(CFLAGS) -c huffman.c
50 crctable.o: crctable.c
51 $(CC) $(CFLAGS) -c crctable.c
52 randtable.o: randtable.c
53 $(CC) $(CFLAGS) -c randtable.c
54 compress.o: compress.c
55 $(CC) $(CFLAGS) -c compress.c
56 decompress.o: decompress.c
57 $(CC) $(CFLAGS) -c decompress.c
59 $(CC) $(CFLAGS) -c bzlib.c