Makefile 940 B

12345678910111213141516171819202122232425262728293031323334
  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:=
  5. ifneq ($(ADK_PACKAGE_OPENJDK),)
  6. # jikes is for ant
  7. TARGETS+=fastjar gcj ecj jikes classpath jamvm ant openjdk qemu
  8. endif
  9. ifneq ($(ADK_PACKAGE_OPENJDK7),)
  10. # jikes is for ant
  11. TARGETS+=fastjar gcj ecj jikes classpath jamvm ant openjdk7
  12. endif
  13. TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
  14. TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
  15. all: install
  16. compile:
  17. install: $(TARGETS_INSTALL)
  18. clean: $(TARGETS_CLEAN)
  19. %-compile: $(TOOLS_BUILD_DIR)
  20. $(TRACE) "jtools/$(patsubst %-compile,%,$@)/compile "
  21. $(MAKE) -C $(patsubst %-compile,%,$@) compile
  22. %-install:
  23. $(TRACE) "jtools/$(patsubst %-install,%,$@)/install "
  24. $(MAKE) -C $(patsubst %-install,%,$@) install
  25. %-clean:
  26. $(TRACE) "jtools/$(patsubst %-clean,%,$@)/clean "
  27. $(MAKE) -C $(patsubst %-clean,%,$@) clean