jdk/make/common/shared/Defs-java.gmk

Print this page




 148   JAVADOC_JAR = $(LANGTOOLS_DIST)/bootstrap/lib/javadoc.jar
 149   DOCLETS_JAR = $(LANGTOOLS_DIST)/bootstrap/lib/doclets.jar
 150   JAVAC_CMD   = $(BOOT_JAVA_CMD) \
 151                 "-Xbootclasspath/p:$(JAVAC_JAR)" \
 152                 -jar $(JAVAC_JAR) $(JAVACFLAGS)
 153   JAVAH_CMD   = $(BOOT_JAVA_CMD) \
 154                 "-Xbootclasspath/p:$(JAVAH_JAR)$(CLASSPATH_SEPARATOR)$(JAVADOC_JAR)$(CLASSPATH_SEPARATOR)$(JAVAC_JAR)"  \
 155                 -jar $(JAVAH_JAR) $(JAVAHFLAGS)
 156   JAVADOC_CMD = $(BOOT_JAVA_CMD) \
 157                 "-Xbootclasspath/p:$(JAVADOC_JAR)$(CLASSPATH_SEPARATOR)$(JAVAC_JAR)$(CLASSPATH_SEPARATOR)$(DOCLETS_JAR)" \
 158                 -jar $(JAVADOC_JAR)
 159 else
 160   # If no explicit tools, use boot tools (add VM flags in this case)
 161   JAVAC_CMD     = $(JAVA_TOOLS_DIR)/javac $(JAVAC_JVM_FLAGS) \
 162                   $(JAVACFLAGS)
 163   JAVAH_CMD     = $(JAVA_TOOLS_DIR)/javah \
 164                   $(JAVAHFLAGS)
 165   JAVADOC_CMD   = $(JAVA_TOOLS_DIR)/javadoc $(JAVA_TOOLS_FLAGS:%=-J%)
 166 endif
 167 
 168 #always use the bootstrap javah until bug-ID 6889255 is fixed.  These
 169 #five lines should be removed as part of that fix:
 170 JAVAH_CMD     = $(JAVA_TOOLS_DIR)/javah \
 171                   $(JAVAHFLAGS)
 172 
 173 # Override of what javac to use (see deploy workspace)
 174 ifdef JAVAC
 175   JAVAC_CMD     = $(JAVAC)
 176 endif
 177 
 178 #
 179 # The bootstrap java compiler (defined as the javac in the ALT_BOOTDIR jdk).
 180 #   Will be used to compile java code used to build the jdk, e.g. class files
 181 #   created by this compiler will NOT become part of this built jdk, but just
 182 #   used to build this jdk, e.g. run with the java in the ALT_BOOTDIR jdk.
 183 #
 184 # The javac supplied with the LANGTOOLS_DIST should be used to build the
 185 #   classes that will be put into the built jdk. But note that this javac
 186 #   will use the ALT_BOOTDIR java runtime. Any classes created by the
 187 #   LANGTOOLS_DIST javac should not be run during this jdk build and indeed
 188 #   may not even run with the ALT_BOOTDIR jdk because they may be a newer
 189 #   class file version that the ALT_BOOTDIR jdk doesn't understand.
 190 #
 191 # The important observation here is that the built jdk is NOT run during
 192 #   the build. If the built jdk needs to be verified that it can build this




 148   JAVADOC_JAR = $(LANGTOOLS_DIST)/bootstrap/lib/javadoc.jar
 149   DOCLETS_JAR = $(LANGTOOLS_DIST)/bootstrap/lib/doclets.jar
 150   JAVAC_CMD   = $(BOOT_JAVA_CMD) \
 151                 "-Xbootclasspath/p:$(JAVAC_JAR)" \
 152                 -jar $(JAVAC_JAR) $(JAVACFLAGS)
 153   JAVAH_CMD   = $(BOOT_JAVA_CMD) \
 154                 "-Xbootclasspath/p:$(JAVAH_JAR)$(CLASSPATH_SEPARATOR)$(JAVADOC_JAR)$(CLASSPATH_SEPARATOR)$(JAVAC_JAR)"  \
 155                 -jar $(JAVAH_JAR) $(JAVAHFLAGS)
 156   JAVADOC_CMD = $(BOOT_JAVA_CMD) \
 157                 "-Xbootclasspath/p:$(JAVADOC_JAR)$(CLASSPATH_SEPARATOR)$(JAVAC_JAR)$(CLASSPATH_SEPARATOR)$(DOCLETS_JAR)" \
 158                 -jar $(JAVADOC_JAR)
 159 else
 160   # If no explicit tools, use boot tools (add VM flags in this case)
 161   JAVAC_CMD     = $(JAVA_TOOLS_DIR)/javac $(JAVAC_JVM_FLAGS) \
 162                   $(JAVACFLAGS)
 163   JAVAH_CMD     = $(JAVA_TOOLS_DIR)/javah \
 164                   $(JAVAHFLAGS)
 165   JAVADOC_CMD   = $(JAVA_TOOLS_DIR)/javadoc $(JAVA_TOOLS_FLAGS:%=-J%)
 166 endif
 167 





 168 # Override of what javac to use (see deploy workspace)
 169 ifdef JAVAC
 170   JAVAC_CMD     = $(JAVAC)
 171 endif
 172 
 173 #
 174 # The bootstrap java compiler (defined as the javac in the ALT_BOOTDIR jdk).
 175 #   Will be used to compile java code used to build the jdk, e.g. class files
 176 #   created by this compiler will NOT become part of this built jdk, but just
 177 #   used to build this jdk, e.g. run with the java in the ALT_BOOTDIR jdk.
 178 #
 179 # The javac supplied with the LANGTOOLS_DIST should be used to build the
 180 #   classes that will be put into the built jdk. But note that this javac
 181 #   will use the ALT_BOOTDIR java runtime. Any classes created by the
 182 #   LANGTOOLS_DIST javac should not be run during this jdk build and indeed
 183 #   may not even run with the ALT_BOOTDIR jdk because they may be a newer
 184 #   class file version that the ALT_BOOTDIR jdk doesn't understand.
 185 #
 186 # The important observation here is that the built jdk is NOT run during
 187 #   the build. If the built jdk needs to be verified that it can build this