2
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.
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
# ------------------------------------------------------------------
10
26
BIGFILES=-D_FILE_OFFSET_BITS=64
11
CFLAGS=-fpic -fPIC -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce $(BIGFILES)
27
CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
13
29
OBJS= blocksort.o \
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
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
24
40
rm -f libbz2.so.1.0
25
ln -s libbz2.so.1.0.1 libbz2.so.1.0
41
ln -s libbz2.so.1.0.4 libbz2.so.1.0
28
rm -f $(OBJS) bzip2.o libbz2.so.1.0.1 libbz2.so.1.0 bzip2-shared
44
rm -f $(OBJS) bzip2.o libbz2.so.1.0.4 libbz2.so.1.0 bzip2-shared
30
46
blocksort.o: blocksort.c
31
47
$(CC) $(CFLAGS) -c blocksort.c