diff options
Diffstat (limited to 'Makefile-libbz2_so')
| -rw-r--r-- | Makefile-libbz2_so | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/Makefile-libbz2_so b/Makefile-libbz2_so index 458c5a1..2b65f3b 100644 --- a/Makefile-libbz2_so +++ b/Makefile-libbz2_so | |||
| @@ -1,15 +1,30 @@ | |||
| 1 | 1 | ||
| 2 | # This Makefile builds a shared version of the library, | 2 | # This Makefile builds a shared version of the library, |
| 3 | # libbz2.so.1.0.3, with soname libbz2.so.1.0, | 3 | # libbz2.so.1.0.4, with soname libbz2.so.1.0, |
| 4 | # at least on x86-Linux (RedHat 7.2), | 4 | # at least on x86-Linux (RedHat 7.2), |
| 5 | # with gcc-2.96 20000731 (Red Hat Linux 7.1 2.96-98). | 5 | # with gcc-2.96 20000731 (Red Hat Linux 7.1 2.96-98). |
| 6 | # Please see the README file for some | 6 | # Please see the README file for some important info |
| 7 | # important info about building the library like this. | 7 | # about building the library like this. |
| 8 | |||
| 9 | # ------------------------------------------------------------------ | ||
| 10 | # This file is part of bzip2/libbzip2, a program and library for | ||
| 11 | # lossless, block-sorting data compression. | ||
| 12 | # | ||
| 13 | # bzip2/libbzip2 version 1.0.4 of 20 December 2006 | ||
| 14 | # Copyright (C) 1996-2006 Julian Seward <jseward@bzip.org> | ||
| 15 | # | ||
| 16 | # Please read the WARNING, DISCLAIMER and PATENTS sections in the | ||
| 17 | # README file. | ||
| 18 | # | ||
| 19 | # This program is released under the terms of the license contained | ||
| 20 | # in the file LICENSE. | ||
| 21 | # ------------------------------------------------------------------ | ||
| 22 | |||
| 8 | 23 | ||
| 9 | SHELL=/bin/sh | 24 | SHELL=/bin/sh |
| 10 | CC=gcc | 25 | CC=gcc |
| 11 | BIGFILES=-D_FILE_OFFSET_BITS=64 | 26 | BIGFILES=-D_FILE_OFFSET_BITS=64 |
| 12 | CFLAGS=-fpic -fPIC -Wall -Winline -O -g | 27 | CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES) |
| 13 | 28 | ||
| 14 | OBJS= blocksort.o \ | 29 | OBJS= blocksort.o \ |
| 15 | huffman.o \ | 30 | huffman.o \ |
| @@ -20,13 +35,13 @@ OBJS= blocksort.o \ | |||
| 20 | bzlib.o | 35 | bzlib.o |
| 21 | 36 | ||
| 22 | all: $(OBJS) | 37 | all: $(OBJS) |
| 23 | $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.3 $(OBJS) | 38 | $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.4 $(OBJS) |
| 24 | $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.3 | 39 | $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.4 |
| 25 | rm -f libbz2.so.1.0 | 40 | rm -f libbz2.so.1.0 |
| 26 | ln -s libbz2.so.1.0.3 libbz2.so.1.0 | 41 | ln -s libbz2.so.1.0.4 libbz2.so.1.0 |
| 27 | 42 | ||
| 28 | clean: | 43 | clean: |
| 29 | rm -f $(OBJS) bzip2.o libbz2.so.1.0.3 libbz2.so.1.0 bzip2-shared | 44 | rm -f $(OBJS) bzip2.o libbz2.so.1.0.4 libbz2.so.1.0 bzip2-shared |
| 30 | 45 | ||
| 31 | blocksort.o: blocksort.c | 46 | blocksort.o: blocksort.c |
| 32 | $(CC) $(CFLAGS) -c blocksort.c | 47 | $(CC) $(CFLAGS) -c blocksort.c |
