2001-06-21 18:37:17 +00:00
|
|
|
|
|
|
|
# This Makefile builds a shared version of the library,
|
2010-11-09 18:32:57 +00:00
|
|
|
# libbz2.so.1.0.6, with soname libbz2.so.1.0,
|
2002-02-01 16:28:01 +00:00
|
|
|
# at least on x86-Linux (RedHat 7.2),
|
|
|
|
# with gcc-2.96 20000731 (Red Hat Linux 7.1 2.96-98).
|
2007-03-28 07:35:07 +00:00
|
|
|
# Please see the README file for some important info
|
|
|
|
# about building the library like this.
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
# This file is part of bzip2/libbzip2, a program and library for
|
|
|
|
# lossless, block-sorting data compression.
|
|
|
|
#
|
2010-11-09 18:32:57 +00:00
|
|
|
# bzip2/libbzip2 version 1.0.6 of 6 September 2010
|
|
|
|
# Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
|
2007-03-28 07:35:07 +00:00
|
|
|
#
|
|
|
|
# Please read the WARNING, DISCLAIMER and PATENTS sections in the
|
|
|
|
# README file.
|
|
|
|
#
|
|
|
|
# This program is released under the terms of the license contained
|
|
|
|
# in the file LICENSE.
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2001-06-21 18:37:17 +00:00
|
|
|
|
|
|
|
SHELL=/bin/sh
|
|
|
|
CC=gcc
|
|
|
|
BIGFILES=-D_FILE_OFFSET_BITS=64
|
2007-03-28 07:35:07 +00:00
|
|
|
CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
|
2001-06-21 18:37:17 +00:00
|
|
|
|
|
|
|
OBJS= blocksort.o \
|
|
|
|
huffman.o \
|
|
|
|
crctable.o \
|
|
|
|
randtable.o \
|
|
|
|
compress.o \
|
|
|
|
decompress.o \
|
|
|
|
bzlib.o
|
|
|
|
|
|
|
|
all: $(OBJS)
|
2010-11-09 18:32:57 +00:00
|
|
|
$(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.6 $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6
|
2001-06-21 18:37:17 +00:00
|
|
|
rm -f libbz2.so.1.0
|
2010-11-09 18:32:57 +00:00
|
|
|
ln -s libbz2.so.1.0.6 libbz2.so.1.0
|
2001-06-21 18:37:17 +00:00
|
|
|
|
|
|
|
clean:
|
2010-11-09 18:32:57 +00:00
|
|
|
rm -f $(OBJS) bzip2.o libbz2.so.1.0.6 libbz2.so.1.0 bzip2-shared
|
2001-06-21 18:37:17 +00:00
|
|
|
|
|
|
|
blocksort.o: blocksort.c
|
|
|
|
$(CC) $(CFLAGS) -c blocksort.c
|
|
|
|
huffman.o: huffman.c
|
|
|
|
$(CC) $(CFLAGS) -c huffman.c
|
|
|
|
crctable.o: crctable.c
|
|
|
|
$(CC) $(CFLAGS) -c crctable.c
|
|
|
|
randtable.o: randtable.c
|
|
|
|
$(CC) $(CFLAGS) -c randtable.c
|
|
|
|
compress.o: compress.c
|
|
|
|
$(CC) $(CFLAGS) -c compress.c
|
|
|
|
decompress.o: decompress.c
|
|
|
|
$(CC) $(CFLAGS) -c decompress.c
|
|
|
|
bzlib.o: bzlib.c
|
|
|
|
$(CC) $(CFLAGS) -c bzlib.c
|