Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. TARGETS:=adk mksh mkcrypt cpio m4 flex bc bzip2 xz
  5. ifeq ($(ADK_HOST_NEED_GENEXT2FS),y)
  6. TARGETS+=genext2fs
  7. endif
  8. ifeq ($(ADK_HOST_NEED_MKIMAGE),y)
  9. TARGETS+=mkimage
  10. endif
  11. ifeq ($(ADK_HOST_NEED_MKISOFS),y)
  12. TARGETS+=cdrtools
  13. endif
  14. ifeq ($(ADK_HOST_NEED_SYSLINUX),y)
  15. TARGETS+=syslinux
  16. endif
  17. ifeq ($(ADK_HOST_NEED_JFFS2),y)
  18. TARGETS+=mtd-utils
  19. endif
  20. ifeq ($(ADK_HOST_NEED_SQUASHFS),y)
  21. TARGETS+=squashfs
  22. endif
  23. ifeq ($(ADK_HOST_NEED_LZOP),y)
  24. TARGETS+=lzo lzop
  25. endif
  26. ifeq ($(ADK_HOST_NEED_LZMA),y)
  27. TARGETS+=lzma
  28. endif
  29. ifeq ($(ADK_HOST_NEED_CCACHE),y)
  30. TARGETS+=ccache
  31. endif
  32. ifeq ($(ADK_HOST_NEED_PCRE),y)
  33. TARGETS+=pcre
  34. endif
  35. TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
  36. TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
  37. all: install
  38. compile:
  39. install: $(TARGETS_INSTALL)
  40. clean: $(TARGETS_CLEAN)
  41. %-compile: $(TOOLS_BUILD_DIR)
  42. $(TRACE) "tools/$(patsubst %-compile,%,$@)/compile "
  43. $(MAKE) -C $(patsubst %-compile,%,$@) compile $(MAKE_TRACE)
  44. %-install:
  45. $(TRACE) "tools/$(patsubst %-install,%,$@)/install "
  46. $(MAKE) -C $(patsubst %-install,%,$@) install $(MAKE_TRACE)
  47. %-clean:
  48. $(TRACE) "tools/$(patsubst %-clean,%,$@)/clean "
  49. $(MAKE) -C $(patsubst %-clean,%,$@) clean