Kbuild 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # 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. lib-y:=
  7. COMMON_FILES:= \
  8. \
  9. data_skip.o \
  10. data_extract_all.o \
  11. data_extract_to_stdout.o \
  12. \
  13. filter_accept_all.o \
  14. filter_accept_list.o \
  15. filter_accept_reject_list.o \
  16. \
  17. header_skip.o \
  18. header_list.o \
  19. header_verbose_list.o \
  20. \
  21. seek_by_read.o \
  22. seek_by_jump.o \
  23. \
  24. data_align.o \
  25. find_list_entry.o \
  26. init_handle.o
  27. DPKG_FILES:= \
  28. get_header_ar.o \
  29. unpack_ar_archive.o \
  30. get_header_tar.o \
  31. filter_accept_list_reassign.o
  32. lib-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o
  33. lib-$(CONFIG_BUNZIP2) += decompress_bunzip2.o
  34. lib-$(CONFIG_UNLZMA) += decompress_unlzma.o
  35. lib-$(CONFIG_CPIO) += get_header_cpio.o
  36. lib-$(CONFIG_DPKG) += $(DPKG_FILES)
  37. lib-$(CONFIG_DPKG_DEB) += $(DPKG_FILES)
  38. lib-$(CONFIG_GUNZIP) += decompress_unzip.o
  39. lib-$(CONFIG_RPM2CPIO) += decompress_unzip.o get_header_cpio.o
  40. lib-$(CONFIG_RPM) += open_transformer.o decompress_unzip.o get_header_cpio.o
  41. lib-$(CONFIG_TAR) += get_header_tar.o
  42. lib-$(CONFIG_UNCOMPRESS) += decompress_uncompress.o
  43. lib-$(CONFIG_UNZIP) += decompress_unzip.o
  44. lib-$(CONFIG_FEATURE_SEAMLESS_Z) += open_transformer.o decompress_uncompress.o
  45. lib-$(CONFIG_FEATURE_SEAMLESS_GZ) += open_transformer.o decompress_unzip.o get_header_tar_gz.o
  46. lib-$(CONFIG_FEATURE_SEAMLESS_BZ2) += open_transformer.o decompress_bunzip2.o get_header_tar_bz2.o
  47. lib-$(CONFIG_FEATURE_SEAMLESS_LZMA) += open_transformer.o decompress_unlzma.o get_header_tar_lzma.o
  48. lib-$(CONFIG_FEATURE_COMPRESS_USAGE) += decompress_bunzip2.o
  49. ifneq ($(lib-y),)
  50. lib-y += $(COMMON_FILES)
  51. endif