blob: b7faaf77f44fba3f2016124b93a498f78cc959eb [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
Mike Frysingerb9f2bb32009-05-28 00:47:14 -04007lib-y:=
8
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\
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 Vlasenko13858992006-10-08 12:49:22 +000023 seek_by_read.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000024 seek_by_jump.o \
25\
26 data_align.o \
27 find_list_entry.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000028 init_handle.o
29
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000030DPKG_FILES:= \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000031 unpack_ar_archive.o \
Denys Vlasenkob5d6ae92012-03-06 16:34:23 +010032 filter_accept_list_reassign.o \
Denys Vlasenko8c06bc62015-02-10 01:30:43 +010033 unsafe_prefix.o \
Denys Vlasenkob5d6ae92012-03-06 16:34:23 +010034 get_header_ar.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000035 get_header_tar.o \
Denys Vlasenkob5d6ae92012-03-06 16:34:23 +010036 get_header_tar_gz.o \
37 get_header_tar_bz2.o \
38 get_header_tar_lzma.o \
Denys Vlasenko08f9ffc2015-01-30 15:15:38 +010039 get_header_tar_xz.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000040
Denys Vlasenkod70e0e92010-06-08 12:15:11 +020041INSERT
42
Denis Vlasenko211f7f82007-09-05 11:48:32 +000043lib-$(CONFIG_DPKG) += $(DPKG_FILES)
44lib-$(CONFIG_DPKG_DEB) += $(DPKG_FILES)
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020045
46lib-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o
47lib-$(CONFIG_CPIO) += get_header_cpio.o
Denys Vlasenko8c06bc62015-02-10 01:30:43 +010048lib-$(CONFIG_TAR) += get_header_tar.o unsafe_prefix.o
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020049lib-$(CONFIG_FEATURE_TAR_TO_COMMAND) += data_extract_to_command.o
Denys Vlasenko5e993402010-11-03 02:27:49 +010050lib-$(CONFIG_LZOP) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o
51lib-$(CONFIG_LZOP_COMPR_HIGH) += lzo1x_9x.o
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020052lib-$(CONFIG_BUNZIP2) += open_transformer.o decompress_bunzip2.o
53lib-$(CONFIG_UNLZMA) += open_transformer.o decompress_unlzma.o
54lib-$(CONFIG_UNXZ) += open_transformer.o decompress_unxz.o
55lib-$(CONFIG_GUNZIP) += open_transformer.o decompress_gunzip.o
56lib-$(CONFIG_UNCOMPRESS) += open_transformer.o decompress_uncompress.o
Denys Vlasenko8c06bc62015-02-10 01:30:43 +010057lib-$(CONFIG_UNZIP) += open_transformer.o decompress_gunzip.o unsafe_prefix.o
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020058lib-$(CONFIG_RPM2CPIO) += open_transformer.o decompress_gunzip.o get_header_cpio.o
59lib-$(CONFIG_RPM) += open_transformer.o decompress_gunzip.o get_header_cpio.o
60
Denys Vlasenkoe0a6ab62013-05-15 03:23:30 +020061lib-$(CONFIG_GZIP) += open_transformer.o
62lib-$(CONFIG_BZIP2) += open_transformer.o
63lib-$(CONFIG_LZOP) += open_transformer.o
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020064lib-$(CONFIG_MAN) += open_transformer.o
65lib-$(CONFIG_SETFONT) += open_transformer.o
66lib-$(CONFIG_FEATURE_2_4_MODULES) += open_transformer.o
Denys Vlasenko8cab6672012-04-20 14:48:00 +020067lib-$(CONFIG_MODINFO) += open_transformer.o
Denys Vlasenkodf9196d2012-04-20 18:59:14 +020068lib-$(CONFIG_INSMOD) += open_transformer.o
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020069lib-$(CONFIG_DEPMOD) += open_transformer.o
70lib-$(CONFIG_RMMOD) += open_transformer.o
71lib-$(CONFIG_LSMOD) += open_transformer.o
72lib-$(CONFIG_MODPROBE) += open_transformer.o
73lib-$(CONFIG_MODPROBE_SMALL) += open_transformer.o
74
Denis Vlasenkoe9ad84d2008-08-05 13:10:34 +000075lib-$(CONFIG_FEATURE_SEAMLESS_Z) += open_transformer.o decompress_uncompress.o
Denys Vlasenkob5d6ae92012-03-06 16:34:23 +010076lib-$(CONFIG_FEATURE_SEAMLESS_GZ) += open_transformer.o decompress_gunzip.o
77lib-$(CONFIG_FEATURE_SEAMLESS_BZ2) += open_transformer.o decompress_bunzip2.o
78lib-$(CONFIG_FEATURE_SEAMLESS_LZMA) += open_transformer.o decompress_unlzma.o
Denys Vlasenko602ce692010-05-30 03:35:18 +020079lib-$(CONFIG_FEATURE_SEAMLESS_XZ) += open_transformer.o decompress_unxz.o
Denys Vlasenkod1331442012-04-29 14:28:12 +020080lib-$(CONFIG_FEATURE_COMPRESS_USAGE) += open_transformer.o decompress_bunzip2.o
Denys Vlasenkoabbc4782013-05-12 02:34:38 +020081lib-$(CONFIG_FEATURE_COMPRESS_BBCONFIG) += open_transformer.o decompress_bunzip2.o
Mike Frysingerb9f2bb32009-05-28 00:47:14 -040082
83ifneq ($(lib-y),)
84lib-y += $(COMMON_FILES)
85endif