11
22# This Makefile builds a shared version of the library,
3- # libbz2.so.1.0.6 , with soname libbz2.so.1.0,
3+ # libbz2.so.1.0.7 , with soname libbz2.so.1.0,
44# at least on x86-Linux (RedHat 7.2),
55# with gcc-2.96 20000731 (Red Hat Linux 7.1 2.96-98).
66# Please see the README file for some important info
1111# lossless, block-sorting data compression.
1212#
1313# bzip2/libbzip2 version 1.0.6 of 6 September 2010
14- # Copyright (C) 1996-2010 Julian Seward <jseward@bzip .org>
14+ # Copyright (C) 1996-2010 Julian Seward <jseward@acm .org>
1515#
1616# Please read the WARNING, DISCLAIMER and PATENTS sections in the
1717# README file.
@@ -26,10 +26,6 @@ CC=gcc
2626BIGFILES=-D_FILE_OFFSET_BITS=64
2727CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
2828
29- # Where you want it installed when you do 'make install'
30- PREFIX=/usr/local
31-
32-
3329OBJS= blocksort.o \
3430 huffman.o \
3531 crctable.o \
@@ -39,34 +35,13 @@ OBJS= blocksort.o \
3935 bzlib.o
4036
4137all: $(OBJS)
42- $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.6 $(OBJS)
43- $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6
38+ $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.7 $(OBJS)
39+ $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.7
4440 rm -f libbz2.so.1.0
45- ln -s libbz2.so.1.0.6 libbz2.so.1.0
41+ ln -s libbz2.so.1.0.7 libbz2.so.1.0
4642
47- install: all
48- if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi
49- if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
50- if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
51- if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi
52- if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi
53- cp -f bzip2.1 $(PREFIX)/man/man1
54- chmod a+r $(PREFIX)/man/man1/bzip2.1
55- cp -f bzlib.h $(PREFIX)/include
56- chmod a+r $(PREFIX)/include/bzlib.h
57- cp -f libbz2.so.1.0 $(PREFIX)/bin/libbz2.so
58- chmod a+r $(PREFIX)/bin/libbz2.so
59- cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1
60- chmod a+r $(PREFIX)/man/man1/bzgrep.1
61- chmod a+r $(PREFIX)/man/man1/bzmore.1
62- chmod a+r $(PREFIX)/man/man1/bzdiff.1
63- echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzegrep.1
64- echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1
65- echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
66- echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
67-
6843clean:
69- rm -f $(OBJS) bzip2.o libbz2.so.1.0.6 libbz2.so.1.0 bzip2-shared
44+ rm -f $(OBJS) bzip2.o libbz2.so.1.0.7 libbz2.so.1.0 bzip2-shared
7045
7146blocksort.o: blocksort.c
7247 $(CC) $(CFLAGS) -c blocksort.c
@@ -82,4 +57,3 @@ decompress.o: decompress.c
8257 $(CC) $(CFLAGS) -c decompress.c
8358bzlib.o: bzlib.c
8459 $(CC) $(CFLAGS) -c bzlib.c
85-
0 commit comments