1 #
2 # Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
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.
22 #
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
49 # adlc.make -
50 # trace.make - generate tracing event and type definitions
51 # jvmti.make - generate JVMTI bindings from the spec (JSR-163)
52 # sa.make - generate SA jar file and natives
53 # env.[ck]sh - environment settings
54 # test_gamma - script to run the Queens program
55 #
56 # The makefiles are split this way so that "make foo" will run faster by not
57 # having to read the dependency files for the vm.
58
59 -include $(SPEC)
60 include $(GAMMADIR)/make/scm.make
61 include $(GAMMADIR)/make/altsrc.make
62
63
64 # 'gmake MAKE_VERBOSE=y' or 'gmake QUIETLY=' gives all the gory details.
65 QUIETLY$(MAKE_VERBOSE) = @
66
67 # For now, until the compiler is less wobbly:
68 TESTFLAGS = -Xbatch -showversion
69
70 ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true)
71 PLATFORM_FILE = $(shell dirname $(shell dirname $(shell pwd)))/platform_zero
72 else
73 ifdef USE_SUNCC
74 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH).suncc
75 else
76 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH)
77 endif
78 endif
79
191 flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
192 @echo Creating $@ ...
193 $(QUIETLY) ( \
194 $(BUILDTREE_COMMENT); \
195 echo; \
196 echo "Platform_file = $(PLATFORM_FILE)" | sed 's|$(GAMMADIR)|$$(GAMMADIR)|'; \
197 sed -n '/=/s/^ */Platform_/p' < $(PLATFORM_FILE); \
198 echo; \
199 echo "GAMMADIR = $(GAMMADIR)"; \
200 echo "SYSDEFS = \$$(Platform_sysdefs)"; \
201 echo "SRCARCH = $(SRCARCH)"; \
202 echo "BUILDARCH = $(BUILDARCH)"; \
203 echo "LIBARCH = $(LIBARCH)"; \
204 echo "TARGET = $(TARGET)"; \
205 echo "HS_BUILD_VER = $(HS_BUILD_VER)"; \
206 echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \
207 echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \
208 echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \
209 echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \
210 echo "OPENJDK = $(OPENJDK)"; \
211 echo; \
212 echo "# Used for platform dispatching"; \
213 echo "TARGET_DEFINES = -DTARGET_OS_FAMILY_\$$(Platform_os_family)"; \
214 echo "TARGET_DEFINES += -DTARGET_ARCH_\$$(Platform_arch)"; \
215 echo "TARGET_DEFINES += -DTARGET_ARCH_MODEL_\$$(Platform_arch_model)"; \
216 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_\$$(Platform_os_arch)"; \
217 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_MODEL_\$$(Platform_os_arch_model)"; \
218 echo "TARGET_DEFINES += -DTARGET_COMPILER_\$$(Platform_compiler)"; \
219 echo "CFLAGS += \$$(TARGET_DEFINES)"; \
220 echo; \
221 echo "Src_Dirs_V = \\"; \
222 sed 's/$$/ \\/;s|$(GAMMADIR)|$$(GAMMADIR)|' ../shared_dirs.lst; \
223 echo "$(call gamma-path,altsrc,cpu/$(SRCARCH)/vm) \\"; \
224 echo "$(call gamma-path,commonsrc,cpu/$(SRCARCH)/vm) \\"; \
225 echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \
226 echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \
227 echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \
228 echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \
229 echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \
230 echo "$(call gamma-path,commonsrc,os/posix/vm)"; \
|
1 #
2 # Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
3 # Copyright (c) 2013 Red Hat, Inc.
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 #
6 # This code is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License version 2 only, as
8 # published by the Free Software Foundation.
9 #
10 # This code is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 # version 2 for more details (a copy is included in the LICENSE file that
14 # accompanied this code).
15 #
16 # You should have received a copy of the GNU General Public License version
17 # 2 along with this work; if not, write to the Free Software Foundation,
18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 #
20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 # or visit www.oracle.com if you need additional information or have any
22 # questions.
23 #
40 # HOTSPOT_RELEASE_VERSION - <major>.<minor>-b<nn> (11.0-b07)
41 # HOTSPOT_BUILD_VERSION - internal, internal-$(USER_RELEASE_SUFFIX) or empty
42 # JRE_RELEASE_VERSION - <major>.<minor>.<micro> (1.7.0)
43 #
44 # Builds the directory trees with makefiles plus some convenience files in
45 # each directory:
46 #
47 # Makefile - for "make foo"
48 # flags.make - with macro settings
49 # vm.make - to support making "$(MAKE) -v vm.make" in makefiles
50 # adlc.make -
51 # trace.make - generate tracing event and type definitions
52 # jvmti.make - generate JVMTI bindings from the spec (JSR-163)
53 # sa.make - generate SA jar file and natives
54 # env.[ck]sh - environment settings
55 # test_gamma - script to run the Queens program
56 #
57 # The makefiles are split this way so that "make foo" will run faster by not
58 # having to read the dependency files for the vm.
59
60 include $(GAMMADIR)/make/defs.make
61 include $(GAMMADIR)/make/scm.make
62 include $(GAMMADIR)/make/altsrc.make
63
64
65 # 'gmake MAKE_VERBOSE=y' or 'gmake QUIETLY=' gives all the gory details.
66 QUIETLY$(MAKE_VERBOSE) = @
67
68 # For now, until the compiler is less wobbly:
69 TESTFLAGS = -Xbatch -showversion
70
71 ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true)
72 PLATFORM_FILE = $(shell dirname $(shell dirname $(shell pwd)))/platform_zero
73 else
74 ifdef USE_SUNCC
75 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH).suncc
76 else
77 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH)
78 endif
79 endif
80
192 flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
193 @echo Creating $@ ...
194 $(QUIETLY) ( \
195 $(BUILDTREE_COMMENT); \
196 echo; \
197 echo "Platform_file = $(PLATFORM_FILE)" | sed 's|$(GAMMADIR)|$$(GAMMADIR)|'; \
198 sed -n '/=/s/^ */Platform_/p' < $(PLATFORM_FILE); \
199 echo; \
200 echo "GAMMADIR = $(GAMMADIR)"; \
201 echo "SYSDEFS = \$$(Platform_sysdefs)"; \
202 echo "SRCARCH = $(SRCARCH)"; \
203 echo "BUILDARCH = $(BUILDARCH)"; \
204 echo "LIBARCH = $(LIBARCH)"; \
205 echo "TARGET = $(TARGET)"; \
206 echo "HS_BUILD_VER = $(HS_BUILD_VER)"; \
207 echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \
208 echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \
209 echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \
210 echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \
211 echo "OPENJDK = $(OPENJDK)"; \
212 echo "ZERO_BUILD = $(ZERO_BUILD)"; \
213 echo; \
214 echo "# Used for platform dispatching"; \
215 echo "TARGET_DEFINES = -DTARGET_OS_FAMILY_\$$(Platform_os_family)"; \
216 echo "TARGET_DEFINES += -DTARGET_ARCH_\$$(Platform_arch)"; \
217 echo "TARGET_DEFINES += -DTARGET_ARCH_MODEL_\$$(Platform_arch_model)"; \
218 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_\$$(Platform_os_arch)"; \
219 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_MODEL_\$$(Platform_os_arch_model)"; \
220 echo "TARGET_DEFINES += -DTARGET_COMPILER_\$$(Platform_compiler)"; \
221 echo "CFLAGS += \$$(TARGET_DEFINES)"; \
222 echo; \
223 echo "Src_Dirs_V = \\"; \
224 sed 's/$$/ \\/;s|$(GAMMADIR)|$$(GAMMADIR)|' ../shared_dirs.lst; \
225 echo "$(call gamma-path,altsrc,cpu/$(SRCARCH)/vm) \\"; \
226 echo "$(call gamma-path,commonsrc,cpu/$(SRCARCH)/vm) \\"; \
227 echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \
228 echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \
229 echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \
230 echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \
231 echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \
232 echo "$(call gamma-path,commonsrc,os/posix/vm)"; \
|