Mercurial > hg > truffle
annotate make/bsd/makefiles/buildtree.make @ 9724:8e8ea20621e7
simplify GraphBuilderPhase: append adds the node to the graph
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 16 May 2013 17:23:23 +0200 |
parents | 147162b27799 |
children | 836a62f43af9 |
rev | line source |
---|---|
3960 | 1 # |
8879
bab5cbf74b5f
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
8780
diff
changeset
|
2 # Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. |
3960 | 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # | |
5 # This code is free software; you can redistribute it and/or modify it | |
6 # under the terms of the GNU General Public License version 2 only, as | |
7 # published by the Free Software Foundation. | |
8 # | |
9 # This code is distributed in the hope that it will be useful, but WITHOUT | |
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 # version 2 for more details (a copy is included in the LICENSE file that | |
13 # accompanied this code). | |
14 # | |
15 # You should have received a copy of the GNU General Public License version | |
16 # 2 along with this work; if not, write to the Free Software Foundation, | |
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 # | |
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |
20 # or visit www.oracle.com if you need additional information or have any | |
21 # questions. | |
9152 | 22 # |
3960 | 23 # |
24 | |
25 # Usage: | |
26 # | |
27 # $(MAKE) -f buildtree.make SRCARCH=srcarch BUILDARCH=buildarch LIBARCH=libarch | |
28 # GAMMADIR=dir OS_FAMILY=os VARIANT=variant | |
29 # | |
30 # The macros ARCH, GAMMADIR, OS_FAMILY and VARIANT must be defined in the | |
31 # environment or on the command-line: | |
32 # | |
33 # ARCH - sparc, i486, ... HotSpot cpu and os_cpu source directory | |
34 # BUILDARCH - build directory | |
35 # LIBARCH - the corresponding directory in JDK/JRE | |
36 # GAMMADIR - top of workspace | |
37 # OS_FAMILY - operating system | |
38 # VARIANT - core, compiler1, compiler2, or tiered | |
39 # HOTSPOT_RELEASE_VERSION - <major>.<minor>-b<nn> (11.0-b07) | |
40 # HOTSPOT_BUILD_VERSION - internal, internal-$(USER_RELEASE_SUFFIX) or empty | |
41 # JRE_RELEASE_VERSION - <major>.<minor>.<micro> (1.7.0) | |
42 # | |
43 # Builds the directory trees with makefiles plus some convenience files in | |
44 # each directory: | |
45 # | |
46 # Makefile - for "make foo" | |
47 # flags.make - with macro settings | |
48 # vm.make - to support making "$(MAKE) -v vm.make" in makefiles | |
9152 | 49 # adlc.make - |
3960 | 50 # jvmti.make - generate JVMTI bindings from the spec (JSR-163) |
51 # sa.make - generate SA jar file and natives | |
52 # env.[ck]sh - environment settings | |
9152 | 53 # |
3960 | 54 # The makefiles are split this way so that "make foo" will run faster by not |
55 # having to read the dependency files for the vm. | |
56 | |
4108
8657ec177a14
7117748: SA_APPLE_BOOT_JAVA and ALWAYS_PASS_TEST_GAMMA settings should not be required on MacOS X
dcubed
parents:
4033
diff
changeset
|
57 # needs to be set here since this Makefile doesn't include defs.make |
8657ec177a14
7117748: SA_APPLE_BOOT_JAVA and ALWAYS_PASS_TEST_GAMMA settings should not be required on MacOS X
dcubed
parents:
4033
diff
changeset
|
58 OS_VENDOR:=$(shell uname -s) |
8657ec177a14
7117748: SA_APPLE_BOOT_JAVA and ALWAYS_PASS_TEST_GAMMA settings should not be required on MacOS X
dcubed
parents:
4033
diff
changeset
|
59 |
5897
7292cff45988
7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents:
4846
diff
changeset
|
60 -include $(SPEC) |
3960 | 61 include $(GAMMADIR)/make/scm.make |
6854
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
5946
diff
changeset
|
62 include $(GAMMADIR)/make/defs.make |
3960 | 63 include $(GAMMADIR)/make/altsrc.make |
64 | |
65 | |
66 # 'gmake MAKE_VERBOSE=y' or 'gmake QUIETLY=' gives all the gory details. | |
67 QUIETLY$(MAKE_VERBOSE) = @ | |
68 | |
5946
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5897
diff
changeset
|
69 ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true) |
3960 | 70 PLATFORM_FILE = $(shell dirname $(shell dirname $(shell pwd)))/platform_zero |
71 else | |
72 ifdef USE_SUNCC | |
73 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH).suncc | |
74 else | |
75 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH) | |
76 endif | |
77 endif | |
78 | |
79 # Allow overriding of the arch part of the directory but default | |
80 # to BUILDARCH if nothing is specified | |
81 ifeq ($(VARIANTARCH),) | |
82 VARIANTARCH=$(BUILDARCH) | |
83 endif | |
84 | |
85 ifdef FORCE_TIERED | |
86 ifeq ($(VARIANT),tiered) | |
87 PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_compiler2 | |
88 else | |
89 PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_$(VARIANT) | |
90 endif | |
91 else | |
92 PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_$(VARIANT) | |
93 endif | |
94 | |
95 # | |
96 # We do two levels of exclusion in the shared directory. | |
97 # TOPLEVEL excludes are pruned, they are not recursively searched, | |
98 # but lower level directories can be named without fear of collision. | |
99 # ALWAYS excludes are excluded at any level in the directory tree. | |
100 # | |
101 | |
102 ALWAYS_EXCLUDE_DIRS = $(SCM_DIRS) | |
103 | |
104 ifeq ($(VARIANT),tiered) | |
105 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name agent | |
106 else | |
107 ifeq ($(VARIANT),compiler2) | |
108 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name c1 -o -name agent | |
109 else | |
110 # compiler1 and core use the same exclude list | |
111 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name opto -o -name libadt -o -name agent | |
112 endif | |
113 endif | |
114 | |
115 # Get things from the platform file. | |
116 COMPILER = $(shell sed -n 's/^compiler[ ]*=[ ]*//p' $(PLATFORM_FILE)) | |
117 | |
4006 | 118 # dtracefiles is used on BSD versions that implement Dtrace (like MacOS X) |
3960 | 119 SIMPLE_DIRS = \ |
120 $(PLATFORM_DIR)/generated/dependencies \ | |
121 $(PLATFORM_DIR)/generated/adfiles \ | |
4006 | 122 $(PLATFORM_DIR)/generated/jvmtifiles \ |
123 $(PLATFORM_DIR)/generated/dtracefiles | |
3960 | 124 |
9152 | 125 TARGETS = debug fastdebug optimized product |
3960 | 126 SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS)) |
127 | |
128 # For dependencies and recursive makes. | |
129 BUILDTREE_MAKE = $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make | |
130 | |
4006 | 131 # dtrace.make is used on BSD versions that implement Dtrace (like MacOS X) |
132 BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make \ | |
133 jvmti.make sa.make dtrace.make \ | |
8780
98f3af397705
8006965: remove test_gamma and add dedicated test_* targets instead
twisti
parents:
7408
diff
changeset
|
134 env.sh env.csh jdkpath.sh |
3960 | 135 |
136 BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \ | |
137 SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT) | |
138 | |
139 # Define variables to be set in flags.make. | |
140 # Default values are set in make/defs.make. | |
141 ifeq ($(HOTSPOT_BUILD_VERSION),) | |
142 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION) | |
143 else | |
144 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION) | |
145 endif | |
146 # Set BUILD_USER from system-dependent hints: $LOGNAME, $(whoami) | |
147 ifndef HOTSPOT_BUILD_USER | |
148 HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME) | |
149 endif | |
150 ifndef HOTSPOT_BUILD_USER | |
151 HOTSPOT_BUILD_USER := $(shell whoami) | |
152 endif | |
153 # Define HOTSPOT_VM_DISTRO based on settings in make/openjdk_distro | |
154 # or make/hotspot_distro. | |
155 ifndef HOTSPOT_VM_DISTRO | |
156 ifeq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true) | |
157 include $(GAMMADIR)/make/hotspot_distro | |
158 else | |
159 include $(GAMMADIR)/make/openjdk_distro | |
160 endif | |
161 endif | |
162 | |
6837
75982791ddb6
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5946
diff
changeset
|
163 # if hotspot-only build and/or OPENJDK isn't passed down, need to set OPENJDK |
75982791ddb6
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5946
diff
changeset
|
164 ifndef OPENJDK |
75982791ddb6
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5946
diff
changeset
|
165 ifneq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true) |
75982791ddb6
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5946
diff
changeset
|
166 OPENJDK=true |
75982791ddb6
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5946
diff
changeset
|
167 endif |
75982791ddb6
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5946
diff
changeset
|
168 endif |
75982791ddb6
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5946
diff
changeset
|
169 |
3960 | 170 BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HS_BUILD_VER) HOTSPOT_BUILD_VERSION= JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) |
171 | |
172 BUILDTREE = \ | |
173 $(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS) | |
174 | |
175 BUILDTREE_COMMENT = echo "\# Generated by $(BUILDTREE_MAKE)" | |
176 | |
177 all: $(SUBMAKE_DIRS) | |
178 | |
179 # Run make in each subdirectory recursively. | |
180 $(SUBMAKE_DIRS): $(SIMPLE_DIRS) FORCE | |
181 $(QUIETLY) [ -d $@ ] || { mkdir -p $@; } | |
182 $(QUIETLY) cd $@ && $(BUILDTREE) TARGET=$(@F) | |
183 $(QUIETLY) touch $@ | |
184 | |
185 $(SIMPLE_DIRS): | |
186 $(QUIETLY) mkdir -p $@ | |
187 | |
188 # Convenience macro which takes a source relative path, applies $(1) to the | |
9152 | 189 # absolute path, and then replaces $(GAMMADIR) in the result with a |
190 # literal "$(GAMMADIR)/" suitable for inclusion in a Makefile. | |
3960 | 191 gamma-path=$(subst $(GAMMADIR),\$$(GAMMADIR),$(call $(1),$(HS_COMMON_SRC)/$(2))) |
192 | |
8879
bab5cbf74b5f
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
8780
diff
changeset
|
193 # This bit is needed to enable local rebuilds. |
bab5cbf74b5f
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
8780
diff
changeset
|
194 # Unless the makefile itself sets LP64, any environmental |
bab5cbf74b5f
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
8780
diff
changeset
|
195 # setting of LP64 will interfere with the build. |
bab5cbf74b5f
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
8780
diff
changeset
|
196 LP64_SETTING/32 = LP64 = \#empty |
bab5cbf74b5f
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
8780
diff
changeset
|
197 LP64_SETTING/64 = LP64 = 1 |
bab5cbf74b5f
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
8780
diff
changeset
|
198 |
bab5cbf74b5f
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
8780
diff
changeset
|
199 DATA_MODE/i486 = 32 |
bab5cbf74b5f
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
8780
diff
changeset
|
200 DATA_MODE/amd64 = 64 |
bab5cbf74b5f
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
8780
diff
changeset
|
201 |
bab5cbf74b5f
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
8780
diff
changeset
|
202 DATA_MODE = $(DATA_MODE/$(BUILDARCH)) |
bab5cbf74b5f
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
8780
diff
changeset
|
203 |
3960 | 204 flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst |
205 @echo Creating $@ ... | |
206 $(QUIETLY) ( \ | |
207 $(BUILDTREE_COMMENT); \ | |
208 echo; \ | |
209 echo "Platform_file = $(PLATFORM_FILE)" | sed 's|$(GAMMADIR)|$$(GAMMADIR)|'; \ | |
210 sed -n '/=/s/^ */Platform_/p' < $(PLATFORM_FILE); \ | |
211 echo; \ | |
212 echo "GAMMADIR = $(GAMMADIR)"; \ | |
6854
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
5946
diff
changeset
|
213 echo "HS_ALT_MAKE = $(HS_ALT_MAKE)"; \ |
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
5946
diff
changeset
|
214 echo "OSNAME = $(OSNAME)"; \ |
3960 | 215 echo "SYSDEFS = \$$(Platform_sysdefs)"; \ |
216 echo "SRCARCH = $(SRCARCH)"; \ | |
217 echo "BUILDARCH = $(BUILDARCH)"; \ | |
218 echo "LIBARCH = $(LIBARCH)"; \ | |
219 echo "TARGET = $(TARGET)"; \ | |
220 echo "HS_BUILD_VER = $(HS_BUILD_VER)"; \ | |
221 echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \ | |
222 echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \ | |
223 echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \ | |
224 echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \ | |
6837
75982791ddb6
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
5946
diff
changeset
|
225 echo "OPENJDK = $(OPENJDK)"; \ |
8879
bab5cbf74b5f
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
8780
diff
changeset
|
226 echo "$(LP64_SETTING/$(DATA_MODE))"; \ |
3960 | 227 echo; \ |
228 echo "# Used for platform dispatching"; \ | |
229 echo "TARGET_DEFINES = -DTARGET_OS_FAMILY_\$$(Platform_os_family)"; \ | |
230 echo "TARGET_DEFINES += -DTARGET_ARCH_\$$(Platform_arch)"; \ | |
231 echo "TARGET_DEFINES += -DTARGET_ARCH_MODEL_\$$(Platform_arch_model)"; \ | |
232 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_\$$(Platform_os_arch)"; \ | |
233 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_MODEL_\$$(Platform_os_arch_model)"; \ | |
234 echo "TARGET_DEFINES += -DTARGET_COMPILER_\$$(Platform_compiler)"; \ | |
235 echo "CFLAGS += \$$(TARGET_DEFINES)"; \ | |
236 echo; \ | |
237 echo "Src_Dirs_V = \\"; \ | |
238 sed 's/$$/ \\/;s|$(GAMMADIR)|$$(GAMMADIR)|' ../shared_dirs.lst; \ | |
239 echo "$(call gamma-path,altsrc,cpu/$(SRCARCH)/vm) \\"; \ | |
240 echo "$(call gamma-path,commonsrc,cpu/$(SRCARCH)/vm) \\"; \ | |
241 echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ | |
242 echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ | |
243 echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \ | |
244 echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \ | |
245 echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \ | |
9430
147162b27799
GRAAL-234 - PTX code loading
Morris Meyer <morris.meyer@oracle.com>
parents:
9159
diff
changeset
|
246 echo "$(call gamma-path,commonsrc,os/posix/vm) \\"; \ |
147162b27799
GRAAL-234 - PTX code loading
Morris Meyer <morris.meyer@oracle.com>
parents:
9159
diff
changeset
|
247 echo "$(call gamma-path,altsrc,gpu/ptx) \\"; \ |
147162b27799
GRAAL-234 - PTX code loading
Morris Meyer <morris.meyer@oracle.com>
parents:
9159
diff
changeset
|
248 echo "$(call gamma-path,commonsrc,gpu/ptx)"; \ |
3960 | 249 echo; \ |
250 echo "Src_Dirs_I = \\"; \ | |
251 echo "$(call gamma-path,altsrc,share/vm/prims) \\"; \ | |
252 echo "$(call gamma-path,commonsrc,share/vm/prims) \\"; \ | |
253 echo "$(call gamma-path,altsrc,share/vm) \\"; \ | |
254 echo "$(call gamma-path,commonsrc,share/vm) \\"; \ | |
4033
95009f678859
7106766: Move the precompiled header from the src/share/vm directory
brutisso
parents:
4006
diff
changeset
|
255 echo "$(call gamma-path,altsrc,share/vm/precompiled) \\"; \ |
95009f678859
7106766: Move the precompiled header from the src/share/vm directory
brutisso
parents:
4006
diff
changeset
|
256 echo "$(call gamma-path,commonsrc,share/vm/precompiled) \\"; \ |
3960 | 257 echo "$(call gamma-path,altsrc,cpu/$(SRCARCH)/vm) \\"; \ |
258 echo "$(call gamma-path,commonsrc,cpu/$(SRCARCH)/vm) \\"; \ | |
259 echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ | |
260 echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ | |
261 echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \ | |
262 echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \ | |
263 echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \ | |
9430
147162b27799
GRAAL-234 - PTX code loading
Morris Meyer <morris.meyer@oracle.com>
parents:
9159
diff
changeset
|
264 echo "$(call gamma-path,commonsrc,os/posix/vm) \\"; \ |
147162b27799
GRAAL-234 - PTX code loading
Morris Meyer <morris.meyer@oracle.com>
parents:
9159
diff
changeset
|
265 echo "$(call gamma-path,altsrc,gpu) \\"; \ |
147162b27799
GRAAL-234 - PTX code loading
Morris Meyer <morris.meyer@oracle.com>
parents:
9159
diff
changeset
|
266 echo "$(call gamma-path,commonsrc,gpu)"; \ |
3960 | 267 [ -n "$(CFLAGS_BROWSE)" ] && \ |
268 echo && echo "CFLAGS_BROWSE = $(CFLAGS_BROWSE)"; \ | |
269 [ -n "$(HOTSPOT_EXTRA_SYSDEFS)" ] && \ | |
270 echo && \ | |
271 echo "HOTSPOT_EXTRA_SYSDEFS\$$(HOTSPOT_EXTRA_SYSDEFS) = $(HOTSPOT_EXTRA_SYSDEFS)" && \ | |
272 echo "SYSDEFS += \$$(HOTSPOT_EXTRA_SYSDEFS)"; \ | |
273 echo; \ | |
5897
7292cff45988
7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents:
4846
diff
changeset
|
274 [ -n "$(SPEC)" ] && \ |
7292cff45988
7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents:
4846
diff
changeset
|
275 echo "include $(SPEC)"; \ |
3960 | 276 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(VARIANT).make"; \ |
6854
fb19af007ffc
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
5946
diff
changeset
|
277 echo "include \$$(GAMMADIR)/make/excludeSrc.make"; \ |
3960 | 278 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(COMPILER).make"; \ |
279 ) > $@ | |
280 | |
281 flags_vm.make: $(BUILDTREE_MAKE) ../shared_dirs.lst | |
282 @echo Creating $@ ... | |
283 $(QUIETLY) ( \ | |
284 $(BUILDTREE_COMMENT); \ | |
285 echo; \ | |
286 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(TARGET).make"; \ | |
287 ) > $@ | |
288 | |
289 ../shared_dirs.lst: $(BUILDTREE_MAKE) $(GAMMADIR)/src/share/vm | |
290 @echo Creating directory list $@ | |
291 $(QUIETLY) if [ -d $(HS_ALT_SRC)/share/vm ]; then \ | |
292 find $(HS_ALT_SRC)/share/vm/* -prune \ | |
293 -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \ | |
294 \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; > $@; \ | |
295 fi; | |
296 $(QUIETLY) find $(HS_COMMON_SRC)/share/vm/* -prune \ | |
297 -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \ | |
298 \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; >> $@ | |
299 | |
300 Makefile: $(BUILDTREE_MAKE) | |
301 @echo Creating $@ ... | |
302 $(QUIETLY) ( \ | |
303 $(BUILDTREE_COMMENT); \ | |
304 echo; \ | |
305 echo include flags.make; \ | |
306 echo; \ | |
307 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/top.make"; \ | |
308 ) > $@ | |
309 | |
310 vm.make: $(BUILDTREE_MAKE) | |
311 @echo Creating $@ ... | |
312 $(QUIETLY) ( \ | |
313 $(BUILDTREE_COMMENT); \ | |
314 echo; \ | |
315 echo include flags.make; \ | |
316 echo include flags_vm.make; \ | |
317 echo; \ | |
318 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ | |
319 ) > $@ | |
320 | |
321 adlc.make: $(BUILDTREE_MAKE) | |
322 @echo Creating $@ ... | |
323 $(QUIETLY) ( \ | |
324 $(BUILDTREE_COMMENT); \ | |
325 echo; \ | |
326 echo include flags.make; \ | |
327 echo; \ | |
328 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ | |
329 ) > $@ | |
330 | |
331 jvmti.make: $(BUILDTREE_MAKE) | |
332 @echo Creating $@ ... | |
333 $(QUIETLY) ( \ | |
334 $(BUILDTREE_COMMENT); \ | |
335 echo; \ | |
336 echo include flags.make; \ | |
337 echo; \ | |
338 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ | |
339 ) > $@ | |
340 | |
341 sa.make: $(BUILDTREE_MAKE) | |
342 @echo Creating $@ ... | |
343 $(QUIETLY) ( \ | |
344 $(BUILDTREE_COMMENT); \ | |
345 echo; \ | |
346 echo include flags.make; \ | |
347 echo; \ | |
348 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ | |
349 ) > $@ | |
350 | |
4006 | 351 dtrace.make: $(BUILDTREE_MAKE) |
352 @echo Creating $@ ... | |
353 $(QUIETLY) ( \ | |
354 $(BUILDTREE_COMMENT); \ | |
355 echo; \ | |
356 echo include flags.make; \ | |
357 echo; \ | |
358 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ | |
359 ) > $@ | |
360 | |
3960 | 361 env.sh: $(BUILDTREE_MAKE) |
362 @echo Creating $@ ... | |
363 $(QUIETLY) ( \ | |
364 $(BUILDTREE_COMMENT); \ | |
8780
98f3af397705
8006965: remove test_gamma and add dedicated test_* targets instead
twisti
parents:
7408
diff
changeset
|
365 { echo "JAVA_HOME=$(JDK_IMPORT_PATH)"; }; \ |
3960 | 366 { \ |
8212
ed3fa3ae7b61
applied patch to Makefile system for building graal.jar (CR-102)
Doug Simon <doug.simon@oracle.com>
parents:
7408
diff
changeset
|
367 echo "CLASSPATH=$${CLASSPATH:+$$CLASSPATH:}.:\$${JAVA_HOME}/jre/lib/rt.jar:$(OUTPUTDIR)/shared/graal.jar:\$${JAVA_HOME}/jre/lib/i18n.jar"; \ |
3960 | 368 } | sed s:$${JAVA_HOME:--------}:\$${JAVA_HOME}:g; \ |
369 echo "HOTSPOT_BUILD_USER=\"$${LOGNAME:-$$USER} in `basename $(GAMMADIR)`\""; \ | |
4846 | 370 echo "export JAVA_HOME CLASSPATH HOTSPOT_BUILD_USER"; \ |
3960 | 371 ) > $@ |
372 | |
373 env.csh: env.sh | |
374 @echo Creating $@ ... | |
375 $(QUIETLY) ( \ | |
376 $(BUILDTREE_COMMENT); \ | |
8780
98f3af397705
8006965: remove test_gamma and add dedicated test_* targets instead
twisti
parents:
7408
diff
changeset
|
377 { echo "setenv JAVA_HOME \"$(JDK_IMPORT_PATH)\""; }; \ |
3960 | 378 sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=/setenv \1 /p' $?; \ |
379 ) > $@ | |
380 | |
381 jdkpath.sh: $(BUILDTREE_MAKE) | |
382 @echo Creating $@ ... | |
383 $(QUIETLY) ( \ | |
384 $(BUILDTREE_COMMENT); \ | |
385 echo "JDK=${JAVA_HOME}"; \ | |
9152 | 386 ) > $@ |
3960 | 387 |
388 FORCE: | |
389 | |
390 .PHONY: all FORCE |