make/common/shared/Defs-java.gmk

Print this page




 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
 188 #   same jdk, then it should be supplied to the build process as the ALT_BOOTDIR
 189 #   jdk, and this resulting built jdk should be compared to the first one.
 190 #   (They should be the same). Re-using this built jdk as the ALT_BOOTDIR
 191 #   jdk will be the only way and the recommeneded way to verify the built jdk
 192 #   can bootstrap itself.
 193 #
 194 
 195 # The javac options supplied to the boot javac is limited. This compiler
 196 #   should only be used to build the 'make/tools' sources, which are not
 197 #   class files that end up in the classes directory.
 198 ifeq ($(JAVAC_MAX_WARNINGS), true)
 199   BOOT_JAVACFLAGS  += -Xlint:all
 200 endif
 201 ifeq ($(JAVAC_WARNINGS_FATAL), true)
 202   BOOT_JAVACFLAGS  += -Werror
 203 endif
 204 BOOT_JAVACFLAGS  += -encoding ascii



 205 BOOT_JAR_JFLAGS += $(JAR_JFLAGS)
 206 
 207 BOOT_JAVACFLAGS  += $(NO_PROPRIETARY_API_WARNINGS)
 208 
 209 BOOT_JAVA_CMD      = $(BOOTDIR)/bin/java $(JAVA_TOOLS_FLAGS)
 210 BOOT_JAVAC_CMD     = $(BOOTDIR)/bin/javac $(JAVAC_JVM_FLAGS) $(BOOT_JAVACFLAGS)
 211 BOOT_JAR_CMD       = $(BOOTDIR)/bin/jar
 212 BOOT_JARSIGNER_CMD = $(BOOTDIR)/bin/jarsigner
 213 
 214 # Various tools we need to run (FIXUP: Are these the right ones?)
 215 NATIVE2ASCII    = $(BOOTDIR)/bin/native2ascii $(JAVA_TOOLS_FLAGS:%=-J%)
 216 RMIC            = $(BOOTDIR)/bin/rmic $(JAVA_TOOLS_FLAGS:%=-J%)
 217 IDLJ            = $(BOOTDIR)/bin/idlj $(JAVA_TOOLS_FLAGS:%=-J%)
 218 
 219 # Should not be used
 220 JAVA            = /should/not/be/used
 221 


 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
 188 #   same jdk, then it should be supplied to the build process as the ALT_BOOTDIR
 189 #   jdk, and this resulting built jdk should be compared to the first one.
 190 #   (They should be the same). Re-using this built jdk as the ALT_BOOTDIR
 191 #   jdk will be the only way and the recommeneded way to verify the built jdk
 192 #   can bootstrap itself.
 193 #
 194 
 195 # The javac options supplied to the boot javac is limited. This compiler
 196 #   should only be used to build the 'make/tools' sources, which are not
 197 #   class files that end up in the classes directory.
 198 ifeq ($(JAVAC_MAX_WARNINGS), true)
 199   BOOT_JAVACFLAGS  += -Xlint:all
 200 endif
 201 ifeq ($(JAVAC_WARNINGS_FATAL), true)
 202   BOOT_JAVACFLAGS  += -Werror
 203 endif
 204 
 205 BOOT_SOURCE_LANGUAGE_VERSION = 6
 206 BOOT_TARGET_CLASS_VERSION = 6
 207 BOOT_JAVACFLAGS  += -encoding ascii -source $(BOOT_SOURCE_LANGUAGE_VERSION) -target $(BOOT_TARGET_CLASS_VERSION)
 208 BOOT_JAR_JFLAGS += $(JAR_JFLAGS)
 209 
 210 BOOT_JAVACFLAGS  += $(NO_PROPRIETARY_API_WARNINGS)
 211 
 212 BOOT_JAVA_CMD      = $(BOOTDIR)/bin/java $(JAVA_TOOLS_FLAGS)
 213 BOOT_JAVAC_CMD     = $(BOOTDIR)/bin/javac $(JAVAC_JVM_FLAGS) $(BOOT_JAVACFLAGS)
 214 BOOT_JAR_CMD       = $(BOOTDIR)/bin/jar
 215 BOOT_JARSIGNER_CMD = $(BOOTDIR)/bin/jarsigner
 216 
 217 # Various tools we need to run (FIXUP: Are these the right ones?)
 218 NATIVE2ASCII    = $(BOOTDIR)/bin/native2ascii $(JAVA_TOOLS_FLAGS:%=-J%)
 219 RMIC            = $(BOOTDIR)/bin/rmic $(JAVA_TOOLS_FLAGS:%=-J%)
 220 IDLJ            = $(BOOTDIR)/bin/idlj $(JAVA_TOOLS_FLAGS:%=-J%)
 221 
 222 # Should not be used
 223 JAVA            = /should/not/be/used
 224