blob: d2f284b08c4593265069a2d5441ac8b268f7a9cd [file] [log] [blame]
Denis Vlasenko7d219aa2006-10-05 10:17:08 +00001# Makefile for busybox
2#
3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
4#
Denys Vlasenko0ef64bd2010-08-16 20:14:46 +02005# Licensed under GPLv2 or later, see file LICENSE in this source tree.
Denis Vlasenko7d219aa2006-10-05 10:17:08 +00006
Aaro Koskinen2735bc02015-10-16 17:24:46 +02007lib-y:= common.o
Mike Frysingerb9f2bb32009-05-28 00:47:14 -04008
9COMMON_FILES:= \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000010\
11 data_skip.o \
12 data_extract_all.o \
13 data_extract_to_stdout.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000014\
Denys Vlasenkobc9bbeb2017-08-10 11:52:42 +020015 unsafe_symlink_target.o \
16\
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000017 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 Vlasenko13858992006-10-08 12:49:22 +000025 seek_by_read.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000026 seek_by_jump.o \
27\
28 data_align.o \
29 find_list_entry.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000030 init_handle.o
31
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000032DPKG_FILES:= \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000033 unpack_ar_archive.o \
Denys Vlasenkob5d6ae92012-03-06 16:34:23 +010034 filter_accept_list_reassign.o \
Denys Vlasenko8c06bc62015-02-10 01:30:43 +010035 unsafe_prefix.o \
Denys Vlasenkob5d6ae92012-03-06 16:34:23 +010036 get_header_ar.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000037 get_header_tar.o \
Denys Vlasenkob5d6ae92012-03-06 16:34:23 +010038 get_header_tar_gz.o \
39 get_header_tar_bz2.o \
40 get_header_tar_lzma.o \
Denys Vlasenko08f9ffc2015-01-30 15:15:38 +010041 get_header_tar_xz.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000042
Denys Vlasenkod70e0e92010-06-08 12:15:11 +020043INSERT
44
Denis Vlasenko211f7f82007-09-05 11:48:32 +000045lib-$(CONFIG_DPKG) += $(DPKG_FILES)
46lib-$(CONFIG_DPKG_DEB) += $(DPKG_FILES)
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020047
48lib-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o
49lib-$(CONFIG_CPIO) += get_header_cpio.o
Denys Vlasenko8c06bc62015-02-10 01:30:43 +010050lib-$(CONFIG_TAR) += get_header_tar.o unsafe_prefix.o
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020051lib-$(CONFIG_FEATURE_TAR_TO_COMMAND) += data_extract_to_command.o
Denys Vlasenko5e993402010-11-03 02:27:49 +010052lib-$(CONFIG_LZOP) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o
Denys Vlasenko548620c2016-12-08 12:24:48 +010053lib-$(CONFIG_UNLZOP) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o
54lib-$(CONFIG_LZOPCAT) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o
Denys Vlasenko5e993402010-11-03 02:27:49 +010055lib-$(CONFIG_LZOP_COMPR_HIGH) += lzo1x_9x.o
Kang-Che Sung74c22152017-02-17 19:04:24 +080056# 'bzip2 -d', bunzip2 or bzcat selects FEATURE_BZIP2_DECOMPRESS
57lib-$(CONFIG_FEATURE_BZIP2_DECOMPRESS) += open_transformer.o decompress_bunzip2.o
Denys Vlasenko2a0867a2017-01-09 10:58:37 +010058lib-$(CONFIG_FEATURE_UNZIP_BZIP2) += open_transformer.o decompress_bunzip2.o
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020059lib-$(CONFIG_UNLZMA) += open_transformer.o decompress_unlzma.o
Denys Vlasenko548620c2016-12-08 12:24:48 +010060lib-$(CONFIG_LZCAT) += open_transformer.o decompress_unlzma.o
61lib-$(CONFIG_LZMA) += open_transformer.o decompress_unlzma.o
Denys Vlasenko2a0867a2017-01-09 10:58:37 +010062lib-$(CONFIG_FEATURE_UNZIP_LZMA) += open_transformer.o decompress_unlzma.o
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020063lib-$(CONFIG_UNXZ) += open_transformer.o decompress_unxz.o
Denys Vlasenko548620c2016-12-08 12:24:48 +010064lib-$(CONFIG_XZCAT) += open_transformer.o decompress_unxz.o
65lib-$(CONFIG_XZ) += open_transformer.o decompress_unxz.o
Denys Vlasenko6b4f4b52017-01-09 11:12:01 +010066lib-$(CONFIG_FEATURE_UNZIP_XZ) += open_transformer.o decompress_unxz.o
Kang-Che Sung74c22152017-02-17 19:04:24 +080067# 'gzip -d', gunzip or zcat selects FEATURE_GZIP_DECOMPRESS
68lib-$(CONFIG_FEATURE_GZIP_DECOMPRESS) += open_transformer.o decompress_gunzip.o
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020069lib-$(CONFIG_UNCOMPRESS) += open_transformer.o decompress_uncompress.o
Denys Vlasenko8c06bc62015-02-10 01:30:43 +010070lib-$(CONFIG_UNZIP) += open_transformer.o decompress_gunzip.o unsafe_prefix.o
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020071lib-$(CONFIG_RPM2CPIO) += open_transformer.o decompress_gunzip.o get_header_cpio.o
72lib-$(CONFIG_RPM) += open_transformer.o decompress_gunzip.o get_header_cpio.o
Denys Vlasenkoe0a6ab62013-05-15 03:23:30 +020073lib-$(CONFIG_GZIP) += open_transformer.o
74lib-$(CONFIG_BZIP2) += open_transformer.o
75lib-$(CONFIG_LZOP) += open_transformer.o
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020076lib-$(CONFIG_MAN) += open_transformer.o
77lib-$(CONFIG_SETFONT) += open_transformer.o
78lib-$(CONFIG_FEATURE_2_4_MODULES) += open_transformer.o
Denys Vlasenko8cab6672012-04-20 14:48:00 +020079lib-$(CONFIG_MODINFO) += open_transformer.o
Denys Vlasenkodf9196d2012-04-20 18:59:14 +020080lib-$(CONFIG_INSMOD) += open_transformer.o
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020081lib-$(CONFIG_DEPMOD) += open_transformer.o
82lib-$(CONFIG_RMMOD) += open_transformer.o
83lib-$(CONFIG_LSMOD) += open_transformer.o
84lib-$(CONFIG_MODPROBE) += open_transformer.o
85lib-$(CONFIG_MODPROBE_SMALL) += open_transformer.o
86
Denis Vlasenkoe9ad84d2008-08-05 13:10:34 +000087lib-$(CONFIG_FEATURE_SEAMLESS_Z) += open_transformer.o decompress_uncompress.o
Denys Vlasenkob5d6ae92012-03-06 16:34:23 +010088lib-$(CONFIG_FEATURE_SEAMLESS_GZ) += open_transformer.o decompress_gunzip.o
89lib-$(CONFIG_FEATURE_SEAMLESS_BZ2) += open_transformer.o decompress_bunzip2.o
90lib-$(CONFIG_FEATURE_SEAMLESS_LZMA) += open_transformer.o decompress_unlzma.o
Denys Vlasenko602ce692010-05-30 03:35:18 +020091lib-$(CONFIG_FEATURE_SEAMLESS_XZ) += open_transformer.o decompress_unxz.o
Denys Vlasenkod1331442012-04-29 14:28:12 +020092lib-$(CONFIG_FEATURE_COMPRESS_USAGE) += open_transformer.o decompress_bunzip2.o
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020093lib-$(CONFIG_FEATURE_COMPRESS_BBCONFIG) += open_transformer.o decompress_bunzip2.o
Ron Yorston71df2d32018-11-27 14:34:25 +000094lib-$(CONFIG_FEATURE_SH_EMBEDDED_SCRIPTS) += open_transformer.o decompress_bunzip2.o
Mike Frysingerb9f2bb32009-05-28 00:47:14 -040095
96ifneq ($(lib-y),)
97lib-y += $(COMMON_FILES)
98endif