diff options
Diffstat (limited to 'Makefile-libbz2_so')
-rw-r--r-- | Makefile-libbz2_so | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile-libbz2_so b/Makefile-libbz2_so index 4986fe2..458c5a1 100644 --- a/Makefile-libbz2_so +++ b/Makefile-libbz2_so | |||
@@ -1,6 +1,6 @@ | |||
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.2, with soname libbz2.so.1.0, | 3 | # libbz2.so.1.0.3, 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 |
@@ -9,7 +9,7 @@ | |||
9 | SHELL=/bin/sh | 9 | SHELL=/bin/sh |
10 | CC=gcc | 10 | CC=gcc |
11 | BIGFILES=-D_FILE_OFFSET_BITS=64 | 11 | BIGFILES=-D_FILE_OFFSET_BITS=64 |
12 | CFLAGS=-fpic -fPIC -Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce $(BIGFILES) | 12 | CFLAGS=-fpic -fPIC -Wall -Winline -O -g |
13 | 13 | ||
14 | OBJS= blocksort.o \ | 14 | OBJS= blocksort.o \ |
15 | huffman.o \ | 15 | huffman.o \ |
@@ -20,13 +20,13 @@ OBJS= blocksort.o \ | |||
20 | bzlib.o | 20 | bzlib.o |
21 | 21 | ||
22 | all: $(OBJS) | 22 | all: $(OBJS) |
23 | $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.2 $(OBJS) | 23 | $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.3 $(OBJS) |
24 | $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.2 | 24 | $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.3 |
25 | rm -f libbz2.so.1.0 | 25 | rm -f libbz2.so.1.0 |
26 | ln -s libbz2.so.1.0.2 libbz2.so.1.0 | 26 | ln -s libbz2.so.1.0.3 libbz2.so.1.0 |
27 | 27 | ||
28 | clean: | 28 | clean: |
29 | rm -f $(OBJS) bzip2.o libbz2.so.1.0.2 libbz2.so.1.0 bzip2-shared | 29 | rm -f $(OBJS) bzip2.o libbz2.so.1.0.3 libbz2.so.1.0 bzip2-shared |
30 | 30 | ||
31 | blocksort.o: blocksort.c | 31 | blocksort.o: blocksort.c |
32 | $(CC) $(CFLAGS) -c blocksort.c | 32 | $(CC) $(CFLAGS) -c blocksort.c |