Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 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 | |
Mike Frysinger | b9f2bb3 | 2009-05-28 00:47:14 -0400 | [diff] [blame] | 7 | lib-y:= |
| 8 | |
| 9 | COMMON_FILES:= \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 10 | \ |
| 11 | data_skip.o \ |
| 12 | data_extract_all.o \ |
| 13 | data_extract_to_stdout.o \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 14 | \ |
| 15 | filter_accept_all.o \ |
| 16 | filter_accept_list.o \ |
| 17 | filter_accept_reject_list.o \ |
| 18 | \ |
| 19 | header_skip.o \ |
| 20 | header_list.o \ |
| 21 | header_verbose_list.o \ |
| 22 | \ |
Denis Vlasenko | 1385899 | 2006-10-08 12:49:22 +0000 | [diff] [blame] | 23 | seek_by_read.o \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 24 | seek_by_jump.o \ |
| 25 | \ |
| 26 | data_align.o \ |
| 27 | find_list_entry.o \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 28 | init_handle.o |
| 29 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 30 | DPKG_FILES:= \ |
| 31 | get_header_ar.o \ |
| 32 | unpack_ar_archive.o \ |
| 33 | get_header_tar.o \ |
| 34 | filter_accept_list_reassign.o |
| 35 | |
Denis Vlasenko | 211f7f8 | 2007-09-05 11:48:32 +0000 | [diff] [blame] | 36 | lib-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o |
| 37 | lib-$(CONFIG_BUNZIP2) += decompress_bunzip2.o |
| 38 | lib-$(CONFIG_UNLZMA) += decompress_unlzma.o |
| 39 | lib-$(CONFIG_CPIO) += get_header_cpio.o |
| 40 | lib-$(CONFIG_DPKG) += $(DPKG_FILES) |
| 41 | lib-$(CONFIG_DPKG_DEB) += $(DPKG_FILES) |
Denis Vlasenko | 77f1ec1 | 2007-10-13 03:36:03 +0000 | [diff] [blame] | 42 | lib-$(CONFIG_GUNZIP) += decompress_unzip.o |
Denis Vlasenko | 77f1ec1 | 2007-10-13 03:36:03 +0000 | [diff] [blame] | 43 | lib-$(CONFIG_RPM2CPIO) += decompress_unzip.o get_header_cpio.o |
Denis Vlasenko | e9ad84d | 2008-08-05 13:10:34 +0000 | [diff] [blame] | 44 | lib-$(CONFIG_RPM) += open_transformer.o decompress_unzip.o get_header_cpio.o |
Denis Vlasenko | 211f7f8 | 2007-09-05 11:48:32 +0000 | [diff] [blame] | 45 | lib-$(CONFIG_TAR) += get_header_tar.o |
Denis Vlasenko | 211f7f8 | 2007-09-05 11:48:32 +0000 | [diff] [blame] | 46 | lib-$(CONFIG_UNCOMPRESS) += decompress_uncompress.o |
Denis Vlasenko | 77f1ec1 | 2007-10-13 03:36:03 +0000 | [diff] [blame] | 47 | lib-$(CONFIG_UNZIP) += decompress_unzip.o |
Denis Vlasenko | e9ad84d | 2008-08-05 13:10:34 +0000 | [diff] [blame] | 48 | lib-$(CONFIG_FEATURE_SEAMLESS_Z) += open_transformer.o decompress_uncompress.o |
| 49 | lib-$(CONFIG_FEATURE_SEAMLESS_GZ) += open_transformer.o decompress_unzip.o get_header_tar_gz.o |
| 50 | lib-$(CONFIG_FEATURE_SEAMLESS_BZ2) += open_transformer.o decompress_bunzip2.o get_header_tar_bz2.o |
| 51 | lib-$(CONFIG_FEATURE_SEAMLESS_LZMA) += open_transformer.o decompress_unlzma.o get_header_tar_lzma.o |
Denys Vlasenko | 602ce69 | 2010-05-30 03:35:18 +0200 | [diff] [blame] | 52 | lib-$(CONFIG_FEATURE_SEAMLESS_XZ) += open_transformer.o decompress_unxz.o |
Denis Vlasenko | 211f7f8 | 2007-09-05 11:48:32 +0000 | [diff] [blame] | 53 | lib-$(CONFIG_FEATURE_COMPRESS_USAGE) += decompress_bunzip2.o |
Mike Frysinger | b9f2bb3 | 2009-05-28 00:47:14 -0400 | [diff] [blame] | 54 | |
| 55 | ifneq ($(lib-y),) |
| 56 | lib-y += $(COMMON_FILES) |
| 57 | endif |