Makefile 874 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:=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. $(TOOLS_BUILD_DIR):
  12. mkdir -p $(TOOLS_BUILD_DIR)
  13. %-download:
  14. $(TRACE) "tools/$(patsubst %-download,%,$@)/download "
  15. $(MAKE) -C $(patsubst %-download,%,$@) fetch
  16. %-compile: $(TOOLS_BUILD_DIR)
  17. $(TRACE) "tools/$(patsubst %-compile,%,$@)/compile "
  18. $(MAKE) -C $(patsubst %-compile,%,$@) compile
  19. %-install:
  20. $(TRACE) "tools/$(patsubst %-install,%,$@)/install "
  21. $(MAKE) -C $(patsubst %-install,%,$@) install
  22. %-clean:
  23. $(TRACE) "tools/$(patsubst %-clean,%,$@)/clean "
  24. $(MAKE) -C $(patsubst %-clean,%,$@) clean