aboutsummaryrefslogtreecommitdiff
path: root/archival/libunarchive
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-05 10:17:08 +0000
commit7d219aab70e6951ab82c27c202cac05016696723 (patch)
tree4c0679bfa391f71aee9b51505a5d3dc8f60a0cf7 /archival/libunarchive
parent8f8f268cfdecb4cabeb2e649a73afc7a485aeff5 (diff)
downloadbusybox-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/Kbuild59
-rw-r--r--archival/libunarchive/Makefile36
-rw-r--r--archival/libunarchive/Makefile.in83
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
7lib-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
32GUNZIP_FILES:= check_header_gzip.o decompress_unzip.o
33DPKG_FILES:= \
34 get_header_ar.o \
35 unpack_ar_archive.o \
36 get_header_tar.o \
37 filter_accept_list_reassign.o
38
39lib-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o
40lib-$(CONFIG_BUNZIP2) += decompress_bunzip2.o
41lib-$(CONFIG_UNLZMA) += decompress_unlzma.o
42lib-$(CONFIG_CPIO) += get_header_cpio.o
43lib-$(CONFIG_DPKG) += $(DPKG_FILES)
44lib-$(CONFIG_DPKG_DEB) += $(DPKG_FILES)
45lib-$(CONFIG_FEATURE_DEB_TAR_GZ) += $(GUNZIP_FILES) get_header_tar_gz.o
46lib-$(CONFIG_FEATURE_DEB_TAR_BZ2) += decompress_bunzip2.o get_header_tar_bz2.o
47lib-$(CONFIG_FEATURE_DEB_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o
48lib-$(CONFIG_GUNZIP) += $(GUNZIP_FILES)
49lib-$(CONFIG_FEATURE_GUNZIP_UNCOMPRESS) += decompress_uncompress.o
50lib-$(CONFIG_RPM2CPIO) += $(GUNZIP_FILES) get_header_cpio.o
51lib-$(CONFIG_RPM) += $(GUNZIP_FILES) get_header_cpio.o
52lib-$(CONFIG_TAR) += get_header_tar.o
53lib-$(CONFIG_FEATURE_TAR_BZIP2) += decompress_bunzip2.o get_header_tar_bz2.o
54lib-$(CONFIG_FEATURE_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o
55lib-$(CONFIG_FEATURE_TAR_GZIP) += $(GUNZIP_FILES) get_header_tar_gz.o
56lib-$(CONFIG_FEATURE_TAR_COMPRESS) += decompress_uncompress.o
57lib-$(CONFIG_UNCOMPRESS) += decompress_uncompress.o
58lib-$(CONFIG_UNZIP) += $(GUNZIP_FILES)
59lib-$(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
20ifndef top_srcdir
21top_srcdir=../..
22endif
23ifndef top_builddir
24top_builddir=../..
25endif
26srcdir=$(top_srcdir)/archival/libunarchive
27LIBUNARCHIVE_DIR:=./
28include $(top_srcdir)/Rules.mak
29include $(top_builddir)/.config
30include $(srcdir)/Makefile.in
31all: $(libraries-y)
32-include $(top_builddir)/.depend
33
34clean:
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
7LIBUNARCHIVE_AR:=libunarchive.a
8ifndef $(LIBUNARCHIVE_DIR)
9LIBUNARCHIVE_DIR:=$(top_builddir)/archival/libunarchive
10endif
11srcdir=$(top_srcdir)/archival/libunarchive
12
13LIBUNARCHIVE-obj:=$(LIBUNARCHIVE_DIR)/$(LIBUNARCHIVE_AR)
14
15libraries-y+=$(LIBUNARCHIVE-obj)
16
17LIBUNARCHIVE-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
42GUNZIP_FILES:= check_header_gzip.o decompress_unzip.o
43DPKG_FILES:= \
44 get_header_ar.o \
45 unpack_ar_archive.o \
46 get_header_tar.o \
47 filter_accept_list_reassign.o
48
49LIBUNARCHIVE-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o
50LIBUNARCHIVE-$(CONFIG_BUNZIP2) += decompress_bunzip2.o
51LIBUNARCHIVE-$(CONFIG_UNLZMA) += decompress_unlzma.o
52LIBUNARCHIVE-$(CONFIG_CPIO) += get_header_cpio.o
53LIBUNARCHIVE-$(CONFIG_DPKG) += $(DPKG_FILES)
54LIBUNARCHIVE-$(CONFIG_DPKG_DEB) += $(DPKG_FILES)
55LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_GZ) += $(GUNZIP_FILES) get_header_tar_gz.o
56LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_BZ2) += decompress_bunzip2.o get_header_tar_bz2.o
57LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o
58LIBUNARCHIVE-$(CONFIG_GUNZIP) += $(GUNZIP_FILES)
59LIBUNARCHIVE-$(CONFIG_FEATURE_GUNZIP_UNCOMPRESS) += decompress_uncompress.o
60LIBUNARCHIVE-$(CONFIG_RPM2CPIO) += $(GUNZIP_FILES) get_header_cpio.o
61LIBUNARCHIVE-$(CONFIG_RPM) += $(GUNZIP_FILES) get_header_cpio.o
62LIBUNARCHIVE-$(CONFIG_TAR) += get_header_tar.o
63LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_BZIP2) += decompress_bunzip2.o get_header_tar_bz2.o
64LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o
65LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_GZIP) += $(GUNZIP_FILES) get_header_tar_gz.o
66LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_COMPRESS) += decompress_uncompress.o
67LIBUNARCHIVE-$(CONFIG_UNCOMPRESS) += decompress_uncompress.o
68LIBUNARCHIVE-$(CONFIG_UNZIP) += $(GUNZIP_FILES)
69LIBUNARCHIVE-$(CONFIG_FEATURE_COMPRESS_USAGE) += decompress_bunzip2.o
70
71
72LIBUNARCHIVE-y:=$(sort $(LIBUNARCHIVE-y))
73
74LIBUNARCHIVE_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBUNARCHIVE-y)))
75LIBUNARCHIVE_SRC-a:=$(wildcard $(srcdir)/*.c)
76LIBRARY_SRC-y+=$(LIBUNARCHIVE_SRC-y)
77LIBRARY_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)