Defs-java.gmk revision 2101
553N/A# Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved. 0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A# This code is free software; you can redistribute it and/or modify it 0N/A# under the terms of the GNU General Public License version 2 only, as 0N/A# published by the Free Software Foundation. Sun designates this 0N/A# particular file as subject to the "Classpath" exception as provided 0N/A# by Sun in the LICENSE file that accompanied this code. 0N/A# This code is distributed in the hope that it will be useful, but WITHOUT 0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A# version 2 for more details (a copy is included in the LICENSE file that 0N/A# accompanied this code). 0N/A# You should have received a copy of the GNU General Public License version 0N/A# 2 along with this work; if not, write to the Free Software Foundation, 553N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 553N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 0N/A# CA 95054 USA or visit www.sun.com if you need additional information or 0N/A# have any questions. # Common java/javac/jdk variables used by all the Java makefiles. # This file should not contain rules. # WARNING: This file is shared with other workspaces. # So when it includes other files, it must use JDK_TOPDIR. # Memory related -J flags that all uses of java tools should use. # Special flags for javac on ia64 to work around a VM problem with # bad code generation during inlining (what version had this problem?): # Suspect this may not be needed anymore. # All java tools (javac, javah, and javadoc) run faster with certain java # options, this macro should be used with all these tools. # In particular, the client VM makes these tools run faster when # Options for hotspot to turn off printing of options with fastdebug version # 64-bit builds require a larger thread stack size. # The jar -J options are special, must be added at the end of the command line # JAVA_TOOLS_DIR is the default location to find Java tools to run, if # langtools is not available. # This should be the latest promoted JDK javac. # Invoking the Java compiler. In leaf makefiles, choose as follows: # -- Use JAVAC if you want to take full control of what options get # -- Use JAVAC_CMD if you want to take the defaults given to you. # Add the class version we want # Needed for javadoc to ensure it builds documentation # against the newly built classes # Needed for JAVADOC and BOOT_JAVACFLAGS # If no explicit tools, use boot tools (add VM flags in this case) # Override of what javac to use (see deploy workspace) # The bootstrap java compiler (defined as the javac in the ALT_BOOTDIR jdk). # Will be used to compile java code used to build the jdk, e.g. class files # created by this compiler will NOT become part of this built jdk, but just # used to build this jdk, e.g. run with the java in the ALT_BOOTDIR jdk. # The javac supplied with the LANGTOOLS_DIST should be used to build the # classes that will be put into the built jdk. But note that this javac # will use the ALT_BOOTDIR java runtime. Any classes created by the # LANGTOOLS_DIST javac should not be run during this jdk build and indeed # may not even run with the ALT_BOOTDIR jdk because they may be a newer # class file version that the ALT_BOOTDIR jdk doesn't understand. # The important observation here is that the built jdk is NOT run during # the build. If the built jdk needs to be verified that it can build this # same jdk, then it should be supplied to the build process as the ALT_BOOTDIR # jdk, and this resulting built jdk should be compared to the first one. # (They should be the same). Re-using this built jdk as the ALT_BOOTDIR # jdk will be the only way and the recommeneded way to verify the built jdk # The javac options supplied to the boot javac is limited. This compiler # should only be used to build the 'make/tools' sources, which are not # class files that end up in the classes directory. # Various tools we need to run (FIXUP: Are these the right ones?)