Mercurial > hg > truffle
annotate make/solaris/makefiles/buildtree.make @ 4048:cec1757a0134
7102657: JSR 292: C1 deoptimizes unlinked invokedynamic call sites infinitely
Reviewed-by: never, bdelsart
author | twisti |
---|---|
date | Thu, 27 Oct 2011 04:43:37 -0700 |
parents | da0999c4b733 |
children | 95009f678859 |
rev | line source |
---|---|
0 | 1 # |
2426
1d1603768966
7010070: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - second pass
trims
parents:
2199
diff
changeset
|
2 # Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. |
0 | 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 # | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
235
diff
changeset
|
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
235
diff
changeset
|
20 # or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
235
diff
changeset
|
21 # questions. |
0 | 22 # |
23 # | |
24 | |
25 # Usage: | |
26 # | |
27 # $(MAKE) -f buildtree.make ARCH=arch 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) | |
1977
c7db7adb83b4
6987107: Add variable to add to but not modify non-fcs version string
ohair
parents:
1552
diff
changeset
|
40 # HOTSPOT_BUILD_VERSION - internal, internal-$(USER_RELEASE_SUFFIX) or empty |
0 | 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 | |
49 # adlc.make - | |
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 | |
53 # test_gamma - script to run the Queens program | |
54 # | |
55 # The makefiles are split this way so that "make foo" will run faster by not | |
56 # having to read the dependency files for the vm. | |
57 | |
58 include $(GAMMADIR)/make/scm.make | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
59 include $(GAMMADIR)/make/altsrc.make |
0 | 60 |
61 # 'gmake MAKE_VERBOSE=y' or 'gmake QUIETLY=' gives all the gory details. | |
62 QUIETLY$(MAKE_VERBOSE) = @ | |
63 | |
64 # For now, until the compiler is less wobbly: | |
2080 | 65 TESTFLAGS = -Xbatch -Xmx32m -showversion |
0 | 66 |
67 ### maye ARCH_XXX instead? | |
68 ifdef USE_GCC | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
69 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH).gcc |
0 | 70 GCC_LIB = /usr/local/lib |
71 else | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
72 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH) |
0 | 73 GCC_LIB = |
74 endif | |
75 | |
76 ifdef FORCE_TIERED | |
77 ifeq ($(VARIANT),tiered) | |
78 PLATFORM_DIR = $(OS_FAMILY)_$(BUILDARCH)_compiler2 | |
79 else | |
80 PLATFORM_DIR = $(OS_FAMILY)_$(BUILDARCH)_$(VARIANT) | |
81 endif | |
82 else | |
83 PLATFORM_DIR = $(OS_FAMILY)_$(BUILDARCH)_$(VARIANT) | |
84 endif | |
85 | |
86 # | |
87 # We do two levels of exclusion in the shared directory. | |
88 # TOPLEVEL excludes are pruned, they are not recursively searched, | |
89 # but lower level directories can be named without fear of collision. | |
90 # ALWAYS excludes are excluded at any level in the directory tree. | |
91 # | |
92 | |
93 ALWAYS_EXCLUDE_DIRS = $(SCM_DIRS) | |
94 | |
95 ifeq ($(VARIANT),tiered) | |
96 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name agent | |
97 else | |
98 ifeq ($(VARIANT),compiler2) | |
99 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name c1 -o -name agent | |
100 else | |
101 # compiler1 and core use the same exclude list | |
102 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name opto -o -name libadt -o -name agent | |
103 endif | |
104 endif | |
105 | |
106 # Get things from the platform file. | |
107 COMPILER = $(shell sed -n 's/^compiler[ ]*=[ ]*//p' $(PLATFORM_FILE)) | |
108 | |
109 SIMPLE_DIRS = \ | |
1972 | 110 $(PLATFORM_DIR)/generated/dependencies \ |
0 | 111 $(PLATFORM_DIR)/generated/adfiles \ |
112 $(PLATFORM_DIR)/generated/jvmtifiles | |
113 | |
114 TARGETS = debug fastdebug jvmg optimized product profiled | |
115 SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS)) | |
116 | |
117 # For dependencies and recursive makes. | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
118 BUILDTREE_MAKE = $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make |
0 | 119 |
120 BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make sa.make \ | |
2027
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
121 env.ksh env.csh jdkpath.sh .dbxrc test_gamma |
0 | 122 |
123 BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \ | |
124 ARCH=$(ARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT) | |
125 | |
126 # Define variables to be set in flags.make. | |
127 # Default values are set in make/defs.make. | |
128 ifeq ($(HOTSPOT_BUILD_VERSION),) | |
129 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION) | |
130 else | |
131 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION) | |
132 endif | |
133 # Set BUILD_USER from system-dependent hints: $LOGNAME, $(whoami) | |
134 ifndef HOTSPOT_BUILD_USER | |
135 HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME) | |
136 endif | |
137 ifndef HOTSPOT_BUILD_USER | |
138 HOTSPOT_BUILD_USER := $(shell whoami) | |
139 endif | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
140 # Define HOTSPOT_VM_DISTRO based on settings in make/openjdk_distro |
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
141 # or make/hotspot_distro. |
0 | 142 ifndef HOTSPOT_VM_DISTRO |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
143 ifeq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true) |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
144 include $(GAMMADIR)/make/hotspot_distro |
0 | 145 else |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
146 include $(GAMMADIR)/make/openjdk_distro |
0 | 147 endif |
148 endif | |
149 | |
150 BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HS_BUILD_VER) HOTSPOT_BUILD_VERSION= JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) | |
151 | |
152 BUILDTREE = \ | |
153 $(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS) | |
154 | |
155 BUILDTREE_COMMENT = echo "\# Generated by $(BUILDTREE_MAKE)" | |
156 | |
157 all: $(SUBMAKE_DIRS) | |
158 | |
159 # Run make in each subdirectory recursively. | |
160 $(SUBMAKE_DIRS): $(SIMPLE_DIRS) FORCE | |
161 $(QUIETLY) [ -d $@ ] || { mkdir -p $@; } | |
162 $(QUIETLY) cd $@ && $(BUILDTREE) TARGET=$(@F) | |
163 $(QUIETLY) touch $@ | |
164 | |
165 $(SIMPLE_DIRS): | |
166 $(QUIETLY) mkdir -p $@ | |
167 | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
168 # Convenience macro which takes a source relative path, applies $(1) to the |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
169 # absolute path, and then replaces $(GAMMADIR) in the result with a |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
170 # literal "$(GAMMADIR)/" suitable for inclusion in a Makefile. |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
171 gamma-path=$(subst $(GAMMADIR),\$$(GAMMADIR),$(call $(1),$(HS_COMMON_SRC)/$(2))) |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
172 |
0 | 173 flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst |
174 @echo Creating $@ ... | |
175 $(QUIETLY) ( \ | |
176 $(BUILDTREE_COMMENT); \ | |
177 echo; \ | |
178 echo "Platform_file = $(PLATFORM_FILE)" | sed 's|$(GAMMADIR)|$$(GAMMADIR)|'; \ | |
179 sed -n '/=/s/^ */Platform_/p' < $(PLATFORM_FILE); \ | |
180 echo; \ | |
181 echo "GAMMADIR = $(GAMMADIR)"; \ | |
182 echo "SYSDEFS = \$$(Platform_sysdefs)"; \ | |
183 echo "SRCARCH = $(ARCH)"; \ | |
184 echo "BUILDARCH = $(BUILDARCH)"; \ | |
185 echo "LIBARCH = $(LIBARCH)"; \ | |
186 echo "TARGET = $(TARGET)"; \ | |
187 echo "HS_BUILD_VER = $(HS_BUILD_VER)"; \ | |
188 echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \ | |
189 echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \ | |
190 echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \ | |
191 echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \ | |
192 echo "$(LP64_SETTING/$(DATA_MODE))"; \ | |
193 echo; \ | |
1972 | 194 echo "# Used for platform dispatching"; \ |
195 echo "TARGET_DEFINES = -DTARGET_OS_FAMILY_\$$(Platform_os_family)"; \ | |
196 echo "TARGET_DEFINES += -DTARGET_ARCH_\$$(Platform_arch)"; \ | |
197 echo "TARGET_DEFINES += -DTARGET_ARCH_MODEL_\$$(Platform_arch_model)"; \ | |
198 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_\$$(Platform_os_arch)"; \ | |
199 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_MODEL_\$$(Platform_os_arch_model)"; \ | |
200 echo "TARGET_DEFINES += -DTARGET_COMPILER_\$$(Platform_compiler)"; \ | |
201 echo "CFLAGS += \$$(TARGET_DEFINES)"; \ | |
202 echo; \ | |
203 echo "Src_Dirs_V = \\"; \ | |
0 | 204 sed 's/$$/ \\/;s|$(GAMMADIR)|$$(GAMMADIR)|' ../shared_dirs.lst; \ |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
205 echo "$(call gamma-path,altsrc,cpu/$(ARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
206 echo "$(call gamma-path,commonsrc,cpu/$(ARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
207 echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(ARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
208 echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(ARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
209 echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
210 echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
211 echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
212 echo "$(call gamma-path,commonsrc,os/posix/vm)"; \ |
1972 | 213 echo; \ |
214 echo "Src_Dirs_I = \\"; \ | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
215 echo "$(call gamma-path,altsrc,share/vm/prims) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
216 echo "$(call gamma-path,commonsrc,share/vm/prims) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
217 echo "$(call gamma-path,altsrc,share/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
218 echo "$(call gamma-path,commonsrc,share/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
219 echo "$(call gamma-path,altsrc,cpu/$(ARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
220 echo "$(call gamma-path,commonsrc,cpu/$(ARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
221 echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(ARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
222 echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(ARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
223 echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
224 echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
225 echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
226 echo "$(call gamma-path,commonsrc,os/posix/vm)"; \ |
0 | 227 [ -n "$(CFLAGS_BROWSE)" ] && \ |
228 echo && echo "CFLAGS_BROWSE = $(CFLAGS_BROWSE)"; \ | |
3954 | 229 [ -n "$(OBJCOPY)" ] && \ |
230 echo && echo "OBJCOPY = $(OBJCOPY)"; \ | |
231 [ -n "$(STRIP_POLICY)" ] && \ | |
232 echo && echo "STRIP_POLICY = $(STRIP_POLICY)"; \ | |
0 | 233 [ -n "$(HOTSPOT_EXTRA_SYSDEFS)" ] && \ |
234 echo && \ | |
235 echo "HOTSPOT_EXTRA_SYSDEFS\$$(HOTSPOT_EXTRA_SYSDEFS) = $(HOTSPOT_EXTRA_SYSDEFS)" && \ | |
236 echo "SYSDEFS += \$$(HOTSPOT_EXTRA_SYSDEFS)"; \ | |
237 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
238 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(VARIANT).make"; \ |
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
239 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(COMPILER).make"; \ |
0 | 240 ) > $@ |
241 | |
242 flags_vm.make: $(BUILDTREE_MAKE) ../shared_dirs.lst | |
243 @echo Creating $@ ... | |
244 $(QUIETLY) ( \ | |
245 $(BUILDTREE_COMMENT); \ | |
246 echo; \ | |
247 [ "$(TARGET)" = profiled ] && \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
248 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/optimized.make"; \ |
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
249 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(TARGET).make"; \ |
0 | 250 ) > $@ |
251 | |
252 ../shared_dirs.lst: $(BUILDTREE_MAKE) $(GAMMADIR)/src/share/vm | |
253 @echo Creating directory list $@ | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
254 $(QUIETLY) if [ -d $(HS_ALT_SRC)/share/vm ]; then \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
255 find $(HS_ALT_SRC)/share/vm/* -prune \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
256 -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
257 \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; > $@; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
258 fi; |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
259 $(QUIETLY) find $(HS_COMMON_SRC)/share/vm/* -prune \ |
0 | 260 -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \ |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2094
diff
changeset
|
261 \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; >> $@ |
0 | 262 |
263 Makefile: $(BUILDTREE_MAKE) | |
264 @echo Creating $@ ... | |
265 $(QUIETLY) ( \ | |
266 $(BUILDTREE_COMMENT); \ | |
267 echo; \ | |
268 echo include flags.make; \ | |
269 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
270 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/top.make"; \ |
0 | 271 ) > $@ |
272 | |
273 vm.make: $(BUILDTREE_MAKE) | |
274 @echo Creating $@ ... | |
275 $(QUIETLY) ( \ | |
276 $(BUILDTREE_COMMENT); \ | |
277 echo; \ | |
278 echo include flags.make; \ | |
279 echo include flags_vm.make; \ | |
280 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
281 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
0 | 282 ) > $@ |
283 | |
284 adlc.make: $(BUILDTREE_MAKE) | |
285 @echo Creating $@ ... | |
286 $(QUIETLY) ( \ | |
287 $(BUILDTREE_COMMENT); \ | |
288 echo; \ | |
289 echo include flags.make; \ | |
290 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
291 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
0 | 292 ) > $@ |
293 | |
294 jvmti.make: $(BUILDTREE_MAKE) | |
295 @echo Creating $@ ... | |
296 $(QUIETLY) ( \ | |
297 $(BUILDTREE_COMMENT); \ | |
298 echo; \ | |
299 echo include flags.make; \ | |
300 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
301 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
0 | 302 ) > $@ |
303 | |
304 sa.make: $(BUILDTREE_MAKE) | |
305 @echo Creating $@ ... | |
306 $(QUIETLY) ( \ | |
307 $(BUILDTREE_COMMENT); \ | |
308 echo; \ | |
309 echo include flags.make; \ | |
310 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
311 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
0 | 312 ) > $@ |
313 | |
314 env.ksh: $(BUILDTREE_MAKE) | |
315 @echo Creating $@ ... | |
316 $(QUIETLY) ( \ | |
317 $(BUILDTREE_COMMENT); \ | |
318 [ -n "$$JAVA_HOME" ] && { echo ": \$${JAVA_HOME:=$${JAVA_HOME}}"; }; \ | |
319 { \ | |
320 echo "LD_LIBRARY_PATH=.:$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}\$${JAVA_HOME}/jre/lib/${LIBARCH}/native_threads:\$${JAVA_HOME}/jre/lib/${LIBARCH}:${GCC_LIB}"; \ | |
321 echo "unset LD_LIBRARY_PATH_32"; \ | |
322 echo "unset LD_LIBRARY_PATH_64"; \ | |
323 echo "CLASSPATH=$${CLASSPATH:+$$CLASSPATH:}.:\$${JAVA_HOME}/jre/lib/rt.jar:\$${JAVA_HOME}/jre/lib/i18n.jar"; \ | |
324 } | sed s:$${JAVA_HOME:--------}:\$${JAVA_HOME}:g; \ | |
325 echo "HOTSPOT_BUILD_USER=\"$${LOGNAME:-$$USER} in `basename $(GAMMADIR)`\""; \ | |
326 echo "export JAVA_HOME LD_LIBRARY_PATH CLASSPATH HOTSPOT_BUILD_USER"; \ | |
327 ) > $@ | |
328 | |
329 env.csh: env.ksh | |
330 @echo Creating $@ ... | |
331 $(QUIETLY) ( \ | |
332 $(BUILDTREE_COMMENT); \ | |
333 [ -n "$$JAVA_HOME" ] && \ | |
334 { echo "if (! \$$?JAVA_HOME) setenv JAVA_HOME \"$$JAVA_HOME\""; }; \ | |
335 sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=/setenv \1 /p' $?; \ | |
336 ) > $@ | |
337 | |
2027
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
338 jdkpath.sh: $(BUILDTREE_MAKE) |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
339 @echo Creating $@ ... |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
340 $(QUIETLY) ( \ |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
341 $(BUILDTREE_COMMENT); \ |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
342 echo "JDK=${JAVA_HOME}"; \ |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
343 ) > $@ |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
344 |
0 | 345 .dbxrc: $(BUILDTREE_MAKE) |
346 @echo Creating $@ ... | |
347 $(QUIETLY) ( \ | |
348 echo "echo '# Loading $(PLATFORM_DIR)/$(TARGET)/.dbxrc'"; \ | |
349 echo "if [ -f \"\$${HOTSPOT_DBXWARE}\" ]"; \ | |
350 echo "then"; \ | |
351 echo " source \"\$${HOTSPOT_DBXWARE}\""; \ | |
352 echo "elif [ -f \"\$$HOME/.dbxrc\" ]"; \ | |
353 echo "then"; \ | |
354 echo " source \"\$$HOME/.dbxrc\""; \ | |
355 echo "fi"; \ | |
356 ) > $@ | |
357 | |
358 # Skip the test for product builds (which only work when installed in a JDK), to | |
359 # avoid exiting with an error and causing make to halt. | |
360 NO_TEST_MSG = \ | |
361 echo "$@: skipping the test--this build must be tested in a JDK." | |
362 | |
363 NO_JAVA_HOME_MSG = \ | |
364 echo "JAVA_HOME must be set to run this test." | |
365 | |
366 DATA_MODE = $(DATA_MODE/$(BUILDARCH)) | |
367 JAVA_FLAG = $(JAVA_FLAG/$(DATA_MODE)) | |
368 | |
369 DATA_MODE/i486 = 32 | |
370 DATA_MODE/sparc = 32 | |
371 DATA_MODE/sparcv9 = 64 | |
372 DATA_MODE/amd64 = 64 | |
373 DATA_MODE/ia64 = 64 | |
374 | |
375 # This bit is needed to enable local rebuilds. | |
376 # Unless the makefile itself sets LP64, any environmental | |
377 # setting of LP64 will interfere with the build. | |
378 LP64_SETTING/32 = LP64 = \#empty | |
379 LP64_SETTING/64 = LP64 = 1 | |
380 | |
381 JAVA_FLAG/32 = -d32 | |
382 JAVA_FLAG/64 = -d64 | |
383 | |
384 WRONG_DATA_MODE_MSG = \ | |
385 echo "JAVA_HOME must point to $(DATA_MODE)bit JDK." | |
386 | |
232
551f4309f476
6695777: Queens.class should be built from source, not put in source repo
ohair
parents:
91
diff
changeset
|
387 test_gamma: $(BUILDTREE_MAKE) $(GAMMADIR)/make/test/Queens.java |
0 | 388 @echo Creating $@ ... |
389 $(QUIETLY) ( \ | |
390 echo '#!/bin/ksh'; \ | |
391 $(BUILDTREE_COMMENT); \ | |
392 echo '. ./env.ksh'; \ | |
393 echo "if [ -z \$$JAVA_HOME ]; then { $(NO_JAVA_HOME_MSG); exit 0; }; fi"; \ | |
394 echo "if ! \$${JAVA_HOME}/bin/java $(JAVA_FLAG) -fullversion 2>&1 > /dev/null"; \ | |
395 echo "then"; \ | |
396 echo " $(WRONG_DATA_MODE_MSG); exit 0;"; \ | |
397 echo "fi"; \ | |
232
551f4309f476
6695777: Queens.class should be built from source, not put in source repo
ohair
parents:
91
diff
changeset
|
398 echo "rm -f Queens.class"; \ |
551f4309f476
6695777: Queens.class should be built from source, not put in source repo
ohair
parents:
91
diff
changeset
|
399 echo "\$${JAVA_HOME}/bin/javac -d . $(GAMMADIR)/make/test/Queens.java"; \ |
0 | 400 echo '[ -f gamma_g ] && { gamma=gamma_g; }'; \ |
401 echo './$${gamma:-gamma} $(TESTFLAGS) Queens < /dev/null'; \ | |
402 ) > $@ | |
403 $(QUIETLY) chmod +x $@ | |
404 | |
405 FORCE: | |
406 | |
407 .PHONY: all FORCE |