summaryrefslogtreecommitdiff
path: root/jtools/Makefile
blob: 4c911b33d3e21cf234c33232302021b4db2042f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

TARGETS:=
ifneq ($(ADK_PACKAGE_OPENJDK),)
# jikes is for ant
TARGETS+=fastjar gcj ecj jikes classpath jamvm ant openjdk qemu
endif
ifneq ($(ADK_PACKAGE_OPENJDK7),)
# jikes is for ant
TARGETS+=fastjar gcj ecj jikes classpath jamvm ant openjdk7
endif

TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))

all: install
compile:
install: $(TARGETS_INSTALL)
clean: $(TARGETS_CLEAN)

%-compile: $(TOOLS_BUILD_DIR)
	$(TRACE) "jtools/$(patsubst %-compile,%,$@)/compile "
	$(MAKE) -C $(patsubst %-compile,%,$@) compile

%-install:
	$(TRACE) "jtools/$(patsubst %-install,%,$@)/install "
	$(MAKE) -C $(patsubst %-install,%,$@) install

%-clean:
	$(TRACE) "jtools/$(patsubst %-clean,%,$@)/clean "
	$(MAKE) -C $(patsubst %-clean,%,$@) clean