Makefile 885 B

1234567891011121314151617181920212223242526272829303132
  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 mkimage genext2fs bc
  5. ifeq ($(ADK_TARGET_ROOTFS_ISO),y)
  6. TARGETS+=cdrtools syslinux
  7. endif
  8. ifeq ($(ADK_TARGET_LIB_EGLIBC),y)
  9. TARGETS+=gperf
  10. endif
  11. TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
  12. TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
  13. all: install
  14. compile:
  15. install: $(TARGETS_INSTALL)
  16. clean: $(TARGETS_CLEAN)
  17. %-compile: $(TOOLS_BUILD_DIR)
  18. $(TRACE) "tools/$(patsubst %-compile,%,$@)/compile "
  19. $(MAKE) -C $(patsubst %-compile,%,$@) compile $(MAKE_TRACE)
  20. %-install:
  21. $(TRACE) "tools/$(patsubst %-install,%,$@)/install "
  22. $(MAKE) -C $(patsubst %-install,%,$@) install $(MAKE_TRACE)
  23. %-clean:
  24. $(TRACE) "tools/$(patsubst %-clean,%,$@)/clean "
  25. $(MAKE) -C $(patsubst %-clean,%,$@) clean