]> cygwin.com Git - cygwin-apps/setup.git/blame - bz2lib/Makefile-libbz2_so
2002-04-29 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / bz2lib / Makefile-libbz2_so
CommitLineData
ef6bacff
RC
1
2# This Makefile builds a shared version of the library,
ba95a000
RC
3# libbz2.so.1.0.2, 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
ef6bacff
RC
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 -O2 -fomit-frame-pointer -fno-strength-reduce $(BIGFILES)
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)
ba95a000
RC
23 $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.2 $(OBJS)
24 $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.2
ef6bacff 25 rm -f libbz2.so.1.0
ba95a000 26 ln -s libbz2.so.1.0.2 libbz2.so.1.0
ef6bacff
RC
27
28clean:
ba95a000 29 rm -f $(OBJS) bzip2.o libbz2.so.1.0.2 libbz2.so.1.0 bzip2-shared
ef6bacff
RC
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
This page took 0.027814 seconds and 5 git commands to generate.