Makefile.in 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Makefile for busybox
  2. #
  3. # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
  4. #
  5. # Licensed under the GPL v2, see the file LICENSE in this tarball.
  6. ARCHIVAL_AR:=archival.a
  7. ifndef $(ARCHIVAL_DIR)
  8. ARCHIVAL_DIR:=$(top_builddir)/archival/
  9. endif
  10. srcdir=$(top_srcdir)/archival
  11. ARCHIVAL-y:=
  12. ARCHIVAL-$(CONFIG_APT_GET) +=
  13. ARCHIVAL-$(CONFIG_AR) += ar.o
  14. ARCHIVAL-$(CONFIG_BUNZIP2) += bunzip2.o
  15. ARCHIVAL-$(CONFIG_UNLZMA) += unlzma.o
  16. ARCHIVAL-$(CONFIG_CPIO) += cpio.o
  17. ARCHIVAL-$(CONFIG_DPKG) += dpkg.o
  18. ARCHIVAL-$(CONFIG_DPKG_DEB) += dpkg_deb.o
  19. ARCHIVAL-$(CONFIG_GUNZIP) += gunzip.o
  20. ARCHIVAL-$(CONFIG_GZIP) += gzip.o
  21. ARCHIVAL-$(CONFIG_RPM2CPIO) += rpm2cpio.o
  22. ARCHIVAL-$(CONFIG_RPM) += rpm.o
  23. ARCHIVAL-$(CONFIG_TAR) += tar.o
  24. ARCHIVAL-$(CONFIG_UNCOMPRESS) += uncompress.o
  25. ARCHIVAL-$(CONFIG_UNZIP) += unzip.o
  26. ifneq ($(strip $(ARCHIVAL-y)),)
  27. libraries-y+=$(ARCHIVAL_DIR)$(ARCHIVAL_AR)
  28. endif
  29. ARCHIVAL_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(ARCHIVAL-y))
  30. ARCHIVAL_SRC-a:=$(wildcard $(srcdir)/*.c)
  31. APPLET_SRC-y+=$(ARCHIVAL_SRC-y)
  32. APPLET_SRC-a+=$(ARCHIVAL_SRC-a)
  33. $(ARCHIVAL_DIR)$(ARCHIVAL_AR): $(patsubst %,$(ARCHIVAL_DIR)%, $(ARCHIVAL-y))
  34. $(do_ar)
  35. $(ARCHIVAL_DIR)%.o: $(srcdir)/%.c
  36. $(compile.c)