blob: 7ae013e84dfc15c65bb328ba60b80aa74422d080 [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 \
33 get_header_ar.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000034 get_header_tar.o \
Denys Vlasenkob5d6ae92012-03-06 16:34:23 +010035 get_header_tar_gz.o \
36 get_header_tar_bz2.o \
37 get_header_tar_lzma.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000038
Denys Vlasenkod70e0e92010-06-08 12:15:11 +020039INSERT
40
Denis Vlasenko211f7f82007-09-05 11:48:32 +000041lib-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o
42lib-$(CONFIG_BUNZIP2) += decompress_bunzip2.o
43lib-$(CONFIG_UNLZMA) += decompress_unlzma.o
Denys Vlasenko9297dbc2010-07-05 21:37:12 +020044lib-$(CONFIG_UNXZ) += decompress_unxz.o
Denis Vlasenko211f7f82007-09-05 11:48:32 +000045lib-$(CONFIG_CPIO) += get_header_cpio.o
46lib-$(CONFIG_DPKG) += $(DPKG_FILES)
47lib-$(CONFIG_DPKG_DEB) += $(DPKG_FILES)
Denys Vlasenko774bce82012-03-06 16:26:20 +010048lib-$(CONFIG_GUNZIP) += decompress_gunzip.o
49lib-$(CONFIG_RPM2CPIO) += decompress_gunzip.o get_header_cpio.o
50lib-$(CONFIG_RPM) += open_transformer.o decompress_gunzip.o get_header_cpio.o
Denis Vlasenko211f7f82007-09-05 11:48:32 +000051lib-$(CONFIG_TAR) += get_header_tar.o
Denis Vlasenko211f7f82007-09-05 11:48:32 +000052lib-$(CONFIG_UNCOMPRESS) += decompress_uncompress.o
Denys Vlasenko774bce82012-03-06 16:26:20 +010053lib-$(CONFIG_UNZIP) += decompress_gunzip.o
Denys Vlasenko5e993402010-11-03 02:27:49 +010054lib-$(CONFIG_LZOP) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o
55lib-$(CONFIG_LZOP_COMPR_HIGH) += lzo1x_9x.o
Denys Vlasenko8cab6672012-04-20 14:48:00 +020056lib-$(CONFIG_MODINFO) += open_transformer.o
Denis Vlasenkoe9ad84d2008-08-05 13:10:34 +000057lib-$(CONFIG_FEATURE_SEAMLESS_Z) += open_transformer.o decompress_uncompress.o
Denys Vlasenkob5d6ae92012-03-06 16:34:23 +010058lib-$(CONFIG_FEATURE_SEAMLESS_GZ) += open_transformer.o decompress_gunzip.o
59lib-$(CONFIG_FEATURE_SEAMLESS_BZ2) += open_transformer.o decompress_bunzip2.o
60lib-$(CONFIG_FEATURE_SEAMLESS_LZMA) += open_transformer.o decompress_unlzma.o
Denys Vlasenko602ce692010-05-30 03:35:18 +020061lib-$(CONFIG_FEATURE_SEAMLESS_XZ) += open_transformer.o decompress_unxz.o
Denis Vlasenko211f7f82007-09-05 11:48:32 +000062lib-$(CONFIG_FEATURE_COMPRESS_USAGE) += decompress_bunzip2.o
Denys Vlasenko9ce07e72010-08-29 14:36:11 +020063lib-$(CONFIG_FEATURE_COMPRESS_BBCONFIG) += decompress_bunzip2.o
Ladislav Michl2b46fd42010-06-25 01:33:00 +020064lib-$(CONFIG_FEATURE_TAR_TO_COMMAND) += data_extract_to_command.o
Mike Frysingerb9f2bb32009-05-28 00:47:14 -040065
66ifneq ($(lib-y),)
67lib-y += $(COMMON_FILES)
68endif