1 |
vapier 14/01/05 17:58:12 |
2 |
|
3 |
Added: bzip2-1.0.6-out-of-tree-build.patch |
4 |
Log: |
5 |
Add minimal out-of-tree build support to speed up the build a bit. |
6 |
|
7 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key D2E96200) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-arch/bzip2/files/bzip2-1.0.6-out-of-tree-build.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/bzip2/files/bzip2-1.0.6-out-of-tree-build.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/bzip2/files/bzip2-1.0.6-out-of-tree-build.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: bzip2-1.0.6-out-of-tree-build.patch |
16 |
=================================================================== |
17 |
--- a/Makefile |
18 |
+++ b/Makefile |
19 |
@@ -53,7 +53,6 @@ libbz2.a: $(OBJS) |
20 |
|
21 |
check: test |
22 |
test: bzip2 |
23 |
- @cat words1 |
24 |
./bzip2 -1 < sample1.ref > sample1.rb2 |
25 |
./bzip2 -2 < sample2.ref > sample2.rb2 |
26 |
./bzip2 -3 < sample3.ref > sample3.rb2 |
27 |
@@ -66,7 +65,6 @@ test: bzip2 |
28 |
cmp sample1.tst sample1.ref |
29 |
cmp sample2.tst sample2.ref |
30 |
cmp sample3.tst sample3.ref |
31 |
- @cat words3 |
32 |
|
33 |
install: bzip2 bzip2recover |
34 |
if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi |
35 |
@@ -115,25 +113,8 @@ clean: |
36 |
sample1.rb2 sample2.rb2 sample3.rb2 \ |
37 |
sample1.tst sample2.tst sample3.tst |
38 |
|
39 |
-blocksort.o: blocksort.c |
40 |
- @cat words0 |
41 |
- $(CC) $(CFLAGS) -c blocksort.c |
42 |
-huffman.o: huffman.c |
43 |
- $(CC) $(CFLAGS) -c huffman.c |
44 |
-crctable.o: crctable.c |
45 |
- $(CC) $(CFLAGS) -c crctable.c |
46 |
-randtable.o: randtable.c |
47 |
- $(CC) $(CFLAGS) -c randtable.c |
48 |
-compress.o: compress.c |
49 |
- $(CC) $(CFLAGS) -c compress.c |
50 |
-decompress.o: decompress.c |
51 |
- $(CC) $(CFLAGS) -c decompress.c |
52 |
-bzlib.o: bzlib.c |
53 |
- $(CC) $(CFLAGS) -c bzlib.c |
54 |
-bzip2.o: bzip2.c |
55 |
- $(CC) $(CFLAGS) -c bzip2.c |
56 |
-bzip2recover.o: bzip2recover.c |
57 |
- $(CC) $(CFLAGS) -c bzip2recover.c |
58 |
+%.o: %.c |
59 |
+ $(CC) $(CFLAGS) -c $< |
60 |
|
61 |
|
62 |
distclean: clean |
63 |
--- a/Makefile-libbz2_so |
64 |
+++ b/Makefile-libbz2_so |
65 |
@@ -36,9 +36,7 @@ OBJS= blocksort.o \ |
66 |
|
67 |
all: $(OBJS) |
68 |
$(CC) $(LDFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.6 $(OBJS) |
69 |
- $(CC) $(LDFLAGS) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6 |
70 |
- rm -f libbz2.so.1.0 |
71 |
- ln -s libbz2.so.1.0.6 libbz2.so.1.0 |
72 |
+ ln -sf libbz2.so.1.0.6 libbz2.so.1.0 |
73 |
|
74 |
clean: |
75 |
rm -f $(OBJS) bzip2.o libbz2.so.1.0.6 libbz2.so.1.0 bzip2-shared |
76 |
@@ -43,17 +43,5 @@ all: $(OBJS) |
77 |
clean: |
78 |
rm -f $(OBJS) bzip2.o libbz2.so.1.0.6 libbz2.so.1.0 bzip2-shared |
79 |
|
80 |
-blocksort.o: blocksort.c |
81 |
- $(CC) $(CFLAGS) -c blocksort.c |
82 |
-huffman.o: huffman.c |
83 |
- $(CC) $(CFLAGS) -c huffman.c |
84 |
-crctable.o: crctable.c |
85 |
- $(CC) $(CFLAGS) -c crctable.c |
86 |
-randtable.o: randtable.c |
87 |
- $(CC) $(CFLAGS) -c randtable.c |
88 |
-compress.o: compress.c |
89 |
- $(CC) $(CFLAGS) -c compress.c |
90 |
-decompress.o: decompress.c |
91 |
- $(CC) $(CFLAGS) -c decompress.c |
92 |
-bzlib.o: bzlib.c |
93 |
- $(CC) $(CFLAGS) -c bzlib.c |
94 |
+%.o: %.c |
95 |
+ $(CC) $(CFLAGS) -c $< |