Thu, 01 Aug 2013 17:24:26 -0700
Merge
ohair@478 | 1 | # |
ohair@478 | 2 | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
ohair@478 | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
ohair@478 | 4 | # |
ohair@478 | 5 | # This code is free software; you can redistribute it and/or modify it |
ohair@478 | 6 | # under the terms of the GNU General Public License version 2 only, as |
ohair@478 | 7 | # published by the Free Software Foundation. Oracle designates this |
ohair@478 | 8 | # particular file as subject to the "Classpath" exception as provided |
ohair@478 | 9 | # by Oracle in the LICENSE file that accompanied this code. |
ohair@478 | 10 | # |
ohair@478 | 11 | # This code is distributed in the hope that it will be useful, but WITHOUT |
ohair@478 | 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
ohair@478 | 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
ohair@478 | 14 | # version 2 for more details (a copy is included in the LICENSE file that |
ohair@478 | 15 | # accompanied this code). |
ohair@478 | 16 | # |
ohair@478 | 17 | # You should have received a copy of the GNU General Public License version |
ohair@478 | 18 | # 2 along with this work; if not, write to the Free Software Foundation, |
ohair@478 | 19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
ohair@478 | 20 | # |
ohair@478 | 21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@478 | 22 | # or visit www.oracle.com if you need additional information or have any |
ohair@478 | 23 | # questions. |
ohair@478 | 24 | # |
ohair@478 | 25 | |
ohair@478 | 26 | # Support for building boot cycle builds |
ohair@478 | 27 | |
ohair@478 | 28 | # First include the real base spec.gmk file |
ohair@478 | 29 | include @SPEC@ |
ohair@478 | 30 | |
ohair@478 | 31 | # Check that the user did not try to specify a different java to use for compiling. |
erikj@668 | 32 | # On windows we need to account for fixpath being first word. |
erikj@668 | 33 | ifeq ($(firstword $(JAVA)),$(FIXPATH)) |
erikj@668 | 34 | JAVA_EXEC_POS=2 |
erikj@668 | 35 | else |
erikj@668 | 36 | JAVA_EXEC_POS=1 |
ohair@478 | 37 | endif |
erikj@668 | 38 | ifneq ($(word $(JAVA_EXEC_POS),$(SJAVAC_SERVER_JAVA)),$(word $(JAVA_EXEC_POS),$(JAVA))) |
erikj@668 | 39 | $(error Bootcycle builds are not possible if --with-sjavac-server-java is specified) |
erikj@668 | 40 | endif |
erikj@668 | 41 | |
ohair@478 | 42 | |
ohair@478 | 43 | # Override specific values to do a boot cycle build |
ohair@478 | 44 | |
ohair@478 | 45 | # The bootcycle build has a different output directory |
ohair@478 | 46 | BUILD_OUTPUT:=@BUILD_OUTPUT@/bootcycle-build |
ohair@478 | 47 | |
ohair@478 | 48 | # Use a different Boot JDK |
erikj@668 | 49 | OLD_BOOT_JDK:=$(BOOT_JDK) |
ohair@478 | 50 | BOOT_JDK:=@BUILD_OUTPUT@/images/j2sdk-image |
ohair@478 | 51 | BOOT_RTJAR:=@BUILD_OUTPUT@/images/j2sdk-image/jre/lib/rt.jar |
erikj@668 | 52 | |
erikj@668 | 53 | SJAVAC_SERVER_JAVA:=$(subst $(OLD_BOOT_JDK),$(BOOT_JDK),$(SJAVAC_SERVER_JAVA)) |