1# Makefile for busybox 2# 3# Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 4# 5# Licensed under GPLv2 or later, see file LICENSE in this source tree. 6 7lib-y:= common.o 8 9COMMON_FILES:= \ 10\ 11 data_skip.o \ 12 data_extract_all.o \ 13 data_extract_to_stdout.o \ 14\ 15 unsafe_symlink_target.o \ 16\ 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\ 25 seek_by_read.o \ 26 seek_by_jump.o \ 27\ 28 data_align.o \ 29 find_list_entry.o \ 30 init_handle.o 31 32DPKG_FILES:= \ 33 unpack_ar_archive.o \ 34 filter_accept_list_reassign.o \ 35 unsafe_prefix.o \ 36 get_header_ar.o \ 37 get_header_tar.o \ 38 get_header_tar_gz.o \ 39 get_header_tar_bz2.o \ 40 get_header_tar_lzma.o \ 41 get_header_tar_xz.o \ 42 43INSERT 44 45lib-$(CONFIG_DPKG) += $(DPKG_FILES) 46lib-$(CONFIG_DPKG_DEB) += $(DPKG_FILES) 47 48lib-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o 49lib-$(CONFIG_CPIO) += get_header_cpio.o 50lib-$(CONFIG_TAR) += get_header_tar.o unsafe_prefix.o 51lib-$(CONFIG_FEATURE_TAR_TO_COMMAND) += data_extract_to_command.o 52lib-$(CONFIG_LZOP) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o 53lib-$(CONFIG_UNLZOP) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o 54lib-$(CONFIG_LZOPCAT) += lzo1x_1.o lzo1x_1o.o lzo1x_d.o 55lib-$(CONFIG_LZOP_COMPR_HIGH) += lzo1x_9x.o 56# 'bzip2 -d', bunzip2 or bzcat selects FEATURE_BZIP2_DECOMPRESS 57lib-$(CONFIG_FEATURE_BZIP2_DECOMPRESS) += open_transformer.o decompress_bunzip2.o 58lib-$(CONFIG_FEATURE_UNZIP_BZIP2) += open_transformer.o decompress_bunzip2.o 59lib-$(CONFIG_UNLZMA) += open_transformer.o decompress_unlzma.o 60lib-$(CONFIG_LZCAT) += open_transformer.o decompress_unlzma.o 61lib-$(CONFIG_LZMA) += open_transformer.o decompress_unlzma.o 62lib-$(CONFIG_FEATURE_UNZIP_LZMA) += open_transformer.o decompress_unlzma.o 63lib-$(CONFIG_UNXZ) += open_transformer.o decompress_unxz.o 64lib-$(CONFIG_XZCAT) += open_transformer.o decompress_unxz.o 65lib-$(CONFIG_XZ) += open_transformer.o decompress_unxz.o 66lib-$(CONFIG_FEATURE_UNZIP_XZ) += open_transformer.o decompress_unxz.o 67# 'gzip -d', gunzip or zcat selects FEATURE_GZIP_DECOMPRESS 68lib-$(CONFIG_FEATURE_GZIP_DECOMPRESS) += open_transformer.o decompress_gunzip.o 69lib-$(CONFIG_UNCOMPRESS) += open_transformer.o decompress_uncompress.o 70lib-$(CONFIG_UNZIP) += open_transformer.o decompress_gunzip.o unsafe_prefix.o 71lib-$(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 73lib-$(CONFIG_GZIP) += open_transformer.o 74lib-$(CONFIG_BZIP2) += open_transformer.o 75lib-$(CONFIG_LZOP) += open_transformer.o 76lib-$(CONFIG_MAN) += open_transformer.o 77lib-$(CONFIG_SETFONT) += open_transformer.o 78lib-$(CONFIG_FEATURE_2_4_MODULES) += open_transformer.o 79lib-$(CONFIG_MODINFO) += open_transformer.o 80lib-$(CONFIG_INSMOD) += open_transformer.o 81lib-$(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 87lib-$(CONFIG_FEATURE_SEAMLESS_Z) += open_transformer.o decompress_uncompress.o 88lib-$(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 91lib-$(CONFIG_FEATURE_SEAMLESS_XZ) += open_transformer.o decompress_unxz.o 92lib-$(CONFIG_FEATURE_COMPRESS_USAGE) += open_transformer.o decompress_bunzip2.o 93lib-$(CONFIG_FEATURE_COMPRESS_BBCONFIG) += open_transformer.o decompress_bunzip2.o 94lib-$(CONFIG_FEATURE_SH_EMBEDDED_SCRIPTS) += open_transformer.o decompress_bunzip2.o 95 96ifneq ($(lib-y),) 97lib-y += $(COMMON_FILES) 98endif 99