Makefile 714 B

1234567891011121314151617181920212223242526
  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
  5. TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
  6. TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
  7. all: install
  8. compile:
  9. install: $(TARGETS_INSTALL)
  10. clean: $(TARGETS_CLEAN)
  11. %-compile: $(TOOLS_BUILD_DIR)
  12. $(TRACE) "tools/$(patsubst %-compile,%,$@)/compile "
  13. $(MAKE) -C $(patsubst %-compile,%,$@) compile
  14. %-install:
  15. $(TRACE) "tools/$(patsubst %-install,%,$@)/install "
  16. $(MAKE) -C $(patsubst %-install,%,$@) install
  17. %-clean:
  18. $(TRACE) "tools/$(patsubst %-clean,%,$@)/clean "
  19. $(MAKE) -C $(patsubst %-clean,%,$@) clean