diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-05 10:17:08 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-05 10:17:08 +0000 |
commit | 7d219aab70e6951ab82c27c202cac05016696723 (patch) | |
tree | 4c0679bfa391f71aee9b51505a5d3dc8f60a0cf7 /archival/libunarchive | |
parent | 8f8f268cfdecb4cabeb2e649a73afc7a485aeff5 (diff) | |
download | busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.gz busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.tar.bz2 busybox-w32-7d219aab70e6951ab82c27c202cac05016696723.zip |
build system overhaul
Diffstat (limited to 'archival/libunarchive')
-rw-r--r-- | archival/libunarchive/Kbuild | 59 | ||||
-rw-r--r-- | archival/libunarchive/Makefile | 36 | ||||
-rw-r--r-- | archival/libunarchive/Makefile.in | 83 |
3 files changed, 59 insertions, 119 deletions
diff --git a/archival/libunarchive/Kbuild b/archival/libunarchive/Kbuild new file mode 100644 index 000000000..c5f1bfbfe --- /dev/null +++ b/archival/libunarchive/Kbuild | |||
@@ -0,0 +1,59 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | ||
6 | |||
7 | lib-y:= \ | ||
8 | \ | ||
9 | data_skip.o \ | ||
10 | data_extract_all.o \ | ||
11 | data_extract_to_stdout.o \ | ||
12 | data_extract_to_buffer.o \ | ||
13 | \ | ||
14 | filter_accept_all.o \ | ||
15 | filter_accept_list.o \ | ||
16 | filter_accept_reject_list.o \ | ||
17 | \ | ||
18 | header_skip.o \ | ||
19 | header_list.o \ | ||
20 | header_verbose_list.o \ | ||
21 | \ | ||
22 | archive_xread_all_eof.o \ | ||
23 | \ | ||
24 | seek_by_char.o \ | ||
25 | seek_by_jump.o \ | ||
26 | \ | ||
27 | data_align.o \ | ||
28 | find_list_entry.o \ | ||
29 | open_transformer.o \ | ||
30 | init_handle.o | ||
31 | |||
32 | GUNZIP_FILES:= check_header_gzip.o decompress_unzip.o | ||
33 | DPKG_FILES:= \ | ||
34 | get_header_ar.o \ | ||
35 | unpack_ar_archive.o \ | ||
36 | get_header_tar.o \ | ||
37 | filter_accept_list_reassign.o | ||
38 | |||
39 | lib-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o | ||
40 | lib-$(CONFIG_BUNZIP2) += decompress_bunzip2.o | ||
41 | lib-$(CONFIG_UNLZMA) += decompress_unlzma.o | ||
42 | lib-$(CONFIG_CPIO) += get_header_cpio.o | ||
43 | lib-$(CONFIG_DPKG) += $(DPKG_FILES) | ||
44 | lib-$(CONFIG_DPKG_DEB) += $(DPKG_FILES) | ||
45 | lib-$(CONFIG_FEATURE_DEB_TAR_GZ) += $(GUNZIP_FILES) get_header_tar_gz.o | ||
46 | lib-$(CONFIG_FEATURE_DEB_TAR_BZ2) += decompress_bunzip2.o get_header_tar_bz2.o | ||
47 | lib-$(CONFIG_FEATURE_DEB_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o | ||
48 | lib-$(CONFIG_GUNZIP) += $(GUNZIP_FILES) | ||
49 | lib-$(CONFIG_FEATURE_GUNZIP_UNCOMPRESS) += decompress_uncompress.o | ||
50 | lib-$(CONFIG_RPM2CPIO) += $(GUNZIP_FILES) get_header_cpio.o | ||
51 | lib-$(CONFIG_RPM) += $(GUNZIP_FILES) get_header_cpio.o | ||
52 | lib-$(CONFIG_TAR) += get_header_tar.o | ||
53 | lib-$(CONFIG_FEATURE_TAR_BZIP2) += decompress_bunzip2.o get_header_tar_bz2.o | ||
54 | lib-$(CONFIG_FEATURE_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o | ||
55 | lib-$(CONFIG_FEATURE_TAR_GZIP) += $(GUNZIP_FILES) get_header_tar_gz.o | ||
56 | lib-$(CONFIG_FEATURE_TAR_COMPRESS) += decompress_uncompress.o | ||
57 | lib-$(CONFIG_UNCOMPRESS) += decompress_uncompress.o | ||
58 | lib-$(CONFIG_UNZIP) += $(GUNZIP_FILES) | ||
59 | lib-$(CONFIG_FEATURE_COMPRESS_USAGE) += decompress_bunzip2.o | ||
diff --git a/archival/libunarchive/Makefile b/archival/libunarchive/Makefile deleted file mode 100644 index 9ab1cac81..000000000 --- a/archival/libunarchive/Makefile +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # This program is free software; you can redistribute it and/or modify | ||
6 | # it under the terms of the GNU General Public License as published by | ||
7 | # the Free Software Foundation; either version 2 of the License, or | ||
8 | # (at your option) any later version. | ||
9 | # | ||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | # General Public License for more details. | ||
14 | # | ||
15 | # You should have received a copy of the GNU General Public License | ||
16 | # along with this program; if not, write to the Free Software | ||
17 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
18 | # | ||
19 | |||
20 | ifndef top_srcdir | ||
21 | top_srcdir=../.. | ||
22 | endif | ||
23 | ifndef top_builddir | ||
24 | top_builddir=../.. | ||
25 | endif | ||
26 | srcdir=$(top_srcdir)/archival/libunarchive | ||
27 | LIBUNARCHIVE_DIR:=./ | ||
28 | include $(top_srcdir)/Rules.mak | ||
29 | include $(top_builddir)/.config | ||
30 | include $(srcdir)/Makefile.in | ||
31 | all: $(libraries-y) | ||
32 | -include $(top_builddir)/.depend | ||
33 | |||
34 | clean: | ||
35 | rm -f *.o *.a $(AR_TARGET) | ||
36 | |||
diff --git a/archival/libunarchive/Makefile.in b/archival/libunarchive/Makefile.in deleted file mode 100644 index 46c50f81d..000000000 --- a/archival/libunarchive/Makefile.in +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | ||
6 | |||
7 | LIBUNARCHIVE_AR:=libunarchive.a | ||
8 | ifndef $(LIBUNARCHIVE_DIR) | ||
9 | LIBUNARCHIVE_DIR:=$(top_builddir)/archival/libunarchive | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/archival/libunarchive | ||
12 | |||
13 | LIBUNARCHIVE-obj:=$(LIBUNARCHIVE_DIR)/$(LIBUNARCHIVE_AR) | ||
14 | |||
15 | libraries-y+=$(LIBUNARCHIVE-obj) | ||
16 | |||
17 | LIBUNARCHIVE-y:= \ | ||
18 | \ | ||
19 | data_skip.o \ | ||
20 | data_extract_all.o \ | ||
21 | data_extract_to_stdout.o \ | ||
22 | data_extract_to_buffer.o \ | ||
23 | \ | ||
24 | filter_accept_all.o \ | ||
25 | filter_accept_list.o \ | ||
26 | filter_accept_reject_list.o \ | ||
27 | \ | ||
28 | header_skip.o \ | ||
29 | header_list.o \ | ||
30 | header_verbose_list.o \ | ||
31 | \ | ||
32 | archive_xread_all_eof.o \ | ||
33 | \ | ||
34 | seek_by_char.o \ | ||
35 | seek_by_jump.o \ | ||
36 | \ | ||
37 | data_align.o \ | ||
38 | find_list_entry.o \ | ||
39 | open_transformer.o \ | ||
40 | init_handle.o | ||
41 | |||
42 | GUNZIP_FILES:= check_header_gzip.o decompress_unzip.o | ||
43 | DPKG_FILES:= \ | ||
44 | get_header_ar.o \ | ||
45 | unpack_ar_archive.o \ | ||
46 | get_header_tar.o \ | ||
47 | filter_accept_list_reassign.o | ||
48 | |||
49 | LIBUNARCHIVE-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o | ||
50 | LIBUNARCHIVE-$(CONFIG_BUNZIP2) += decompress_bunzip2.o | ||
51 | LIBUNARCHIVE-$(CONFIG_UNLZMA) += decompress_unlzma.o | ||
52 | LIBUNARCHIVE-$(CONFIG_CPIO) += get_header_cpio.o | ||
53 | LIBUNARCHIVE-$(CONFIG_DPKG) += $(DPKG_FILES) | ||
54 | LIBUNARCHIVE-$(CONFIG_DPKG_DEB) += $(DPKG_FILES) | ||
55 | LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_GZ) += $(GUNZIP_FILES) get_header_tar_gz.o | ||
56 | LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_BZ2) += decompress_bunzip2.o get_header_tar_bz2.o | ||
57 | LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o | ||
58 | LIBUNARCHIVE-$(CONFIG_GUNZIP) += $(GUNZIP_FILES) | ||
59 | LIBUNARCHIVE-$(CONFIG_FEATURE_GUNZIP_UNCOMPRESS) += decompress_uncompress.o | ||
60 | LIBUNARCHIVE-$(CONFIG_RPM2CPIO) += $(GUNZIP_FILES) get_header_cpio.o | ||
61 | LIBUNARCHIVE-$(CONFIG_RPM) += $(GUNZIP_FILES) get_header_cpio.o | ||
62 | LIBUNARCHIVE-$(CONFIG_TAR) += get_header_tar.o | ||
63 | LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_BZIP2) += decompress_bunzip2.o get_header_tar_bz2.o | ||
64 | LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o | ||
65 | LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_GZIP) += $(GUNZIP_FILES) get_header_tar_gz.o | ||
66 | LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_COMPRESS) += decompress_uncompress.o | ||
67 | LIBUNARCHIVE-$(CONFIG_UNCOMPRESS) += decompress_uncompress.o | ||
68 | LIBUNARCHIVE-$(CONFIG_UNZIP) += $(GUNZIP_FILES) | ||
69 | LIBUNARCHIVE-$(CONFIG_FEATURE_COMPRESS_USAGE) += decompress_bunzip2.o | ||
70 | |||
71 | |||
72 | LIBUNARCHIVE-y:=$(sort $(LIBUNARCHIVE-y)) | ||
73 | |||
74 | LIBUNARCHIVE_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBUNARCHIVE-y))) | ||
75 | LIBUNARCHIVE_SRC-a:=$(wildcard $(srcdir)/*.c) | ||
76 | LIBRARY_SRC-y+=$(LIBUNARCHIVE_SRC-y) | ||
77 | LIBRARY_SRC-a+=$(LIBUNARCHIVE_SRC-a) | ||
78 | |||
79 | $(LIBUNARCHIVE_DIR)/$(LIBUNARCHIVE_AR): $(patsubst %,$(LIBUNARCHIVE_DIR)/%,$(LIBUNARCHIVE-y)) | ||
80 | $(do_ar) | ||
81 | |||
82 | $(LIBUNARCHIVE_DIR)/%.o: $(srcdir)/%.c | ||
83 | $(compile.c) | ||