Line | |
---|
1 |
|
---|
2 | # This Makefile builds a shared version of the library,
|
---|
3 | # libbz2.so.1.0.3, 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
|
---|
7 | # important info about building the library like this.
|
---|
8 |
|
---|
9 | SHELL=/bin/sh
|
---|
10 | CC=gcc
|
---|
11 | BIGFILES=-D_FILE_OFFSET_BITS=64
|
---|
12 | CFLAGS=-fpic -fPIC -Wall -Winline -O -g
|
---|
13 |
|
---|
14 | OBJS= blocksort.o \
|
---|
15 | huffman.o \
|
---|
16 | crctable.o \
|
---|
17 | randtable.o \
|
---|
18 | compress.o \
|
---|
19 | decompress.o \
|
---|
20 | bzlib.o
|
---|
21 |
|
---|
22 | all: $(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.3
|
---|
25 | rm -f libbz2.so.1.0
|
---|
26 | ln -s libbz2.so.1.0.3 libbz2.so.1.0
|
---|
27 |
|
---|
28 | clean:
|
---|
29 | rm -f $(OBJS) bzip2.o libbz2.so.1.0.3 libbz2.so.1.0 bzip2-shared
|
---|
30 |
|
---|
31 | blocksort.o: blocksort.c
|
---|
32 | $(CC) $(CFLAGS) -c blocksort.c
|
---|
33 | huffman.o: huffman.c
|
---|
34 | $(CC) $(CFLAGS) -c huffman.c
|
---|
35 | crctable.o: crctable.c
|
---|
36 | $(CC) $(CFLAGS) -c crctable.c
|
---|
37 | randtable.o: randtable.c
|
---|
38 | $(CC) $(CFLAGS) -c randtable.c
|
---|
39 | compress.o: compress.c
|
---|
40 | $(CC) $(CFLAGS) -c compress.c
|
---|
41 | decompress.o: decompress.c
|
---|
42 | $(CC) $(CFLAGS) -c decompress.c
|
---|
43 | bzlib.o: bzlib.c
|
---|
44 | $(CC) $(CFLAGS) -c bzlib.c
|
---|
Note:
See
TracBrowser
for help on using the repository browser.