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 | # |
Denys Vlasenko | 0ef64bd | 2010-08-16 20:14:46 +0200 | [diff] [blame] | 5 | # Licensed under GPLv2 or later, see file LICENSE in this source tree. |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 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:= \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 31 | unpack_ar_archive.o \ |
Denys Vlasenko | b5d6ae9 | 2012-03-06 16:34:23 +0100 | [diff] [blame] | 32 | filter_accept_list_reassign.o \ |
| 33 | get_header_ar.o \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 34 | get_header_tar.o \ |
Denys Vlasenko | b5d6ae9 | 2012-03-06 16:34:23 +0100 | [diff] [blame] | 35 | get_header_tar_gz.o \ |
| 36 | get_header_tar_bz2.o \ |
| 37 | get_header_tar_lzma.o \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 38 | |
Denys Vlasenko | d70e0e9 | 2010-06-08 12:15:11 +0200 | [diff] [blame] | 39 | INSERT |
| 40 | |
Denis Vlasenko | 211f7f8 | 2007-09-05 11:48:32 +0000 | [diff] [blame] | 41 | lib-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o |
| 42 | lib-$(CONFIG_BUNZIP2) += decompress_bunzip2.o |
| 43 | lib-$(CONFIG_UNLZMA) += decompress_unlzma.o |
Denys Vlasenko | 9297dbc | 2010-07-05 21:37:12 +0200 | [diff] [blame] | 44 | lib-$(CONFIG_UNXZ) += decompress_unxz.o |
Denis Vlasenko | 211f7f8 | 2007-09-05 11:48:32 +0000 | [diff] [blame] | 45 | lib-$(CONFIG_CPIO) += get_header_cpio.o |
| 46 | lib-$(CONFIG_DPKG) += $(DPKG_FILES) |
| 47 | lib-$(CONFIG_DPKG_DEB) += $(DPKG_FILES) |
Anthony G. Basile | 6e9284d | 2012-05-20 12:56:17 +0200 | [diff] [blame] | 48 | lib-$(CONFIG_GUNZIP) += open_transformer.o decompress_gunzip.o |
Denys Vlasenko | 774bce8 | 2012-03-06 16:26:20 +0100 | [diff] [blame] | 49 | lib-$(CONFIG_RPM2CPIO) += decompress_gunzip.o get_header_cpio.o |
| 50 | lib-$(CONFIG_RPM) += open_transformer.o decompress_gunzip.o get_header_cpio.o |
Denis Vlasenko | 211f7f8 | 2007-09-05 11:48:32 +0000 | [diff] [blame] | 51 | lib-$(CONFIG_TAR) += get_header_tar.o |
Denis Vlasenko | 211f7f8 | 2007-09-05 11:48:32 +0000 | [diff] [blame] | 52 | lib-$(CONFIG_UNCOMPRESS) += decompress_uncompress.o |
Denys Vlasenko | 774bce8 | 2012-03-06 16:26:20 +0100 | [diff] [blame] | 53 | lib-$(CONFIG_UNZIP) += decompress_gunzip.o |
Denys Vlasenko | 5e99340 | 2010-11-03 02:27:49 +0100 | [diff] [blame] | 54 | lib-$(CONFIG_LZOP) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o |
| 55 | lib-$(CONFIG_LZOP_COMPR_HIGH) += lzo1x_9x.o |
Denys Vlasenko | 8cab667 | 2012-04-20 14:48:00 +0200 | [diff] [blame] | 56 | lib-$(CONFIG_MODINFO) += open_transformer.o |
Denys Vlasenko | df9196d | 2012-04-20 18:59:14 +0200 | [diff] [blame] | 57 | lib-$(CONFIG_INSMOD) += open_transformer.o |
Denis Vlasenko | e9ad84d | 2008-08-05 13:10:34 +0000 | [diff] [blame] | 58 | lib-$(CONFIG_FEATURE_SEAMLESS_Z) += open_transformer.o decompress_uncompress.o |
Denys Vlasenko | b5d6ae9 | 2012-03-06 16:34:23 +0100 | [diff] [blame] | 59 | lib-$(CONFIG_FEATURE_SEAMLESS_GZ) += open_transformer.o decompress_gunzip.o |
| 60 | lib-$(CONFIG_FEATURE_SEAMLESS_BZ2) += open_transformer.o decompress_bunzip2.o |
| 61 | lib-$(CONFIG_FEATURE_SEAMLESS_LZMA) += open_transformer.o decompress_unlzma.o |
Denys Vlasenko | 602ce69 | 2010-05-30 03:35:18 +0200 | [diff] [blame] | 62 | lib-$(CONFIG_FEATURE_SEAMLESS_XZ) += open_transformer.o decompress_unxz.o |
Denys Vlasenko | d133144 | 2012-04-29 14:28:12 +0200 | [diff] [blame] | 63 | lib-$(CONFIG_FEATURE_COMPRESS_USAGE) += open_transformer.o decompress_bunzip2.o |
Denys Vlasenko | 9ce07e7 | 2010-08-29 14:36:11 +0200 | [diff] [blame] | 64 | lib-$(CONFIG_FEATURE_COMPRESS_BBCONFIG) += decompress_bunzip2.o |
Ladislav Michl | 2b46fd4 | 2010-06-25 01:33:00 +0200 | [diff] [blame] | 65 | lib-$(CONFIG_FEATURE_TAR_TO_COMMAND) += data_extract_to_command.o |
Mike Frysinger | b9f2bb3 | 2009-05-28 00:47:14 -0400 | [diff] [blame] | 66 | |
| 67 | ifneq ($(lib-y),) |
| 68 | lib-y += $(COMMON_FILES) |
| 69 | endif |