Makefile.in 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. LIBUNARCHIVE_AR:=libunarchive.a
  7. ifndef $(LIBUNARCHIVE_DIR)
  8. LIBUNARCHIVE_DIR:=$(top_builddir)/archival/libunarchive
  9. endif
  10. srcdir=$(top_srcdir)/archival/libunarchive
  11. LIBUNARCHIVE-obj:=$(LIBUNARCHIVE_DIR)/$(LIBUNARCHIVE_AR)
  12. libraries-y+=$(LIBUNARCHIVE-obj)
  13. LIBUNARCHIVE-y:= \
  14. \
  15. data_skip.o \
  16. data_extract_all.o \
  17. data_extract_to_stdout.o \
  18. data_extract_to_buffer.o \
  19. \
  20. filter_accept_all.o \
  21. filter_accept_list.o \
  22. filter_accept_reject_list.o \
  23. \
  24. header_skip.o \
  25. header_list.o \
  26. header_verbose_list.o \
  27. \
  28. archive_xread_all.o \
  29. archive_xread_all_eof.o \
  30. \
  31. seek_by_char.o \
  32. seek_by_jump.o \
  33. \
  34. data_align.o \
  35. find_list_entry.o \
  36. open_transformer.o \
  37. init_handle.o
  38. GUNZIP_FILES:= check_header_gzip.o decompress_unzip.o
  39. DPKG_FILES:= \
  40. get_header_ar.o \
  41. unpack_ar_archive.o \
  42. get_header_tar.o \
  43. filter_accept_list_reassign.o
  44. LIBUNARCHIVE-$(CONFIG_AR) += get_header_ar.o unpack_ar_archive.o
  45. LIBUNARCHIVE-$(CONFIG_BUNZIP2) += decompress_bunzip2.o
  46. LIBUNARCHIVE-$(CONFIG_UNLZMA) += decompress_unlzma.o
  47. LIBUNARCHIVE-$(CONFIG_CPIO) += get_header_cpio.o
  48. LIBUNARCHIVE-$(CONFIG_DPKG) += $(DPKG_FILES)
  49. LIBUNARCHIVE-$(CONFIG_DPKG_DEB) += $(DPKG_FILES)
  50. LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_GZ) += $(GUNZIP_FILES) get_header_tar_gz.o
  51. LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_BZ2) += decompress_bunzip2.o get_header_tar_bz2.o
  52. LIBUNARCHIVE-$(CONFIG_FEATURE_DEB_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o
  53. LIBUNARCHIVE-$(CONFIG_GUNZIP) += $(GUNZIP_FILES)
  54. LIBUNARCHIVE-$(CONFIG_FEATURE_GUNZIP_UNCOMPRESS) += decompress_uncompress.o
  55. LIBUNARCHIVE-$(CONFIG_RPM2CPIO) += $(GUNZIP_FILES) get_header_cpio.o
  56. LIBUNARCHIVE-$(CONFIG_RPM) += $(GUNZIP_FILES) get_header_cpio.o
  57. LIBUNARCHIVE-$(CONFIG_TAR) += get_header_tar.o
  58. LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_BZIP2) += decompress_bunzip2.o get_header_tar_bz2.o
  59. LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_LZMA) += decompress_unlzma.o get_header_tar_lzma.o
  60. LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_GZIP) += $(GUNZIP_FILES) get_header_tar_gz.o
  61. LIBUNARCHIVE-$(CONFIG_FEATURE_TAR_COMPRESS) += decompress_uncompress.o
  62. LIBUNARCHIVE-$(CONFIG_UNCOMPRESS) += decompress_uncompress.o
  63. LIBUNARCHIVE-$(CONFIG_UNZIP) += $(GUNZIP_FILES)
  64. LIBUNARCHIVE-y:=$(sort $(LIBUNARCHIVE-y))
  65. LIBUNARCHIVE_SRC-y:=$(patsubst %,$(srcdir)/%,$(subst .o,.c,$(LIBUNARCHIVE-y)))
  66. LIBUNARCHIVE_SRC-a:=$(wildcard $(srcdir)/*.c)
  67. LIBRARY_SRC-y+=$(LIBUNARCHIVE_SRC-y)
  68. LIBRARY_SRC-a+=$(LIBUNARCHIVE_SRC-a)
  69. $(LIBUNARCHIVE_DIR)/$(LIBUNARCHIVE_AR): $(patsubst %,$(LIBUNARCHIVE_DIR)/%,$(LIBUNARCHIVE-y))
  70. $(do_ar)
  71. $(LIBUNARCHIVE_DIR)/%.o: $(srcdir)/%.c
  72. $(compile.c)