blob: 4bb81ce26b290d6c23f23ce698635679e67620fe [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#
5# Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
6
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 \
14 data_extract_to_buffer.o \
15\
16 filter_accept_all.o \
17 filter_accept_list.o \
18 filter_accept_reject_list.o \
19\
20 header_skip.o \
21 header_list.o \
22 header_verbose_list.o \
23\
Denis Vlasenko13858992006-10-08 12:49:22 +000024 seek_by_read.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000025 seek_by_jump.o \
26\
27 data_align.o \
28 find_list_entry.o \
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000029 init_handle.o
30
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000031DPKG_FILES:= \
32 get_header_ar.o \
33 unpack_ar_archive.o \
34 get_header_tar.o \
35 filter_accept_list_reassign.o
36
Denis Vlasenko211f7f82007-09-05 11:48:32 +000037lib-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o
38lib-$(CONFIG_BUNZIP2) += decompress_bunzip2.o
39lib-$(CONFIG_UNLZMA) += decompress_unlzma.o
40lib-$(CONFIG_CPIO) += get_header_cpio.o
41lib-$(CONFIG_DPKG) += $(DPKG_FILES)
42lib-$(CONFIG_DPKG_DEB) += $(DPKG_FILES)
Denis Vlasenko77f1ec12007-10-13 03:36:03 +000043lib-$(CONFIG_GUNZIP) += decompress_unzip.o
Denis Vlasenko77f1ec12007-10-13 03:36:03 +000044lib-$(CONFIG_RPM2CPIO) += decompress_unzip.o get_header_cpio.o
Denis Vlasenkoe9ad84d2008-08-05 13:10:34 +000045lib-$(CONFIG_RPM) += open_transformer.o decompress_unzip.o get_header_cpio.o
Denis Vlasenko211f7f82007-09-05 11:48:32 +000046lib-$(CONFIG_TAR) += get_header_tar.o
Denis Vlasenko211f7f82007-09-05 11:48:32 +000047lib-$(CONFIG_UNCOMPRESS) += decompress_uncompress.o
Denis Vlasenko77f1ec12007-10-13 03:36:03 +000048lib-$(CONFIG_UNZIP) += decompress_unzip.o
Denis Vlasenkoe9ad84d2008-08-05 13:10:34 +000049lib-$(CONFIG_FEATURE_SEAMLESS_Z) += open_transformer.o decompress_uncompress.o
50lib-$(CONFIG_FEATURE_SEAMLESS_GZ) += open_transformer.o decompress_unzip.o get_header_tar_gz.o
51lib-$(CONFIG_FEATURE_SEAMLESS_BZ2) += open_transformer.o decompress_bunzip2.o get_header_tar_bz2.o
52lib-$(CONFIG_FEATURE_SEAMLESS_LZMA) += open_transformer.o decompress_unlzma.o get_header_tar_lzma.o
Denis Vlasenko211f7f82007-09-05 11:48:32 +000053lib-$(CONFIG_FEATURE_COMPRESS_USAGE) += decompress_bunzip2.o
Mike Frysingerb9f2bb32009-05-28 00:47:14 -040054
55ifneq ($(lib-y),)
56lib-y += $(COMMON_FILES)
57endif