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 | |
Aaro Koskinen | 2735bc0 | 2015-10-16 17:24:46 +0200 | [diff] [blame] | 7 | lib-y:= common.o |
Mike Frysinger | b9f2bb3 | 2009-05-28 00:47:14 -0400 | [diff] [blame] | 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 | \ |
Denys Vlasenko | bc9bbeb | 2017-08-10 11:52:42 +0200 | [diff] [blame] | 15 | unsafe_symlink_target.o \ |
| 16 | \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 17 | filter_accept_all.o \ |
| 18 | filter_accept_list.o \ |
| 19 | filter_accept_reject_list.o \ |
| 20 | \ |
| 21 | header_skip.o \ |
| 22 | header_list.o \ |
| 23 | header_verbose_list.o \ |
| 24 | \ |
Denis Vlasenko | 1385899 | 2006-10-08 12:49:22 +0000 | [diff] [blame] | 25 | seek_by_read.o \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 26 | seek_by_jump.o \ |
| 27 | \ |
| 28 | data_align.o \ |
| 29 | find_list_entry.o \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 30 | init_handle.o |
| 31 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 32 | DPKG_FILES:= \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 33 | unpack_ar_archive.o \ |
Denys Vlasenko | b5d6ae9 | 2012-03-06 16:34:23 +0100 | [diff] [blame] | 34 | filter_accept_list_reassign.o \ |
Denys Vlasenko | 8c06bc6 | 2015-02-10 01:30:43 +0100 | [diff] [blame] | 35 | unsafe_prefix.o \ |
Denys Vlasenko | b5d6ae9 | 2012-03-06 16:34:23 +0100 | [diff] [blame] | 36 | get_header_ar.o \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 37 | get_header_tar.o \ |
Denys Vlasenko | b5d6ae9 | 2012-03-06 16:34:23 +0100 | [diff] [blame] | 38 | get_header_tar_gz.o \ |
| 39 | get_header_tar_bz2.o \ |
| 40 | get_header_tar_lzma.o \ |
Denys Vlasenko | 08f9ffc | 2015-01-30 15:15:38 +0100 | [diff] [blame] | 41 | get_header_tar_xz.o \ |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 42 | |
Denys Vlasenko | d70e0e9 | 2010-06-08 12:15:11 +0200 | [diff] [blame] | 43 | INSERT |
| 44 | |
Denis Vlasenko | 211f7f8 | 2007-09-05 11:48:32 +0000 | [diff] [blame] | 45 | lib-$(CONFIG_DPKG) += $(DPKG_FILES) |
| 46 | lib-$(CONFIG_DPKG_DEB) += $(DPKG_FILES) |
Denys Vlasenko | abbc478 | 2013-05-12 02:34:38 +0200 | [diff] [blame] | 47 | |
| 48 | lib-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o |
| 49 | lib-$(CONFIG_CPIO) += get_header_cpio.o |
Denys Vlasenko | 8c06bc6 | 2015-02-10 01:30:43 +0100 | [diff] [blame] | 50 | lib-$(CONFIG_TAR) += get_header_tar.o unsafe_prefix.o |
Denys Vlasenko | abbc478 | 2013-05-12 02:34:38 +0200 | [diff] [blame] | 51 | lib-$(CONFIG_FEATURE_TAR_TO_COMMAND) += data_extract_to_command.o |
Denys Vlasenko | 5e99340 | 2010-11-03 02:27:49 +0100 | [diff] [blame] | 52 | lib-$(CONFIG_LZOP) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o |
Denys Vlasenko | 548620c | 2016-12-08 12:24:48 +0100 | [diff] [blame] | 53 | lib-$(CONFIG_UNLZOP) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o |
| 54 | lib-$(CONFIG_LZOPCAT) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o |
Denys Vlasenko | 5e99340 | 2010-11-03 02:27:49 +0100 | [diff] [blame] | 55 | lib-$(CONFIG_LZOP_COMPR_HIGH) += lzo1x_9x.o |
Kang-Che Sung | 74c2215 | 2017-02-17 19:04:24 +0800 | [diff] [blame] | 56 | # 'bzip2 -d', bunzip2 or bzcat selects FEATURE_BZIP2_DECOMPRESS |
| 57 | lib-$(CONFIG_FEATURE_BZIP2_DECOMPRESS) += open_transformer.o decompress_bunzip2.o |
Denys Vlasenko | 2a0867a | 2017-01-09 10:58:37 +0100 | [diff] [blame] | 58 | lib-$(CONFIG_FEATURE_UNZIP_BZIP2) += open_transformer.o decompress_bunzip2.o |
Denys Vlasenko | abbc478 | 2013-05-12 02:34:38 +0200 | [diff] [blame] | 59 | lib-$(CONFIG_UNLZMA) += open_transformer.o decompress_unlzma.o |
Denys Vlasenko | 548620c | 2016-12-08 12:24:48 +0100 | [diff] [blame] | 60 | lib-$(CONFIG_LZCAT) += open_transformer.o decompress_unlzma.o |
| 61 | lib-$(CONFIG_LZMA) += open_transformer.o decompress_unlzma.o |
Denys Vlasenko | 2a0867a | 2017-01-09 10:58:37 +0100 | [diff] [blame] | 62 | lib-$(CONFIG_FEATURE_UNZIP_LZMA) += open_transformer.o decompress_unlzma.o |
Denys Vlasenko | abbc478 | 2013-05-12 02:34:38 +0200 | [diff] [blame] | 63 | lib-$(CONFIG_UNXZ) += open_transformer.o decompress_unxz.o |
Denys Vlasenko | 548620c | 2016-12-08 12:24:48 +0100 | [diff] [blame] | 64 | lib-$(CONFIG_XZCAT) += open_transformer.o decompress_unxz.o |
| 65 | lib-$(CONFIG_XZ) += open_transformer.o decompress_unxz.o |
Denys Vlasenko | 6b4f4b5 | 2017-01-09 11:12:01 +0100 | [diff] [blame] | 66 | lib-$(CONFIG_FEATURE_UNZIP_XZ) += open_transformer.o decompress_unxz.o |
Kang-Che Sung | 74c2215 | 2017-02-17 19:04:24 +0800 | [diff] [blame] | 67 | # 'gzip -d', gunzip or zcat selects FEATURE_GZIP_DECOMPRESS |
| 68 | lib-$(CONFIG_FEATURE_GZIP_DECOMPRESS) += open_transformer.o decompress_gunzip.o |
Denys Vlasenko | abbc478 | 2013-05-12 02:34:38 +0200 | [diff] [blame] | 69 | lib-$(CONFIG_UNCOMPRESS) += open_transformer.o decompress_uncompress.o |
Denys Vlasenko | 8c06bc6 | 2015-02-10 01:30:43 +0100 | [diff] [blame] | 70 | lib-$(CONFIG_UNZIP) += open_transformer.o decompress_gunzip.o unsafe_prefix.o |
Denys Vlasenko | abbc478 | 2013-05-12 02:34:38 +0200 | [diff] [blame] | 71 | lib-$(CONFIG_RPM2CPIO) += open_transformer.o decompress_gunzip.o get_header_cpio.o |
| 72 | lib-$(CONFIG_RPM) += open_transformer.o decompress_gunzip.o get_header_cpio.o |
Denys Vlasenko | e0a6ab6 | 2013-05-15 03:23:30 +0200 | [diff] [blame] | 73 | lib-$(CONFIG_GZIP) += open_transformer.o |
| 74 | lib-$(CONFIG_BZIP2) += open_transformer.o |
| 75 | lib-$(CONFIG_LZOP) += open_transformer.o |
Denys Vlasenko | abbc478 | 2013-05-12 02:34:38 +0200 | [diff] [blame] | 76 | lib-$(CONFIG_MAN) += open_transformer.o |
| 77 | lib-$(CONFIG_SETFONT) += open_transformer.o |
| 78 | lib-$(CONFIG_FEATURE_2_4_MODULES) += open_transformer.o |
Denys Vlasenko | 8cab667 | 2012-04-20 14:48:00 +0200 | [diff] [blame] | 79 | lib-$(CONFIG_MODINFO) += open_transformer.o |
Denys Vlasenko | df9196d | 2012-04-20 18:59:14 +0200 | [diff] [blame] | 80 | lib-$(CONFIG_INSMOD) += open_transformer.o |
Denys Vlasenko | abbc478 | 2013-05-12 02:34:38 +0200 | [diff] [blame] | 81 | lib-$(CONFIG_DEPMOD) += open_transformer.o |
| 82 | lib-$(CONFIG_RMMOD) += open_transformer.o |
| 83 | lib-$(CONFIG_LSMOD) += open_transformer.o |
| 84 | lib-$(CONFIG_MODPROBE) += open_transformer.o |
| 85 | lib-$(CONFIG_MODPROBE_SMALL) += open_transformer.o |
| 86 | |
Denis Vlasenko | e9ad84d | 2008-08-05 13:10:34 +0000 | [diff] [blame] | 87 | lib-$(CONFIG_FEATURE_SEAMLESS_Z) += open_transformer.o decompress_uncompress.o |
Denys Vlasenko | b5d6ae9 | 2012-03-06 16:34:23 +0100 | [diff] [blame] | 88 | lib-$(CONFIG_FEATURE_SEAMLESS_GZ) += open_transformer.o decompress_gunzip.o |
| 89 | lib-$(CONFIG_FEATURE_SEAMLESS_BZ2) += open_transformer.o decompress_bunzip2.o |
| 90 | lib-$(CONFIG_FEATURE_SEAMLESS_LZMA) += open_transformer.o decompress_unlzma.o |
Denys Vlasenko | 602ce69 | 2010-05-30 03:35:18 +0200 | [diff] [blame] | 91 | lib-$(CONFIG_FEATURE_SEAMLESS_XZ) += open_transformer.o decompress_unxz.o |
Denys Vlasenko | d133144 | 2012-04-29 14:28:12 +0200 | [diff] [blame] | 92 | lib-$(CONFIG_FEATURE_COMPRESS_USAGE) += open_transformer.o decompress_bunzip2.o |
Denys Vlasenko | abbc478 | 2013-05-12 02:34:38 +0200 | [diff] [blame] | 93 | lib-$(CONFIG_FEATURE_COMPRESS_BBCONFIG) += open_transformer.o decompress_bunzip2.o |
Ron Yorston | 71df2d3 | 2018-11-27 14:34:25 +0000 | [diff] [blame] | 94 | lib-$(CONFIG_FEATURE_SH_EMBEDDED_SCRIPTS) += open_transformer.o decompress_bunzip2.o |
Mike Frysinger | b9f2bb3 | 2009-05-28 00:47:14 -0400 | [diff] [blame] | 95 | |
| 96 | ifneq ($(lib-y),) |
| 97 | lib-y += $(COMMON_FILES) |
| 98 | endif |