Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 1 | # Makefile for busybox |
| 2 | # |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 4 | # |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 5 | # Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 6 | |
Bernhard Reutner-Fischer | 07a79e7 | 2006-03-09 09:03:37 +0000 | [diff] [blame] | 7 | srcdir:=$(top_srcdir)/archival/libunarchive |
| 8 | objdir:=$(top_builddir)/archival/libunarchive |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 9 | |
Glenn L McGrath | 7ca04f3 | 2002-09-25 02:47:48 +0000 | [diff] [blame] | 10 | LIBUNARCHIVE-y:= \ |
| 11 | \ |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 12 | data_skip \ |
| 13 | data_extract_all \ |
| 14 | data_extract_to_stdout \ |
| 15 | data_extract_to_buffer \ |
Glenn L McGrath | 7ca04f3 | 2002-09-25 02:47:48 +0000 | [diff] [blame] | 16 | \ |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 17 | filter_accept_all \ |
| 18 | filter_accept_list \ |
| 19 | filter_accept_reject_list \ |
Glenn L McGrath | 7ca04f3 | 2002-09-25 02:47:48 +0000 | [diff] [blame] | 20 | \ |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 21 | header_skip \ |
| 22 | header_list \ |
| 23 | header_verbose_list \ |
Glenn L McGrath | 7ca04f3 | 2002-09-25 02:47:48 +0000 | [diff] [blame] | 24 | \ |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 25 | archive_xread_all \ |
| 26 | archive_xread_all_eof \ |
Glenn L McGrath | 237ae42 | 2002-11-03 14:05:15 +0000 | [diff] [blame] | 27 | \ |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 28 | seek_by_char \ |
| 29 | seek_by_jump \ |
Glenn L McGrath | 237ae42 | 2002-11-03 14:05:15 +0000 | [diff] [blame] | 30 | \ |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 31 | data_align \ |
| 32 | find_list_entry \ |
| 33 | open_transformer \ |
| 34 | init_handle |
Glenn L McGrath | 7ca04f3 | 2002-09-25 02:47:48 +0000 | [diff] [blame] | 35 | |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 36 | GUNZIP_FILES:= check_header_gzip decompress_unzip |
Glenn L McGrath | e81fc5f | 2003-10-28 10:44:58 +0000 | [diff] [blame] | 37 | DPKG_FILES:= \ |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 38 | get_header_ar \ |
| 39 | unpack_ar_archive \ |
| 40 | get_header_tar \ |
| 41 | filter_accept_list_reassign |
Glenn L McGrath | e81fc5f | 2003-10-28 10:44:58 +0000 | [diff] [blame] | 42 | |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 43 | LIBUNARCHIVE-$(CONFIG_AR) += get_header_ar unpack_ar_archive |
| 44 | LIBUNARCHIVE-$(CONFIG_BUNZIP2) += decompress_bunzip2 |
| 45 | LIBUNARCHIVE-$(CONFIG_UNLZMA) += decompress_unlzma |
| 46 | LIBUNARCHIVE-$(CONFIG_CPIO) += get_header_cpio |
Glenn L McGrath | e81fc5f | 2003-10-28 10:44:58 +0000 | [diff] [blame] | 47 | LIBUNARCHIVE-$(CONFIG_DPKG) += $(DPKG_FILES) |
| 48 | LIBUNARCHIVE-$(CONFIG_DPKG_DEB) += $(DPKG_FILES) |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 49 | LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_GZ) += $(GUNZIP_FILES) get_header_tar_gz |
| 50 | LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_BZ2) += decompress_bunzip2 get_header_tar_bz2 |
| 51 | LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_LZMA) += decompress_unlzma get_header_tar_lzma |
Glenn L McGrath | e81fc5f | 2003-10-28 10:44:58 +0000 | [diff] [blame] | 52 | LIBUNARCHIVE-$(CONFIG_GUNZIP) += $(GUNZIP_FILES) |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 53 | LIBUNARCHIVE-$(CONFIG_FEATURE_GUNZIP_UNCOMPRESS) += decompress_uncompress |
| 54 | LIBUNARCHIVE-$(CONFIG_RPM2CPIO) += $(GUNZIP_FILES) get_header_cpio |
| 55 | LIBUNARCHIVE-$(CONFIG_RPM) += $(GUNZIP_FILES) get_header_cpio |
| 56 | LIBUNARCHIVE-$(CONFIG_TAR) += get_header_tar |
| 57 | LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_BZIP2) += decompress_bunzip2 get_header_tar_bz2 |
| 58 | LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_LZMA) += decompress_unlzma get_header_tar_lzma |
| 59 | LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_GZIP) += $(GUNZIP_FILES) get_header_tar_gz |
| 60 | LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_COMPRESS) += decompress_uncompress |
| 61 | LIBUNARCHIVE-$(CONFIG_UNCOMPRESS) += decompress_uncompress |
Glenn L McGrath | e81fc5f | 2003-10-28 10:44:58 +0000 | [diff] [blame] | 62 | LIBUNARCHIVE-$(CONFIG_UNZIP) += $(GUNZIP_FILES) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 63 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 64 | |
Rob Landley | 2d2c868 | 2005-09-14 15:41:18 +0000 | [diff] [blame] | 65 | LIBUNARCHIVE-y:=$(sort $(LIBUNARCHIVE-y)) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 66 | |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 67 | LIBUNARCHIVE_SRC-y:=$(patsubst %,$(srcdir)/%.c,$(LIBUNARCHIVE-y)) |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 68 | LIBUNARCHIVE_SRC-a:=$(wildcard $(srcdir)/*.c) |
| 69 | LIBRARY_SRC-y+=$(LIBUNARCHIVE_SRC-y) |
| 70 | LIBRARY_SRC-a+=$(LIBUNARCHIVE_SRC-a) |
| 71 | |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 72 | archival_libunarchive_OBJ$(os):=$(patsubst %,$(objdir)/%$(os),$(LIBUNARCHIVE-y)) |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 73 | |
Bernhard Reutner-Fischer | 07a79e7 | 2006-03-09 09:03:37 +0000 | [diff] [blame] | 74 | $(archival_libunarchive_OBJ$(os)): $(objdir)/%$(os): $(srcdir)/%.c |
| 75 | $(objdir)/libunarchive.a: $(archival_libunarchive_OBJ$(os)) |
| 76 | libraries-y:=$(libraries-y) $(objdir)/libunarchive.a |
| 77 | |