diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 30 | ||||
-rw-r--r-- | Makefile-libbz2_so | 31 |
2 files changed, 44 insertions, 17 deletions
@@ -1,3 +1,16 @@ | |||
1 | # ------------------------------------------------------------------ | ||
2 | # This file is part of bzip2/libbzip2, a program and library for | ||
3 | # lossless, block-sorting data compression. | ||
4 | # | ||
5 | # bzip2/libbzip2 version 1.0.4 of 20 December 2006 | ||
6 | # Copyright (C) 1996-2006 Julian Seward <jseward@bzip.org> | ||
7 | # | ||
8 | # Please read the WARNING, DISCLAIMER and PATENTS sections in the | ||
9 | # README file. | ||
10 | # | ||
11 | # This program is released under the terms of the license contained | ||
12 | # in the file LICENSE. | ||
13 | # ------------------------------------------------------------------ | ||
1 | 14 | ||
2 | SHELL=/bin/sh | 15 | SHELL=/bin/sh |
3 | 16 | ||
@@ -8,10 +21,10 @@ RANLIB=ranlib | |||
8 | LDFLAGS= | 21 | LDFLAGS= |
9 | 22 | ||
10 | BIGFILES=-D_FILE_OFFSET_BITS=64 | 23 | BIGFILES=-D_FILE_OFFSET_BITS=64 |
11 | CFLAGS=-Wall -Winline -O -g $(BIGFILES) | 24 | CFLAGS=-Wall -Winline -O2 -g $(BIGFILES) |
12 | 25 | ||
13 | # Where you want it installed when you do 'make install' | 26 | # Where you want it installed when you do 'make install' |
14 | PREFIX=/usr | 27 | PREFIX=/usr/local |
15 | 28 | ||
16 | 29 | ||
17 | OBJS= blocksort.o \ | 30 | OBJS= blocksort.o \ |
@@ -77,14 +90,14 @@ install: bzip2 bzip2recover | |||
77 | cp -f libbz2.a $(PREFIX)/lib | 90 | cp -f libbz2.a $(PREFIX)/lib |
78 | chmod a+r $(PREFIX)/lib/libbz2.a | 91 | chmod a+r $(PREFIX)/lib/libbz2.a |
79 | cp -f bzgrep $(PREFIX)/bin/bzgrep | 92 | cp -f bzgrep $(PREFIX)/bin/bzgrep |
80 | ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep | 93 | ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep |
81 | ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep | 94 | ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep |
82 | chmod a+x $(PREFIX)/bin/bzgrep | 95 | chmod a+x $(PREFIX)/bin/bzgrep |
83 | cp -f bzmore $(PREFIX)/bin/bzmore | 96 | cp -f bzmore $(PREFIX)/bin/bzmore |
84 | ln $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless | 97 | ln -s -f $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless |
85 | chmod a+x $(PREFIX)/bin/bzmore | 98 | chmod a+x $(PREFIX)/bin/bzmore |
86 | cp -f bzdiff $(PREFIX)/bin/bzdiff | 99 | cp -f bzdiff $(PREFIX)/bin/bzdiff |
87 | ln $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp | 100 | ln -s -f $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp |
88 | chmod a+x $(PREFIX)/bin/bzdiff | 101 | chmod a+x $(PREFIX)/bin/bzdiff |
89 | cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1 | 102 | cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1 |
90 | chmod a+r $(PREFIX)/man/man1/bzgrep.1 | 103 | chmod a+r $(PREFIX)/man/man1/bzgrep.1 |
@@ -124,10 +137,10 @@ bzip2recover.o: bzip2recover.c | |||
124 | distclean: clean | 137 | distclean: clean |
125 | rm -f manual.ps manual.html manual.pdf | 138 | rm -f manual.ps manual.html manual.pdf |
126 | 139 | ||
127 | DISTNAME=bzip2-1.0.3 | 140 | DISTNAME=bzip2-1.0.4 |
128 | dist: check manual | 141 | dist: check manual |
129 | rm -f $(DISTNAME) | 142 | rm -f $(DISTNAME) |
130 | ln -sf . $(DISTNAME) | 143 | ln -s -f . $(DISTNAME) |
131 | tar cvf $(DISTNAME).tar \ | 144 | tar cvf $(DISTNAME).tar \ |
132 | $(DISTNAME)/blocksort.c \ | 145 | $(DISTNAME)/blocksort.c \ |
133 | $(DISTNAME)/huffman.c \ | 146 | $(DISTNAME)/huffman.c \ |
@@ -167,7 +180,6 @@ dist: check manual | |||
167 | $(DISTNAME)/libbz2.dsp \ | 180 | $(DISTNAME)/libbz2.dsp \ |
168 | $(DISTNAME)/dlltest.dsp \ | 181 | $(DISTNAME)/dlltest.dsp \ |
169 | $(DISTNAME)/makefile.msc \ | 182 | $(DISTNAME)/makefile.msc \ |
170 | $(DISTNAME)/Y2K_INFO \ | ||
171 | $(DISTNAME)/unzcrash.c \ | 183 | $(DISTNAME)/unzcrash.c \ |
172 | $(DISTNAME)/spewG.c \ | 184 | $(DISTNAME)/spewG.c \ |
173 | $(DISTNAME)/mk251.c \ | 185 | $(DISTNAME)/mk251.c \ |
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 |