blob: d77aff736840983ec39c48a6e8b3489414046436 [file] [log] [blame]
Eric Andersen85208e22002-04-12 12:05:57 +00001# Makefile for busybox
2#
Eric Andersenc7bda1c2004-03-15 08:29:22 +00003# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
Eric Andersen85208e22002-04-12 12:05:57 +00004#
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +00005# Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
Eric Andersen85208e22002-04-12 12:05:57 +00006
Bernhard Reutner-Fischer07a79e72006-03-09 09:03:37 +00007srcdir:=$(top_srcdir)/archival/libunarchive
8objdir:=$(top_builddir)/archival/libunarchive
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +00009
Glenn L McGrath7ca04f32002-09-25 02:47:48 +000010LIBUNARCHIVE-y:= \
11\
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000012 data_skip \
13 data_extract_all \
14 data_extract_to_stdout \
15 data_extract_to_buffer \
Glenn L McGrath7ca04f32002-09-25 02:47:48 +000016\
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000017 filter_accept_all \
18 filter_accept_list \
19 filter_accept_reject_list \
Glenn L McGrath7ca04f32002-09-25 02:47:48 +000020\
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000021 header_skip \
22 header_list \
23 header_verbose_list \
Glenn L McGrath7ca04f32002-09-25 02:47:48 +000024\
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000025 archive_xread_all \
26 archive_xread_all_eof \
Glenn L McGrath237ae422002-11-03 14:05:15 +000027\
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000028 seek_by_char \
29 seek_by_jump \
Glenn L McGrath237ae422002-11-03 14:05:15 +000030\
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000031 data_align \
32 find_list_entry \
33 open_transformer \
34 init_handle
Glenn L McGrath7ca04f32002-09-25 02:47:48 +000035
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000036GUNZIP_FILES:= check_header_gzip decompress_unzip
Glenn L McGrathe81fc5f2003-10-28 10:44:58 +000037DPKG_FILES:= \
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000038 get_header_ar \
39 unpack_ar_archive \
40 get_header_tar \
41 filter_accept_list_reassign
Glenn L McGrathe81fc5f2003-10-28 10:44:58 +000042
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000043LIBUNARCHIVE-$(CONFIG_AR) += get_header_ar unpack_ar_archive
44LIBUNARCHIVE-$(CONFIG_BUNZIP2) += decompress_bunzip2
45LIBUNARCHIVE-$(CONFIG_UNLZMA) += decompress_unlzma
46LIBUNARCHIVE-$(CONFIG_CPIO) += get_header_cpio
Glenn L McGrathe81fc5f2003-10-28 10:44:58 +000047LIBUNARCHIVE-$(CONFIG_DPKG) += $(DPKG_FILES)
48LIBUNARCHIVE-$(CONFIG_DPKG_DEB) += $(DPKG_FILES)
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000049LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_GZ) += $(GUNZIP_FILES) get_header_tar_gz
50LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_BZ2) += decompress_bunzip2 get_header_tar_bz2
51LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_LZMA) += decompress_unlzma get_header_tar_lzma
Glenn L McGrathe81fc5f2003-10-28 10:44:58 +000052LIBUNARCHIVE-$(CONFIG_GUNZIP) += $(GUNZIP_FILES)
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000053LIBUNARCHIVE-$(CONFIG_FEATURE_GUNZIP_UNCOMPRESS) += decompress_uncompress
54LIBUNARCHIVE-$(CONFIG_RPM2CPIO) += $(GUNZIP_FILES) get_header_cpio
55LIBUNARCHIVE-$(CONFIG_RPM) += $(GUNZIP_FILES) get_header_cpio
56LIBUNARCHIVE-$(CONFIG_TAR) += get_header_tar
57LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_BZIP2) += decompress_bunzip2 get_header_tar_bz2
58LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_LZMA) += decompress_unlzma get_header_tar_lzma
59LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_GZIP) += $(GUNZIP_FILES) get_header_tar_gz
60LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_COMPRESS) += decompress_uncompress
61LIBUNARCHIVE-$(CONFIG_UNCOMPRESS) += decompress_uncompress
Glenn L McGrathe81fc5f2003-10-28 10:44:58 +000062LIBUNARCHIVE-$(CONFIG_UNZIP) += $(GUNZIP_FILES)
Eric Andersen85208e22002-04-12 12:05:57 +000063
Eric Andersen85208e22002-04-12 12:05:57 +000064
Rob Landley2d2c8682005-09-14 15:41:18 +000065LIBUNARCHIVE-y:=$(sort $(LIBUNARCHIVE-y))
Eric Andersen85208e22002-04-12 12:05:57 +000066
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000067LIBUNARCHIVE_SRC-y:=$(patsubst %,$(srcdir)/%.c,$(LIBUNARCHIVE-y))
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000068LIBUNARCHIVE_SRC-a:=$(wildcard $(srcdir)/*.c)
69LIBRARY_SRC-y+=$(LIBUNARCHIVE_SRC-y)
70LIBRARY_SRC-a+=$(LIBUNARCHIVE_SRC-a)
71
Bernhard Reutner-Fischer5d261262006-03-01 22:54:48 +000072archival_libunarchive_OBJ$(os):=$(patsubst %,$(objdir)/%$(os),$(LIBUNARCHIVE-y))
Bernhard Reutner-Fischer7ca61b62006-01-15 14:04:57 +000073
Bernhard Reutner-Fischer07a79e72006-03-09 09:03:37 +000074$(archival_libunarchive_OBJ$(os)): $(objdir)/%$(os): $(srcdir)/%.c
75$(objdir)/libunarchive.a: $(archival_libunarchive_OBJ$(os))
76libraries-y:=$(libraries-y) $(objdir)/libunarchive.a
77