source: trunk/minix/commands/bzip2-1.0.3/Makefile-libbz2_so@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.2 KB
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
9SHELL=/bin/sh
10CC=gcc
11BIGFILES=-D_FILE_OFFSET_BITS=64
12CFLAGS=-fpic -fPIC -Wall -Winline -O -g
13
14OBJS= blocksort.o \
15 huffman.o \
16 crctable.o \
17 randtable.o \
18 compress.o \
19 decompress.o \
20 bzlib.o
21
22all: $(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
28clean:
29 rm -f $(OBJS) bzip2.o libbz2.so.1.0.3 libbz2.so.1.0 bzip2-shared
30
31blocksort.o: blocksort.c
32 $(CC) $(CFLAGS) -c blocksort.c
33huffman.o: huffman.c
34 $(CC) $(CFLAGS) -c huffman.c
35crctable.o: crctable.c
36 $(CC) $(CFLAGS) -c crctable.c
37randtable.o: randtable.c
38 $(CC) $(CFLAGS) -c randtable.c
39compress.o: compress.c
40 $(CC) $(CFLAGS) -c compress.c
41decompress.o: decompress.c
42 $(CC) $(CFLAGS) -c decompress.c
43bzlib.o: bzlib.c
44 $(CC) $(CFLAGS) -c bzlib.c
Note: See TracBrowser for help on using the repository browser.