Mercurial > hg > graal-jvmci-8
comparison make/jvmci.make @ 21740:6c3c21d9b5ef
Add -m switch to mx build, which builds/exports JVMCI with the make/jvmci.make file
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Fri, 05 Jun 2015 10:00:06 +0200 |
parents | cbe8cc0f79ce |
children | 6db6070d30b9 |
comparison
equal
deleted
inserted
replaced
21739:73809f97c281 | 21740:6c3c21d9b5ef |
---|---|
1 [?1034hVERBOSE= | 1 VERBOSE= |
2 TARGET=. | 2 TARGET=. |
3 JDK= | 3 JDK= |
4 | 4 |
5 WGET=wget | 5 WGET=wget |
6 JAVAC=$(JDK)/bin/javac -g -target 1.8 | 6 JAVAC=$(JDK)/bin/javac -g -target 1.8 |
25 define process_options = | 25 define process_options = |
26 $(eval providers=$(1)/$(PROVIDERS_INF)) | 26 $(eval providers=$(1)/$(PROVIDERS_INF)) |
27 $(eval services=$(1)/$(SERVICES_INF)) | 27 $(eval services=$(1)/$(SERVICES_INF)) |
28 $(eval options=$(1)/$(OPTIONS_INF)) | 28 $(eval options=$(1)/$(OPTIONS_INF)) |
29 test -d $(services) || mkdir -p $(services) | 29 test -d $(services) || mkdir -p $(services) |
30 test ! -d $(providers) || (cd $(providers) && for i in $$(ls $(providers)); do c=$$(cat $$i); echo $$i >> $(services)$$c; rm $$i; done) | 30 test ! -d $(providers) || (cd $(providers) && for i in $$(ls); do c=$$(cat $$i); echo $$i >> $(abspath $(services))/$$c; rm $$i; done) |
31 | 31 |
32 # We're building all projects together with one javac call; thus we cannot determine, from which project the generated file is thus we hardcode it for now | 32 # We're building all projects together with one javac call; thus we cannot determine, from which project the generated file is thus we hardcode it for now |
33 $(eval vmconfig=$(1)/hotspot/HotSpotVMConfig.inline.hpp) | 33 $(eval vmconfig=$(1)/hotspot/HotSpotVMConfig.inline.hpp) |
34 $(eval vmconfigDest=$(HS_COMMON_SRC)/../graal/com.oracle.jvmci.hotspot/src_gen/hotspot) | 34 $(eval vmconfigDest=$(HS_COMMON_SRC)/../graal/com.oracle.jvmci.hotspot/src_gen/hotspot) |
35 test ! -f $(vmconfig) || (mkdir -p $(vmconfigDest) && cp $(vmconfig) $(vmconfigDest)) | 35 test ! -f $(vmconfig) || (mkdir -p $(vmconfigDest) && cp $(vmconfig) $(vmconfigDest)) |
36 endef | 36 endef |
37 | 37 |
38 define extract = | 38 define extract = |
39 $(eval TMP := $(shell mktemp -d)) | 39 $(eval TMP := $(shell mktemp -d $(1)_XXXXX)) |
40 mkdir -p $(2); | 40 mkdir -p $(2) |
41 cd $(TMP) && $(JAR) xf $(abspath $(1)) && ((test ! -d .$(SERVICES_INF) || cp -r .$(SERVICES_INF) $(abspath $(2))) && (test ! -d .$(OPTIONS_INF) || cp -r .$(OPTIONS_INF) $(abspath $(2)))) | 41 cd $(TMP) && $(JAR) xf $(abspath $(1)) && ((test ! -d .$(SERVICES_INF) || cp -r .$(SERVICES_INF) $(abspath $(2))) && (test ! -d .$(OPTIONS_INF) || cp -r .$(OPTIONS_INF) $(abspath $(2)))) |
42 rm -r $(TMP) | 42 rm -r $(TMP) |
43 cp $(1) $(2) | 43 cp $(1) $(2) |
44 endef | 44 endef |
45 | 45 |
50 mkdir -p $(EXPORT_DIR) | 50 mkdir -p $(EXPORT_DIR) |
51 $(foreach export,$(EXPORTED_FILES),$(call extract,$(export),$(EXPORT_DIR))) | 51 $(foreach export,$(EXPORTED_FILES),$(call extract,$(export),$(EXPORT_DIR))) |
52 .PHONY: export | 52 .PHONY: export |
53 | 53 |
54 | 54 |
55 | |
56 EXPORTED_FILES += $(MX_TARGET)/build/truffle.jar | |
57 | |
58 EXPORTED_FILES += $(MX_TARGET)/build/graal.jar | |
59 | |
60 EXPORTED_FILES += $(MX_TARGET)/build/graal-truffle.jar | |
61 | 55 |
62 JDK_BOOTCLASSPATH = $(JDK)/jre/lib/resources.jar:$(JDK)/jre/lib/rt.jar:$(JDK)/jre/lib/jsse.jar:$(JDK)/jre/lib/jce.jar:$(JDK)/jre/lib/charsets.jar:$(JDK)/jre/lib/jfr.jar | 56 JDK_BOOTCLASSPATH = $(JDK)/jre/lib/resources.jar:$(JDK)/jre/lib/rt.jar:$(JDK)/jre/lib/jsse.jar:$(JDK)/jre/lib/jce.jar:$(JDK)/jre/lib/charsets.jar:$(JDK)/jre/lib/jfr.jar |
63 | 57 |
64 COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_SRC = $(shell find graal/com.oracle.jvmci.hotspotvmconfig/src -type f -name *.java 2> /dev/null) | 58 COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_SRC = $(shell find graal/com.oracle.jvmci.hotspotvmconfig/src -type f -name *.java 2> /dev/null) |
65 COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_SRC += $(shell find graal/com.oracle.jvmci.common/src -type f -name *.java 2> /dev/null) | 59 COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_SRC += $(shell find graal/com.oracle.jvmci.common/src -type f -name *.java 2> /dev/null) |
76 COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_SRC += $(shell find graal/com.oracle.jvmci.options/src -type f -name *.java 2> /dev/null) | 70 COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_SRC += $(shell find graal/com.oracle.jvmci.options/src -type f -name *.java 2> /dev/null) |
77 COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_SRC += $(shell find graal/com.oracle.jvmci.options.processor/src -type f -name *.java 2> /dev/null) | 71 COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_SRC += $(shell find graal/com.oracle.jvmci.options.processor/src -type f -name *.java 2> /dev/null) |
78 | 72 |
79 COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_JAR = $(TARGET)/graal/com.oracle.jvmci.options.processor/ap/com.oracle.jvmci.options.processor.jar | 73 COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_JAR = $(TARGET)/graal/com.oracle.jvmci.options.processor/ap/com.oracle.jvmci.options.processor.jar |
80 | 74 |
81 JVMCI_UTIL_SRC = $(shell find graal/com.oracle.jvmci.bytecode/src -type f -name *.java 2> /dev/null) | 75 JVMCI_HOTSPOT_SRC = $(shell find graal/com.oracle.jvmci.hotspotvmconfig/src -type f -name *.java 2> /dev/null) |
82 JVMCI_UTIL_SRC += $(shell find graal/com.oracle.jvmci.asm/src -type f -name *.java 2> /dev/null) | 76 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspotvmconfig/graal/com.oracle.jvmci.hotspotvmconfig/src_gen -type f -name *.java 2> /dev/null) |
83 JVMCI_UTIL_SRC += $(shell find graal/com.oracle.jvmci.amd64/src -type f -name *.java 2> /dev/null) | 77 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.amd64/src -type f -name *.java 2> /dev/null) |
84 JVMCI_UTIL_SRC += $(shell find graal/com.oracle.jvmci.asm.amd64/src -type f -name *.java 2> /dev/null) | 78 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.amd64/graal/com.oracle.jvmci.amd64/src_gen -type f -name *.java 2> /dev/null) |
85 JVMCI_UTIL_SRC += $(shell find graal/com.oracle.jvmci.sparc/src -type f -name *.java 2> /dev/null) | 79 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot/src -type f -name *.java 2> /dev/null) |
86 JVMCI_UTIL_SRC += $(shell find graal/com.oracle.jvmci.asm.sparc/src -type f -name *.java 2> /dev/null) | 80 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot/graal/com.oracle.jvmci.hotspot/src_gen -type f -name *.java 2> /dev/null) |
81 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot.amd64/src -type f -name *.java 2> /dev/null) | |
82 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot.amd64/graal/com.oracle.jvmci.hotspot.amd64/src_gen -type f -name *.java 2> /dev/null) | |
83 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.sparc/src -type f -name *.java 2> /dev/null) | |
84 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.sparc/graal/com.oracle.jvmci.sparc/src_gen -type f -name *.java 2> /dev/null) | |
85 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot.sparc/src -type f -name *.java 2> /dev/null) | |
86 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot.sparc/graal/com.oracle.jvmci.hotspot.sparc/src_gen -type f -name *.java 2> /dev/null) | |
87 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot.jfr/src -type f -name *.java 2> /dev/null) | |
88 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot.jfr/graal/com.oracle.jvmci.hotspot.jfr/src_gen -type f -name *.java 2> /dev/null) | |
87 | 89 |
88 JVMCI_UTIL_JAR = $(TARGET)/build/jvmci-util.jar | 90 JVMCI_HOTSPOT_JAR = $(TARGET)/build/jvmci-hotspot.jar |
89 | 91 |
90 JVMCI_UTIL_DEP_JARS = $(TARGET)/build/jvmci-service.jar $(TARGET)/build/jvmci-api.jar | 92 JVMCI_HOTSPOT_DEP_JARS = $(TARGET)/build/jvmci-service.jar $(TARGET)/build/jvmci-api.jar graal/findbugs-SuppressFBWarnings.jar |
91 | 93 |
92 EXPORTED_FILES += $(JVMCI_UTIL_JAR) | 94 EXPORTED_FILES += $(JVMCI_HOTSPOT_JAR) |
93 | 95 |
94 JVMCI_SERVICE_SRC = $(shell find graal/com.oracle.jvmci.service/src -type f -name *.java 2> /dev/null) | 96 JVMCI_SERVICE_SRC = $(shell find graal/com.oracle.jvmci.service/src -type f -name *.java 2> /dev/null) |
95 | 97 |
96 JVMCI_SERVICE_JAR = $(TARGET)/build/jvmci-service.jar | 98 JVMCI_SERVICE_JAR = $(TARGET)/build/jvmci-service.jar |
97 | 99 |
98 JVMCI_SERVICE_DEP_JARS = graal/findbugs-SuppressFBWarnings.jar | 100 JVMCI_SERVICE_DEP_JARS = graal/findbugs-SuppressFBWarnings.jar |
99 | 101 |
100 EXPORTED_FILES += $(JVMCI_SERVICE_JAR) | 102 EXPORTED_FILES += $(JVMCI_SERVICE_JAR) |
101 | |
102 JVMCI_HOTSPOT_SRC = $(shell find graal/com.oracle.jvmci.hotspotvmconfig/src -type f -name *.java 2> /dev/null) | |
103 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspotvmconfig/graal/com.oracle.jvmci.hotspotvmconfig/src_gen -type f -name *.java 2> /dev/null) | |
104 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot/src -type f -name *.java 2> /dev/null) | |
105 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot/graal/com.oracle.jvmci.hotspot/src_gen -type f -name *.java 2> /dev/null) | |
106 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot.amd64/src -type f -name *.java 2> /dev/null) | |
107 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot.amd64/graal/com.oracle.jvmci.hotspot.amd64/src_gen -type f -name *.java 2> /dev/null) | |
108 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot.sparc/src -type f -name *.java 2> /dev/null) | |
109 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot.sparc/graal/com.oracle.jvmci.hotspot.sparc/src_gen -type f -name *.java 2> /dev/null) | |
110 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot.jfr/src -type f -name *.java 2> /dev/null) | |
111 JVMCI_HOTSPOT_SRC += $(shell find graal/com.oracle.jvmci.hotspot.jfr/graal/com.oracle.jvmci.hotspot.jfr/src_gen -type f -name *.java 2> /dev/null) | |
112 | |
113 JVMCI_HOTSPOT_JAR = $(TARGET)/build/jvmci-hotspot.jar | |
114 | |
115 JVMCI_HOTSPOT_DEP_JARS = $(TARGET)/build/jvmci-util.jar $(TARGET)/build/jvmci-service.jar $(TARGET)/build/jvmci-api.jar graal/findbugs-SuppressFBWarnings.jar | |
116 | |
117 EXPORTED_FILES += $(JVMCI_HOTSPOT_JAR) | |
118 | 103 |
119 JVMCI_API_SRC = $(shell find graal/com.oracle.jvmci.meta/src -type f -name *.java 2> /dev/null) | 104 JVMCI_API_SRC = $(shell find graal/com.oracle.jvmci.meta/src -type f -name *.java 2> /dev/null) |
120 JVMCI_API_SRC += $(shell find graal/com.oracle.jvmci.code/src -type f -name *.java 2> /dev/null) | 105 JVMCI_API_SRC += $(shell find graal/com.oracle.jvmci.code/src -type f -name *.java 2> /dev/null) |
121 JVMCI_API_SRC += $(shell find graal/com.oracle.jvmci.runtime/src -type f -name *.java 2> /dev/null) | 106 JVMCI_API_SRC += $(shell find graal/com.oracle.jvmci.runtime/src -type f -name *.java 2> /dev/null) |
122 JVMCI_API_SRC += $(shell find graal/com.oracle.jvmci.options/src -type f -name *.java 2> /dev/null) | 107 JVMCI_API_SRC += $(shell find graal/com.oracle.jvmci.options/src -type f -name *.java 2> /dev/null) |
128 JVMCI_API_DEP_JARS = $(TARGET)/build/jvmci-service.jar graal/findbugs-SuppressFBWarnings.jar | 113 JVMCI_API_DEP_JARS = $(TARGET)/build/jvmci-service.jar graal/findbugs-SuppressFBWarnings.jar |
129 | 114 |
130 EXPORTED_FILES += $(JVMCI_API_JAR) | 115 EXPORTED_FILES += $(JVMCI_API_JAR) |
131 | 116 |
132 $(COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_JAR): $(COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_SRC) | 117 $(COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_JAR): $(COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_SRC) |
133 $(eval TMP := $(shell mktemp -d)) | 118 $(eval TMP := $(shell mktemp -d COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_XXXXX)) |
134 $(JAVAC) -d $(TMP) -bootclasspath $(JDK_BOOTCLASSPATH) $(COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_SRC) | 119 $(JAVAC) -d $(TMP) -bootclasspath $(JDK_BOOTCLASSPATH) $(COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_SRC) |
135 cp -r graal/com.oracle.jvmci.hotspotvmconfig.processor/src/META-INF $(TMP) | 120 cp -r graal/com.oracle.jvmci.hotspotvmconfig.processor/src/META-INF $(TMP) |
136 $(call process_options,$(TMP),False) | 121 $(call process_options,$(TMP),False) |
137 mkdir -p $$(dirname $(COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_JAR)) | 122 mkdir -p $$(dirname $(COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_JAR)) |
138 $(JAR) cf $(COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_JAR) -C $(TMP) . | 123 $(JAR) cf $(COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_JAR) -C $(TMP) . |
139 rm -r $(TMP) | 124 rm -r $(TMP) |
140 | 125 |
141 $(COM_ORACLE_JVMCI_SERVICE_PROCESSOR_JAR): $(COM_ORACLE_JVMCI_SERVICE_PROCESSOR_SRC) | 126 $(COM_ORACLE_JVMCI_SERVICE_PROCESSOR_JAR): $(COM_ORACLE_JVMCI_SERVICE_PROCESSOR_SRC) |
142 $(eval TMP := $(shell mktemp -d)) | 127 $(eval TMP := $(shell mktemp -d COM_ORACLE_JVMCI_SERVICE_PROCESSOR_XXXXX)) |
143 $(JAVAC) -d $(TMP) -bootclasspath $(JDK_BOOTCLASSPATH) $(COM_ORACLE_JVMCI_SERVICE_PROCESSOR_SRC) | 128 $(JAVAC) -d $(TMP) -bootclasspath $(JDK_BOOTCLASSPATH) $(COM_ORACLE_JVMCI_SERVICE_PROCESSOR_SRC) |
144 cp -r graal/com.oracle.jvmci.service.processor/src/META-INF $(TMP) | 129 cp -r graal/com.oracle.jvmci.service.processor/src/META-INF $(TMP) |
145 $(call process_options,$(TMP),False) | 130 $(call process_options,$(TMP),False) |
146 mkdir -p $$(dirname $(COM_ORACLE_JVMCI_SERVICE_PROCESSOR_JAR)) | 131 mkdir -p $$(dirname $(COM_ORACLE_JVMCI_SERVICE_PROCESSOR_JAR)) |
147 $(JAR) cf $(COM_ORACLE_JVMCI_SERVICE_PROCESSOR_JAR) -C $(TMP) . | 132 $(JAR) cf $(COM_ORACLE_JVMCI_SERVICE_PROCESSOR_JAR) -C $(TMP) . |
148 rm -r $(TMP) | 133 rm -r $(TMP) |
149 | 134 |
150 $(COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_JAR): $(COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_SRC) | 135 $(COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_JAR): $(COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_SRC) |
151 $(eval TMP := $(shell mktemp -d)) | 136 $(eval TMP := $(shell mktemp -d COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_XXXXX)) |
152 $(JAVAC) -d $(TMP) -bootclasspath $(JDK_BOOTCLASSPATH) $(COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_SRC) | 137 $(JAVAC) -d $(TMP) -bootclasspath $(JDK_BOOTCLASSPATH) $(COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_SRC) |
153 cp -r graal/com.oracle.jvmci.options.processor/src/META-INF $(TMP) | 138 cp -r graal/com.oracle.jvmci.options.processor/src/META-INF $(TMP) |
154 $(call process_options,$(TMP),False) | 139 $(call process_options,$(TMP),False) |
155 mkdir -p $$(dirname $(COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_JAR)) | 140 mkdir -p $$(dirname $(COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_JAR)) |
156 $(JAR) cf $(COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_JAR) -C $(TMP) . | 141 $(JAR) cf $(COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_JAR) -C $(TMP) . |
157 rm -r $(TMP) | 142 rm -r $(TMP) |
158 | 143 |
159 $(JVMCI_UTIL_JAR): $(JVMCI_UTIL_SRC) $(JVMCI_UTIL_DEP_JARS) | 144 $(JVMCI_HOTSPOT_JAR): $(JVMCI_HOTSPOT_SRC) $(COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_JAR) $(COM_ORACLE_JVMCI_SERVICE_PROCESSOR_JAR) $(COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_JAR) $(JVMCI_HOTSPOT_DEP_JARS) |
160 $(eval TMP := $(shell mktemp -d)) | 145 $(eval TMP := $(shell mktemp -d JVMCI_HOTSPOT_XXXXX)) |
161 $(JAVAC) -d $(TMP) -bootclasspath $(JDK_BOOTCLASSPATH) -cp $(TARGET)/build/jvmci-service.jar:$(TARGET)/build/jvmci-api.jar $(JVMCI_UTIL_SRC) | 146 $(JAVAC) -d $(TMP) -processorpath $(COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_JAR):$(COM_ORACLE_JVMCI_SERVICE_PROCESSOR_JAR):$(COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_JAR) -bootclasspath $(JDK_BOOTCLASSPATH) -cp $(TARGET)/build/jvmci-service.jar:$(TARGET)/build/jvmci-api.jar:graal/findbugs-SuppressFBWarnings.jar $(JVMCI_HOTSPOT_SRC) |
162 | 147 |
163 $(call process_options,$(TMP),True) | 148 $(call process_options,$(TMP),True) |
164 mkdir -p $$(dirname $(JVMCI_UTIL_JAR)) | 149 mkdir -p $$(dirname $(JVMCI_HOTSPOT_JAR)) |
165 $(JAR) cf $(JVMCI_UTIL_JAR) -C $(TMP) . | 150 $(JAR) cf $(JVMCI_HOTSPOT_JAR) -C $(TMP) . |
166 rm -r $(TMP) | 151 rm -r $(TMP) |
167 | 152 |
168 $(JVMCI_SERVICE_JAR): $(JVMCI_SERVICE_SRC) $(JVMCI_SERVICE_DEP_JARS) | 153 $(JVMCI_SERVICE_JAR): $(JVMCI_SERVICE_SRC) $(JVMCI_SERVICE_DEP_JARS) |
169 $(eval TMP := $(shell mktemp -d)) | 154 $(eval TMP := $(shell mktemp -d JVMCI_SERVICE_XXXXX)) |
170 $(JAVAC) -d $(TMP) -bootclasspath $(JDK_BOOTCLASSPATH) -cp graal/findbugs-SuppressFBWarnings.jar $(JVMCI_SERVICE_SRC) | 155 $(JAVAC) -d $(TMP) -bootclasspath $(JDK_BOOTCLASSPATH) -cp graal/findbugs-SuppressFBWarnings.jar $(JVMCI_SERVICE_SRC) |
171 | 156 |
172 $(call process_options,$(TMP),True) | 157 $(call process_options,$(TMP),True) |
173 mkdir -p $$(dirname $(JVMCI_SERVICE_JAR)) | 158 mkdir -p $$(dirname $(JVMCI_SERVICE_JAR)) |
174 $(JAR) cf $(JVMCI_SERVICE_JAR) -C $(TMP) . | 159 $(JAR) cf $(JVMCI_SERVICE_JAR) -C $(TMP) . |
175 rm -r $(TMP) | 160 rm -r $(TMP) |
176 | 161 |
177 $(JVMCI_HOTSPOT_JAR): $(JVMCI_HOTSPOT_SRC) $(COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_JAR) $(COM_ORACLE_JVMCI_SERVICE_PROCESSOR_JAR) $(COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_JAR) $(JVMCI_HOTSPOT_DEP_JARS) | |
178 $(eval TMP := $(shell mktemp -d)) | |
179 $(JAVAC) -d $(TMP) -processorpath $(COM_ORACLE_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_JAR):$(COM_ORACLE_JVMCI_SERVICE_PROCESSOR_JAR):$(COM_ORACLE_JVMCI_OPTIONS_PROCESSOR_JAR) -bootclasspath $(JDK_BOOTCLASSPATH) -cp $(TARGET)/build/jvmci-util.jar:$(TARGET)/build/jvmci-service.jar:$(TARGET)/build/jvmci-api.jar:graal/findbugs-SuppressFBWarnings.jar $(JVMCI_HOTSPOT_SRC) | |
180 | |
181 $(call process_options,$(TMP),True) | |
182 mkdir -p $$(dirname $(JVMCI_HOTSPOT_JAR)) | |
183 $(JAR) cf $(JVMCI_HOTSPOT_JAR) -C $(TMP) . | |
184 rm -r $(TMP) | |
185 | |
186 $(JVMCI_API_JAR): $(JVMCI_API_SRC) $(JVMCI_API_DEP_JARS) | 162 $(JVMCI_API_JAR): $(JVMCI_API_SRC) $(JVMCI_API_DEP_JARS) |
187 $(eval TMP := $(shell mktemp -d)) | 163 $(eval TMP := $(shell mktemp -d JVMCI_API_XXXXX)) |
188 $(JAVAC) -d $(TMP) -bootclasspath $(JDK_BOOTCLASSPATH) -cp $(TARGET)/build/jvmci-service.jar:graal/findbugs-SuppressFBWarnings.jar $(JVMCI_API_SRC) | 164 $(JAVAC) -d $(TMP) -bootclasspath $(JDK_BOOTCLASSPATH) -cp $(TARGET)/build/jvmci-service.jar:graal/findbugs-SuppressFBWarnings.jar $(JVMCI_API_SRC) |
189 | 165 |
190 $(call process_options,$(TMP),True) | 166 $(call process_options,$(TMP),True) |
191 mkdir -p $$(dirname $(JVMCI_API_JAR)) | 167 mkdir -p $$(dirname $(JVMCI_API_JAR)) |
192 $(JAR) cf $(JVMCI_API_JAR) -C $(TMP) . | 168 $(JAR) cf $(JVMCI_API_JAR) -C $(TMP) . |
193 rm -r $(TMP) | 169 rm -r $(TMP) |
194 | 170 |
195 default: $(JVMCI_UTIL_JAR) $(JVMCI_SERVICE_JAR) $(JVMCI_HOTSPOT_JAR) $(JVMCI_API_JAR) | 171 default: $(JVMCI_HOTSPOT_JAR) $(JVMCI_SERVICE_JAR) $(JVMCI_API_JAR) |
196 .PHONY: default | 172 .PHONY: default |