Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 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. TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
  30. TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
  31. all: install
  32. compile:
  33. install: $(TARGETS_INSTALL)
  34. clean: $(TARGETS_CLEAN)
  35. %-compile: $(TOOLS_BUILD_DIR)
  36. $(TRACE) "tools/$(patsubst %-compile,%,$@)/compile "
  37. $(MAKE) -C $(patsubst %-compile,%,$@) compile $(MAKE_TRACE)
  38. %-install:
  39. $(TRACE) "tools/$(patsubst %-install,%,$@)/install "
  40. $(MAKE) -C $(patsubst %-install,%,$@) install $(MAKE_TRACE)
  41. %-clean:
  42. $(TRACE) "tools/$(patsubst %-clean,%,$@)/clean "
  43. $(MAKE) -C $(patsubst %-clean,%,$@) clean