aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/Config.in100
-rw-r--r--archival/Kbuild22
-rw-r--r--archival/Makefile23
-rw-r--r--archival/Makefile.in41
-rw-r--r--archival/libunarchive/Kbuild59
-rw-r--r--archival/libunarchive/Makefile36
-rw-r--r--archival/libunarchive/Makefile.in83
7 files changed, 131 insertions, 233 deletions
diff --git a/archival/Config.in b/archival/Config.in
index ea8076403..bc87573b1 100644
--- a/archival/Config.in
+++ b/archival/Config.in
@@ -5,7 +5,7 @@
5 5
6menu "Archival Utilities" 6menu "Archival Utilities"
7 7
8config CONFIG_AR 8config AR
9 bool "ar" 9 bool "ar"
10 default n 10 default n
11 help 11 help
@@ -28,17 +28,17 @@ config CONFIG_AR
28 Unless you have a specific application which requires ar, you should 28 Unless you have a specific application which requires ar, you should
29 probably say N here. 29 probably say N here.
30 30
31config CONFIG_FEATURE_AR_LONG_FILENAMES 31config FEATURE_AR_LONG_FILENAMES
32 bool "Enable support for long filenames (not need for debs)" 32 bool "Enable support for long filenames (not need for debs)"
33 default n 33 default n
34 depends on CONFIG_AR 34 depends on AR
35 help 35 help
36 By default the ar format can only store the first 15 characters of the 36 By default the ar format can only store the first 15 characters of the
37 filename, this option removes that limitation. 37 filename, this option removes that limitation.
38 It supports the GNU ar long filename method which moves multiple long 38 It supports the GNU ar long filename method which moves multiple long
39 filenames into a the data section of a new ar entry. 39 filenames into a the data section of a new ar entry.
40 40
41config CONFIG_BUNZIP2 41config BUNZIP2
42 bool "bunzip2" 42 bool "bunzip2"
43 default n 43 default n
44 help 44 help
@@ -54,7 +54,7 @@ config CONFIG_BUNZIP2
54 Unless you have a specific application which requires bunzip2, you 54 Unless you have a specific application which requires bunzip2, you
55 should probably say N here. 55 should probably say N here.
56 56
57config CONFIG_CPIO 57config CPIO
58 bool "cpio" 58 bool "cpio"
59 default n 59 default n
60 help 60 help
@@ -68,7 +68,7 @@ config CONFIG_CPIO
68 Unless you have a specific application which requires cpio, you should 68 Unless you have a specific application which requires cpio, you should
69 probably say N here. 69 probably say N here.
70 70
71config CONFIG_DPKG 71config DPKG
72 bool "dpkg" 72 bool "dpkg"
73 default n 73 default n
74 help 74 help
@@ -77,7 +77,7 @@ config CONFIG_DPKG
77 This implementation of dpkg has a number of limitations, you should use the 77 This implementation of dpkg has a number of limitations, you should use the
78 official dpkg if possible. 78 official dpkg if possible.
79 79
80config CONFIG_DPKG_DEB 80config DPKG_DEB
81 bool "dpkg_deb" 81 bool "dpkg_deb"
82 default n 82 default n
83 help 83 help
@@ -88,16 +88,16 @@ config CONFIG_DPKG_DEB
88 Unless you have a specific application which requires dpkg-deb, you should 88 Unless you have a specific application which requires dpkg-deb, you should
89 probably say N here. 89 probably say N here.
90 90
91config CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY 91config FEATURE_DPKG_DEB_EXTRACT_ONLY
92 bool "extract only (-x)" 92 bool "extract only (-x)"
93 default n 93 default n
94 depends on CONFIG_DPKG_DEB 94 depends on DPKG_DEB
95 help 95 help
96 This reduces dpkg-deb to the equivalent of "ar -p <deb> data.tar.gz | tar -zx". 96 This reduces dpkg-deb to the equivalent of "ar -p <deb> data.tar.gz | tar -zx".
97 However it saves space as none of the extra dpkg-deb, ar or tar options are 97 However it saves space as none of the extra dpkg-deb, ar or tar options are
98 needed, they are linked to internally. 98 needed, they are linked to internally.
99 99
100config CONFIG_GUNZIP 100config GUNZIP
101 bool "gunzip" 101 bool "gunzip"
102 default n 102 default n
103 help 103 help
@@ -105,35 +105,35 @@ config CONFIG_GUNZIP
105 You can use the `-t' option to test the integrity of 105 You can use the `-t' option to test the integrity of
106 an archive, without decompressing it. 106 an archive, without decompressing it.
107 107
108config CONFIG_FEATURE_GUNZIP_UNCOMPRESS 108config FEATURE_GUNZIP_UNCOMPRESS
109 bool "Uncompress support" 109 bool "Uncompress support"
110 default n 110 default n
111 depends on CONFIG_GUNZIP 111 depends on GUNZIP
112 help 112 help
113 Enable if you want gunzip to have the ability to decompress 113 Enable if you want gunzip to have the ability to decompress
114 archives created by the program compress (not much 114 archives created by the program compress (not much
115 used anymore). 115 used anymore).
116 116
117config CONFIG_GZIP 117config GZIP
118 bool "gzip" 118 bool "gzip"
119 default n 119 default n
120 help 120 help
121 gzip is used to compress files. 121 gzip is used to compress files.
122 It's probably the most widely used UNIX compression program. 122 It's probably the most widely used UNIX compression program.
123 123
124config CONFIG_RPM2CPIO 124config RPM2CPIO
125 bool "rpm2cpio" 125 bool "rpm2cpio"
126 default n 126 default n
127 help 127 help
128 Converts an RPM file into a CPIO archive. 128 Converts an RPM file into a CPIO archive.
129 129
130config CONFIG_RPM 130config RPM
131 bool "rpm" 131 bool "rpm"
132 default n 132 default n
133 help 133 help
134 Mini RPM applet - queries and extracts 134 Mini RPM applet - queries and extracts
135 135
136config CONFIG_TAR 136config TAR
137 bool "tar" 137 bool "tar"
138 default n 138 default n
139 help 139 help
@@ -141,86 +141,86 @@ config CONFIG_TAR
141 create compressed archives. It's probably the most widely used 141 create compressed archives. It's probably the most widely used
142 UNIX archive program. 142 UNIX archive program.
143 143
144config CONFIG_FEATURE_TAR_CREATE 144config FEATURE_TAR_CREATE
145 bool "Enable archive creation" 145 bool "Enable archive creation"
146 default y 146 default y
147 depends on CONFIG_TAR 147 depends on TAR
148 help 148 help
149 If you enable this option you'll be able to create 149 If you enable this option you'll be able to create
150 tar archives using the `-c' option. 150 tar archives using the `-c' option.
151 151
152config CONFIG_FEATURE_TAR_BZIP2 152config FEATURE_TAR_BZIP2
153 bool "Enable -j option to handle .tar.bz2 files" 153 bool "Enable -j option to handle .tar.bz2 files"
154 default n 154 default n
155 depends on CONFIG_TAR 155 depends on TAR
156 help 156 help
157 If you enable this option you'll be able to extract 157 If you enable this option you'll be able to extract
158 archives compressed with bzip2. 158 archives compressed with bzip2.
159 159
160config CONFIG_FEATURE_TAR_LZMA 160config FEATURE_TAR_LZMA
161 bool "Enable -a option to handle .tar.lzma files" 161 bool "Enable -a option to handle .tar.lzma files"
162 default n 162 default n
163 depends on CONFIG_TAR 163 depends on TAR
164 help 164 help
165 If you enable this option you'll be able to extract 165 If you enable this option you'll be able to extract
166 archives compressed with lzma. 166 archives compressed with lzma.
167 167
168config CONFIG_FEATURE_TAR_FROM 168config FEATURE_TAR_FROM
169 bool "Enable -X (exclude from) and -T (include from) options)" 169 bool "Enable -X (exclude from) and -T (include from) options)"
170 default n 170 default n
171 depends on CONFIG_TAR 171 depends on TAR
172 help 172 help
173 If you enable this option you'll be able to specify 173 If you enable this option you'll be able to specify
174 a list of files to include or exclude from an archive. 174 a list of files to include or exclude from an archive.
175 175
176config CONFIG_FEATURE_TAR_GZIP 176config FEATURE_TAR_GZIP
177 bool "Enable -z option" 177 bool "Enable -z option"
178 default y 178 default y
179 depends on CONFIG_TAR 179 depends on TAR
180 help 180 help
181 If you enable this option tar will be able to call gzip, 181 If you enable this option tar will be able to call gzip,
182 when creating or extracting tar gziped archives. 182 when creating or extracting tar gziped archives.
183 183
184config CONFIG_FEATURE_TAR_COMPRESS 184config FEATURE_TAR_COMPRESS
185 bool "Enable -Z option" 185 bool "Enable -Z option"
186 default n 186 default n
187 depends on CONFIG_TAR 187 depends on TAR
188 help 188 help
189 If you enable this option tar will be able to call uncompress, 189 If you enable this option tar will be able to call uncompress,
190 when extracting .tar.Z archives. 190 when extracting .tar.Z archives.
191 191
192config CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY 192config FEATURE_TAR_OLDGNU_COMPATIBILITY
193 bool "Enable support for old tar header format" 193 bool "Enable support for old tar header format"
194 default N 194 default N
195 depends on CONFIG_TAR 195 depends on TAR
196 help 196 help
197 This option is required to unpack archives created in 197 This option is required to unpack archives created in
198 the old GNU format; help to kill this old format by 198 the old GNU format; help to kill this old format by
199 repacking your ancient archives with the new format. 199 repacking your ancient archives with the new format.
200 200
201config CONFIG_FEATURE_TAR_GNU_EXTENSIONS 201config FEATURE_TAR_GNU_EXTENSIONS
202 bool "Enable support for some GNU tar extensions" 202 bool "Enable support for some GNU tar extensions"
203 default y 203 default y
204 depends on CONFIG_TAR 204 depends on TAR
205 help 205 help
206 With this option busybox supports GNU long filenames and 206 With this option busybox supports GNU long filenames and
207 linknames. 207 linknames.
208 208
209config CONFIG_FEATURE_TAR_LONG_OPTIONS 209config FEATURE_TAR_LONG_OPTIONS
210 bool "Enable long options" 210 bool "Enable long options"
211 default n 211 default n
212 depends on CONFIG_TAR && CONFIG_GETOPT_LONG 212 depends on TAR && GETOPT_LONG
213 help 213 help
214 Enable use of long options, increases size by about 400 Bytes 214 Enable use of long options, increases size by about 400 Bytes
215 215
216config CONFIG_UNCOMPRESS 216config UNCOMPRESS
217 bool "uncompress" 217 bool "uncompress"
218 default n 218 default n
219 help 219 help
220 uncompress is used to decompress archives created by compress. 220 uncompress is used to decompress archives created by compress.
221 Not much used anymore, replaced by gzip/gunzip. 221 Not much used anymore, replaced by gzip/gunzip.
222 222
223config CONFIG_UNLZMA 223config UNLZMA
224 bool "unlzma" 224 bool "unlzma"
225 default n 225 default n
226 help 226 help
@@ -235,15 +235,15 @@ config CONFIG_UNLZMA
235 Unless you have a specific application which requires unlzma, you 235 Unless you have a specific application which requires unlzma, you
236 should probably say N here. 236 should probably say N here.
237 237
238config CONFIG_FEATURE_LZMA_FAST 238config FEATURE_LZMA_FAST
239 bool "Optimze unlzma for speed" 239 bool "Optimze unlzma for speed"
240 default n 240 default n
241 depends on CONFIG_UNLZMA 241 depends on UNLZMA
242 help 242 help
243 This option reduces decompression time by about 33% at the cost of 243 This option reduces decompression time by about 33% at the cost of
244 a 2K bigger binary. 244 a 2K bigger binary.
245 245
246config CONFIG_UNZIP 246config UNZIP
247 bool "unzip" 247 bool "unzip"
248 default n 248 default n
249 help 249 help
@@ -254,31 +254,31 @@ config CONFIG_UNZIP
254 directory of your choice. 254 directory of your choice.
255 255
256comment "Common options for cpio and tar" 256comment "Common options for cpio and tar"
257 depends on CONFIG_CPIO || CONFIG_TAR 257 depends on CPIO || TAR
258 258
259config CONFIG_FEATURE_UNARCHIVE_TAPE 259config FEATURE_UNARCHIVE_TAPE
260 bool "Enable tape drive support" 260 bool "Enable tape drive support"
261 default n 261 default n
262 depends on CONFIG_CPIO || CONFIG_TAR 262 depends on CPIO || TAR
263 help 263 help
264 I don't think this is needed anymore. 264 I don't think this is needed anymore.
265 265
266comment "Common options for dpkg and dpkg_deb" 266comment "Common options for dpkg and dpkg_deb"
267 depends on CONFIG_DPKG || CONFIG_DPKG_DEB 267 depends on DPKG || DPKG_DEB
268 268
269config CONFIG_FEATURE_DEB_TAR_GZ 269config FEATURE_DEB_TAR_GZ
270 bool "gzip debian packages (normal)" 270 bool "gzip debian packages (normal)"
271 default y if CONFIG_DPKG || CONFIG_DPKG_DEB 271 default y if DPKG || DPKG_DEB
272 depends on CONFIG_DPKG || CONFIG_DPKG_DEB 272 depends on DPKG || DPKG_DEB
273 help 273 help
274 This is the default compression method inside the debian ar file. 274 This is the default compression method inside the debian ar file.
275 275
276 If you want compatibility with standard .deb's you should say yes here. 276 If you want compatibility with standard .deb's you should say yes here.
277 277
278config CONFIG_FEATURE_DEB_TAR_BZ2 278config FEATURE_DEB_TAR_BZ2
279 bool "bzip2 debian packages" 279 bool "bzip2 debian packages"
280 default n 280 default n
281 depends on CONFIG_DPKG || CONFIG_DPKG_DEB 281 depends on DPKG || DPKG_DEB
282 help 282 help
283 This allows dpkg and dpkg-deb to extract deb's that are compressed internally 283 This allows dpkg and dpkg-deb to extract deb's that are compressed internally
284 with bzip2 instead of gzip. 284 with bzip2 instead of gzip.
@@ -286,10 +286,10 @@ config CONFIG_FEATURE_DEB_TAR_BZ2
286 You only want this if you are creating your own custom debian packages that 286 You only want this if you are creating your own custom debian packages that
287 use an internal control.tar.bz2 or data.tar.bz2. 287 use an internal control.tar.bz2 or data.tar.bz2.
288 288
289config CONFIG_FEATURE_DEB_TAR_LZMA 289config FEATURE_DEB_TAR_LZMA
290 bool "lzma debian packages" 290 bool "lzma debian packages"
291 default n 291 default n
292 depends on CONFIG_DPKG || CONFIG_DPKG_DEB 292 depends on DPKG || DPKG_DEB
293 help 293 help
294 This allows dpkg and dpkg-deb to extract deb's that are compressed 294 This allows dpkg and dpkg-deb to extract deb's that are compressed
295 internally with lzma instead of gzip. 295 internally with lzma instead of gzip.
diff --git a/archival/Kbuild b/archival/Kbuild
new file mode 100644
index 000000000..f85e0c2a7
--- /dev/null
+++ b/archival/Kbuild
@@ -0,0 +1,22 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7libs-y += libunarchive/
8
9lib-y:=
10lib-$(CONFIG_AR) += ar.o
11lib-$(CONFIG_BUNZIP2) += bunzip2.o
12lib-$(CONFIG_UNLZMA) += unlzma.o
13lib-$(CONFIG_CPIO) += cpio.o
14lib-$(CONFIG_DPKG) += dpkg.o
15lib-$(CONFIG_DPKG_DEB) += dpkg_deb.o
16lib-$(CONFIG_GUNZIP) += gunzip.o
17lib-$(CONFIG_GZIP) += gzip.o
18lib-$(CONFIG_RPM2CPIO) += rpm2cpio.o
19lib-$(CONFIG_RPM) += rpm.o
20lib-$(CONFIG_TAR) += tar.o
21lib-$(CONFIG_UNCOMPRESS) += uncompress.o
22lib-$(CONFIG_UNZIP) += unzip.o
diff --git a/archival/Makefile b/archival/Makefile
deleted file mode 100644
index 66da4afc1..000000000
--- a/archival/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7ifndef top_srcdir
8top_srcdir=..
9endif
10ifndef top_builddir
11top_builddir=..
12endif
13ARCHIVAL_DIR:=./
14srcdir=$(top_srcdir)/archival
15include $(top_srcdir)/Rules.mak
16include $(top_builddir)/.config
17include $(srcdir)/Makefile.in
18all: $(libraries-y)
19-include $(top_builddir)/.depend
20
21clean:
22 rm -f *.o *.a $(AR_TARGET)
23
diff --git a/archival/Makefile.in b/archival/Makefile.in
deleted file mode 100644
index 276ef4127..000000000
--- a/archival/Makefile.in
+++ /dev/null
@@ -1,41 +0,0 @@
1# Makefile for busybox
2#
3# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
4#
5# Licensed under the GPL v2, see the file LICENSE in this tarball.
6
7ARCHIVAL_AR:=archival.a
8ifndef $(ARCHIVAL_DIR)
9ARCHIVAL_DIR:=$(top_builddir)/archival/
10endif
11srcdir=$(top_srcdir)/archival
12
13ARCHIVAL-y:=
14ARCHIVAL-$(CONFIG_AR) += ar.o
15ARCHIVAL-$(CONFIG_BUNZIP2) += bunzip2.o
16ARCHIVAL-$(CONFIG_UNLZMA) += unlzma.o
17ARCHIVAL-$(CONFIG_CPIO) += cpio.o
18ARCHIVAL-$(CONFIG_DPKG) += dpkg.o
19ARCHIVAL-$(CONFIG_DPKG_DEB) += dpkg_deb.o
20ARCHIVAL-$(CONFIG_GUNZIP) += gunzip.o
21ARCHIVAL-$(CONFIG_GZIP) += gzip.o
22ARCHIVAL-$(CONFIG_RPM2CPIO) += rpm2cpio.o
23ARCHIVAL-$(CONFIG_RPM) += rpm.o
24ARCHIVAL-$(CONFIG_TAR) += tar.o
25ARCHIVAL-$(CONFIG_UNCOMPRESS) += uncompress.o
26ARCHIVAL-$(CONFIG_UNZIP) += unzip.o
27
28ifneq ($(strip $(ARCHIVAL-y)),)
29libraries-y+=$(ARCHIVAL_DIR)$(ARCHIVAL_AR)
30endif
31
32ARCHIVAL_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(ARCHIVAL-y))
33ARCHIVAL_SRC-a:=$(wildcard $(srcdir)/*.c)
34APPLET_SRC-y+=$(ARCHIVAL_SRC-y)
35APPLET_SRC-a+=$(ARCHIVAL_SRC-a)
36
37$(ARCHIVAL_DIR)$(ARCHIVAL_AR): $(patsubst %,$(ARCHIVAL_DIR)%, $(ARCHIVAL-y))
38 $(do_ar)
39
40$(ARCHIVAL_DIR)%.o: $(srcdir)/%.c
41 $(compile.c)
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)