1 #
2 # Copyright (c) 2005, 2013, 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 #
31 #
32 # This makefile uses the default settings for where to find compilers and
33 # tools, and obeys the ALT_* variable settings used by the other JDK
34 # workspaces.
35 #
36
37 # Expected/optional make variables defined on make command line:
38 # LP64=1 or ARCH_DATA_MODEL=64 for 64bit build
39 #
40 # Expected/optional make variables or environment variables:
41 # ALT_SLASH_JAVA Location of /java or J:
42 # ALT_BOOTDIR Previous JDK home directory for javac compiler
43 # ALT_OUTPUTDIR Output directory to use for hotspot build
44 # ALT_EXPORT_PATH Directory to export hotspot build to
45 # ALT_JDK_IMPORT_PATH Current JDK build (only for create_jdk rules)
46 # ALT_JDK_TARGET_IMPORT_PATH Current JDK build when cross-compiling
47 # ALT_BUILD_WIN_SA Building SA on Windows is disabled by default.
48 # Set ALT_BUILD_WIN_SA=1 to enable building SA on
49 # Windows.
50 # Version strings and numbers:
51 # JDK_VERSION Current JDK version (e.g. 1.6.0)
52 # PREVIOUS_JDK_VERSION Previous (bootdir) JDK version (e.g. 1.5.0)
53 # FULL_VERSION Full version string to use (e.g. "1.6.0-ea-b42")
54 #
55 # Version strings and numbers especially needed on Windows:
56 # COOKED_JDK_UPDATE_VERSION Just the update release number (e.g. 02)
57 # COOKED_BUILD_NUMBER Just the build number (e.g. 42)
58 # JDK_MKTG_VERSION Marketing JDK version (e.g. 6.0)
59 # JDK_MAJOR_VERSION Major number for version (e.g. 1) always 1?
60 # JDK_MINOR_VERSION Minor number for version (e.g. 6)
61 # JDK_MICRO_VERSION Micro number for version (e.g. 0)
62 #
63
64 # Default is build both product fastdebug and create export area
65
66 # Allow to build HotSpot in local directory from sources specified by GAMMADIR.
67 # After make/defs.make GAMMADIR is defined.
68 ifdef GAMMADIR
69 ifndef ALT_OUTPUTDIR
70 ALT_OUTPUTDIR := $(shell pwd)
71 endif
72 include $(GAMMADIR)/make/defs.make
73 else
74 include defs.make
75 endif
76
77 include $(GAMMADIR)/make/altsrc.make
78
79 -include $(HS_ALT_MAKE)/Makefile.make
80
81 ifneq ($(ALT_OUTPUTDIR),)
836 notes_help:
837 @$(ECHO) \
838 "--- Notes --- "
839 @$(ECHO) \
840 "- JDK_IMPORT_PATH must refer to a compatible build, not all past promoted"
841 @$(ECHO) \
842 " builds or previous release JDK builds will work."
843 @$(ECHO) \
844 "- The fastest builds have been when the workspace and the BOOTDIR are on"
845 @$(ECHO) \
846 " local disk."
847
848 examples_help:
849 @$(ECHO) \
850 "--- Examples --- "
851 @$(ECHO) \
852 " $(MAKE) all"
853 @$(ECHO) \
854 " $(MAKE) world"
855 @$(ECHO) \
856 " $(MAKE) ALT_BOOTDIR=/opt/java/jdk$(PREVIOUS_JDK_VERSION)"
857 @$(ECHO) \
858 " $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk$(JDK_VERSION)"
859
860 # Universal build support
861 ifeq ($(OS_VENDOR), Darwin)
862 ifeq ($(MACOSX_UNIVERSAL),true)
863 include $(GAMMADIR)/make/$(OSNAME)/makefiles/universal.gmk
864 endif
865 endif
866
867 # Compatibility for transition to new naming
868 warn_jvmg_deprecated:
869 echo "Warning: The jvmg target has been replaced with debug"
870 echo "Warning: Please update your usage"
871
872 jvmg: warn_jvmg_deprecated debug
873
874 jvmg1: warn_jvmg_deprecated debug1
875
876 jvmgminimal1: warn_jvmg_deprecated debugminimal1
877
878 jvmgcore: warn_jvmg_deprecated debugcore
|
1 #
2 # Copyright (c) 2005, 2015, 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 #
31 #
32 # This makefile uses the default settings for where to find compilers and
33 # tools, and obeys the ALT_* variable settings used by the other JDK
34 # workspaces.
35 #
36
37 # Expected/optional make variables defined on make command line:
38 # LP64=1 or ARCH_DATA_MODEL=64 for 64bit build
39 #
40 # Expected/optional make variables or environment variables:
41 # ALT_SLASH_JAVA Location of /java or J:
42 # ALT_BOOTDIR Previous JDK home directory for javac compiler
43 # ALT_OUTPUTDIR Output directory to use for hotspot build
44 # ALT_EXPORT_PATH Directory to export hotspot build to
45 # ALT_JDK_IMPORT_PATH Current JDK build (only for create_jdk rules)
46 # ALT_JDK_TARGET_IMPORT_PATH Current JDK build when cross-compiling
47 # ALT_BUILD_WIN_SA Building SA on Windows is disabled by default.
48 # Set ALT_BUILD_WIN_SA=1 to enable building SA on
49 # Windows.
50 # Version strings and numbers:
51 # VERSION_SHORT Current JDK version (e.g. 9.0.0)
52 # JDK_PREVIOUS_VERSION Previous (bootdir) JDK version (e.g. 1.5.0) (Only needed
53 # to facilitate standalone build.)
54 # VERSION_STRING Full version string to use (e.g. "9.0.0-ea-b42")
55 # VERSION_MAJOR Major number for version (e.g. 9)
56 # VERSION_MINOR Minor number for version (e.g. 0)
57 # VERSION_SECURITY Security number for version (e.g. 0)
58 #
59
60 # Default is build both product fastdebug and create export area
61
62 # Allow to build HotSpot in local directory from sources specified by GAMMADIR.
63 # After make/defs.make GAMMADIR is defined.
64 ifdef GAMMADIR
65 ifndef ALT_OUTPUTDIR
66 ALT_OUTPUTDIR := $(shell pwd)
67 endif
68 include $(GAMMADIR)/make/defs.make
69 else
70 include defs.make
71 endif
72
73 include $(GAMMADIR)/make/altsrc.make
74
75 -include $(HS_ALT_MAKE)/Makefile.make
76
77 ifneq ($(ALT_OUTPUTDIR),)
832 notes_help:
833 @$(ECHO) \
834 "--- Notes --- "
835 @$(ECHO) \
836 "- JDK_IMPORT_PATH must refer to a compatible build, not all past promoted"
837 @$(ECHO) \
838 " builds or previous release JDK builds will work."
839 @$(ECHO) \
840 "- The fastest builds have been when the workspace and the BOOTDIR are on"
841 @$(ECHO) \
842 " local disk."
843
844 examples_help:
845 @$(ECHO) \
846 "--- Examples --- "
847 @$(ECHO) \
848 " $(MAKE) all"
849 @$(ECHO) \
850 " $(MAKE) world"
851 @$(ECHO) \
852 " $(MAKE) ALT_BOOTDIR=/opt/java/jdk$(JDK_PREVIOUS_VERSION)"
853 @$(ECHO) \
854 " $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk$(VERSION_STRING)"
855
856 # Universal build support
857 ifeq ($(OS_VENDOR), Darwin)
858 ifeq ($(MACOSX_UNIVERSAL),true)
859 include $(GAMMADIR)/make/$(OSNAME)/makefiles/universal.gmk
860 endif
861 endif
862
863 # Compatibility for transition to new naming
864 warn_jvmg_deprecated:
865 echo "Warning: The jvmg target has been replaced with debug"
866 echo "Warning: Please update your usage"
867
868 jvmg: warn_jvmg_deprecated debug
869
870 jvmg1: warn_jvmg_deprecated debug1
871
872 jvmgminimal1: warn_jvmg_deprecated debugminimal1
873
874 jvmgcore: warn_jvmg_deprecated debugcore
|