corba/make/common/shared/Defs-java.gmk
author ohair
Tue, 25 May 2010 15:52:11 -0700
changeset 5555 b2b5ed3f0d0d
parent 3647 ae9b655e7393
child 6551 476ed8653670
permissions -rw-r--r--
6943119: Rebrand source copyright notices Reviewed-by: darcy
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     1
#
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3647
diff changeset
     2
# Copyright (c) 1995, 2009, Oracle and/or its affiliates. All rights reserved.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
02bb8761fcce Initial load
duke
parents:
diff changeset
     4
#
02bb8761fcce Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
02bb8761fcce Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3647
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3647
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    10
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
02bb8761fcce Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
02bb8761fcce Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
02bb8761fcce Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
02bb8761fcce Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
02bb8761fcce Initial load
duke
parents:
diff changeset
    16
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
02bb8761fcce Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
02bb8761fcce Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
02bb8761fcce Initial load
duke
parents:
diff changeset
    20
#
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3647
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3647
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 3647
diff changeset
    23
# questions.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    24
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    25
02bb8761fcce Initial load
duke
parents:
diff changeset
    26
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    27
# Common java/javac/jdk variables used by all the Java makefiles.
02bb8761fcce Initial load
duke
parents:
diff changeset
    28
# This file should not contain rules.
02bb8761fcce Initial load
duke
parents:
diff changeset
    29
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    30
02bb8761fcce Initial load
duke
parents:
diff changeset
    31
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    32
# Memory related -J flags that all uses of java tools should use.
02bb8761fcce Initial load
duke
parents:
diff changeset
    33
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    34
JAVA_MEM_FLAGS   = -Xmx$(MAX_VM_MEMORY)m
02bb8761fcce Initial load
duke
parents:
diff changeset
    35
ifeq ($(ARCH), ia64)
02bb8761fcce Initial load
duke
parents:
diff changeset
    36
  # Special flags for javac on ia64 to work around a VM problem with
02bb8761fcce Initial load
duke
parents:
diff changeset
    37
  #   bad code generation during inlining (what version had this problem?):
02bb8761fcce Initial load
duke
parents:
diff changeset
    38
  #   Suspect this may not be needed anymore.
02bb8761fcce Initial load
duke
parents:
diff changeset
    39
  JAVA_MEM_FLAGS   += -Xms$(MAX_VM_MEMORY)m -XX:-Inline
02bb8761fcce Initial load
duke
parents:
diff changeset
    40
else
02bb8761fcce Initial load
duke
parents:
diff changeset
    41
  JAVA_MEM_FLAGS   += -Xms$(MIN_VM_MEMORY)m -XX:PermSize=32m -XX:MaxPermSize=160m
02bb8761fcce Initial load
duke
parents:
diff changeset
    42
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    43
02bb8761fcce Initial load
duke
parents:
diff changeset
    44
# 
02bb8761fcce Initial load
duke
parents:
diff changeset
    45
# All java tools (javac, javah, and javadoc) run faster with certain java
02bb8761fcce Initial load
duke
parents:
diff changeset
    46
#    options, this macro should be used with all these tools.
02bb8761fcce Initial load
duke
parents:
diff changeset
    47
#    In particular, the client VM makes these tools run faster when
02bb8761fcce Initial load
duke
parents:
diff changeset
    48
#    it's available.
02bb8761fcce Initial load
duke
parents:
diff changeset
    49
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    50
ADD_CLIENT_VM_OPTION = false
02bb8761fcce Initial load
duke
parents:
diff changeset
    51
ifeq ($(PLATFORM), solaris)
02bb8761fcce Initial load
duke
parents:
diff changeset
    52
  ADD_CLIENT_VM_OPTION = true
02bb8761fcce Initial load
duke
parents:
diff changeset
    53
else
02bb8761fcce Initial load
duke
parents:
diff changeset
    54
  ifeq ($(ARCH_DATA_MODEL), 32)
02bb8761fcce Initial load
duke
parents:
diff changeset
    55
    ADD_CLIENT_VM_OPTION = true
02bb8761fcce Initial load
duke
parents:
diff changeset
    56
  endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    57
endif
3647
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
    58
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
    59
# Options for hotspot to turn off printing of options with fastdebug version
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
    60
#   and creating the hotspot.log file.
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
    61
JAVA_HOTSPOT_DISABLE_PRINT_VMOPTIONS = \
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
    62
   -XX:-PrintVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
    63
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
    64
# JVM options
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
    65
JAVA_JVM_FLAGS = $(JAVA_HOTSPOT_DISABLE_PRINT_VMOPTIONS)
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
    66
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    67
ifeq ($(ADD_CLIENT_VM_OPTION), true)
02bb8761fcce Initial load
duke
parents:
diff changeset
    68
  JAVA_JVM_FLAGS += -client
02bb8761fcce Initial load
duke
parents:
diff changeset
    69
endif
3647
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
    70
ifdef USE_HOTSPOT_INTERPRETER_MODE
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
    71
  JAVA_JVM_FLAGS += -Xint
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
    72
endif
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    73
02bb8761fcce Initial load
duke
parents:
diff changeset
    74
# Various VM flags
02bb8761fcce Initial load
duke
parents:
diff changeset
    75
JAVA_TOOLS_FLAGS  = $(JAVA_JVM_FLAGS) $(JAVA_MEM_FLAGS)
02bb8761fcce Initial load
duke
parents:
diff changeset
    76
02bb8761fcce Initial load
duke
parents:
diff changeset
    77
# The VM flags for javac
02bb8761fcce Initial load
duke
parents:
diff changeset
    78
JAVAC_JVM_FLAGS =
02bb8761fcce Initial load
duke
parents:
diff changeset
    79
02bb8761fcce Initial load
duke
parents:
diff changeset
    80
# 64-bit builds require a larger thread stack size.
02bb8761fcce Initial load
duke
parents:
diff changeset
    81
ifeq ($(ARCH_DATA_MODEL), 32)
02bb8761fcce Initial load
duke
parents:
diff changeset
    82
  JAVAC_JVM_FLAGS    += -J-XX:ThreadStackSize=768
02bb8761fcce Initial load
duke
parents:
diff changeset
    83
else
02bb8761fcce Initial load
duke
parents:
diff changeset
    84
  JAVAC_JVM_FLAGS    += -J-XX:ThreadStackSize=1536
02bb8761fcce Initial load
duke
parents:
diff changeset
    85
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    86
JAVAC_JVM_FLAGS    += $(JAVA_TOOLS_FLAGS:%=-J%)
02bb8761fcce Initial load
duke
parents:
diff changeset
    87
02bb8761fcce Initial load
duke
parents:
diff changeset
    88
# The jar -J options are special, must be added at the end of the command line
02bb8761fcce Initial load
duke
parents:
diff changeset
    89
JAR_JFLAGS       = $(JAVA_TOOLS_FLAGS:%=-J%)
02bb8761fcce Initial load
duke
parents:
diff changeset
    90
02bb8761fcce Initial load
duke
parents:
diff changeset
    91
# JAVA_TOOLS_DIR is the default location to find Java tools to run, if
02bb8761fcce Initial load
duke
parents:
diff changeset
    92
#    langtools is not available.
02bb8761fcce Initial load
duke
parents:
diff changeset
    93
#    This should be the latest promoted JDK javac.
02bb8761fcce Initial load
duke
parents:
diff changeset
    94
ifndef JAVA_TOOLS_DIR
02bb8761fcce Initial load
duke
parents:
diff changeset
    95
  JAVA_TOOLS_DIR = $(JDK_IMPORT_PATH)/bin
02bb8761fcce Initial load
duke
parents:
diff changeset
    96
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    97
02bb8761fcce Initial load
duke
parents:
diff changeset
    98
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    99
# Invoking the Java compiler.   In leaf makefiles, choose as follows:
02bb8761fcce Initial load
duke
parents:
diff changeset
   100
#  -- Use JAVAC if you want to take full control of what options get
02bb8761fcce Initial load
duke
parents:
diff changeset
   101
#     passed to javac.
02bb8761fcce Initial load
duke
parents:
diff changeset
   102
#  -- Use JAVAC_CMD if you want to take the defaults given to you.
02bb8761fcce Initial load
duke
parents:
diff changeset
   103
#
02bb8761fcce Initial load
duke
parents:
diff changeset
   104
02bb8761fcce Initial load
duke
parents:
diff changeset
   105
ifndef DEBUG_CLASSFILES
02bb8761fcce Initial load
duke
parents:
diff changeset
   106
  ifeq ($(VARIANT), DBG)
02bb8761fcce Initial load
duke
parents:
diff changeset
   107
    DEBUG_CLASSFILES = true
02bb8761fcce Initial load
duke
parents:
diff changeset
   108
  endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   109
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   110
JAVACFLAGS =
02bb8761fcce Initial load
duke
parents:
diff changeset
   111
ifeq ($(DEBUG_CLASSFILES),true)
02bb8761fcce Initial load
duke
parents:
diff changeset
   112
  JAVACFLAGS += -g
02bb8761fcce Initial load
duke
parents:
diff changeset
   113
endif
3647
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
   114
ifeq ($(JAVAC_MAX_WARNINGS), true)
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
   115
  JAVACFLAGS  += -Xlint:all
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
   116
endif
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
   117
ifeq ($(JAVAC_WARNINGS_FATAL), true)
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   118
  JAVACFLAGS  += -Werror
02bb8761fcce Initial load
duke
parents:
diff changeset
   119
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   120
2195
280b7d4be00d 6810915: Sun proprietary warnings in JDK build
jjg
parents: 2194
diff changeset
   121
NO_PROPRIETARY_API_WARNINGS = -XDignore.symbol.file=true
280b7d4be00d 6810915: Sun proprietary warnings in JDK build
jjg
parents: 2194
diff changeset
   122
JAVACFLAGS  += $(NO_PROPRIETARY_API_WARNINGS)
280b7d4be00d 6810915: Sun proprietary warnings in JDK build
jjg
parents: 2194
diff changeset
   123
3357
554aac3029bc 6854244: change source/target used to compile JDK to 7
jjg
parents: 2195
diff changeset
   124
# Add the source level
3647
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
   125
SOURCE_LANGUAGE_VERSION = 7
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
   126
LANGUAGE_VERSION = -source $(SOURCE_LANGUAGE_VERSION)
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   127
JAVACFLAGS  += $(LANGUAGE_VERSION)
02bb8761fcce Initial load
duke
parents:
diff changeset
   128
3357
554aac3029bc 6854244: change source/target used to compile JDK to 7
jjg
parents: 2195
diff changeset
   129
# Add the class version we want
554aac3029bc 6854244: change source/target used to compile JDK to 7
jjg
parents: 2195
diff changeset
   130
TARGET_CLASS_VERSION = 7
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   131
CLASS_VERSION = -target $(TARGET_CLASS_VERSION)
02bb8761fcce Initial load
duke
parents:
diff changeset
   132
JAVACFLAGS  += $(CLASS_VERSION)
02bb8761fcce Initial load
duke
parents:
diff changeset
   133
JAVACFLAGS  += -encoding ascii
02bb8761fcce Initial load
duke
parents:
diff changeset
   134
JAVACFLAGS  += -classpath $(BOOTDIR)/lib/tools.jar
02bb8761fcce Initial load
duke
parents:
diff changeset
   135
JAVACFLAGS  += $(OTHER_JAVACFLAGS)
02bb8761fcce Initial load
duke
parents:
diff changeset
   136
02bb8761fcce Initial load
duke
parents:
diff changeset
   137
# Needed for javah
2194
b1b06d37c64d 6809563: corba build in JDK uses invalid bootclasspath for javah
jjg
parents: 4
diff changeset
   138
JAVAHFLAGS += -classpath $(CLASSBINDIR)
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   139
02bb8761fcce Initial load
duke
parents:
diff changeset
   140
# Langtools
02bb8761fcce Initial load
duke
parents:
diff changeset
   141
ifdef LANGTOOLS_DIST
02bb8761fcce Initial load
duke
parents:
diff changeset
   142
  JAVAC_JAR   = $(LANGTOOLS_DIST)/bootstrap/lib/javac.jar
02bb8761fcce Initial load
duke
parents:
diff changeset
   143
  JAVAH_JAR   = $(LANGTOOLS_DIST)/bootstrap/lib/javah.jar
02bb8761fcce Initial load
duke
parents:
diff changeset
   144
  JAVADOC_JAR = $(LANGTOOLS_DIST)/bootstrap/lib/javadoc.jar
02bb8761fcce Initial load
duke
parents:
diff changeset
   145
  DOCLETS_JAR = $(LANGTOOLS_DIST)/bootstrap/lib/doclets.jar
02bb8761fcce Initial load
duke
parents:
diff changeset
   146
  JAVAC_CMD   = $(BOOT_JAVA_CMD) \
02bb8761fcce Initial load
duke
parents:
diff changeset
   147
		"-Xbootclasspath/p:$(JAVAC_JAR)" \
02bb8761fcce Initial load
duke
parents:
diff changeset
   148
		-jar $(JAVAC_JAR) $(JAVACFLAGS)
02bb8761fcce Initial load
duke
parents:
diff changeset
   149
  JAVAH_CMD   = $(BOOT_JAVA_CMD) \
02bb8761fcce Initial load
duke
parents:
diff changeset
   150
		"-Xbootclasspath/p:$(JAVAH_JAR)$(CLASSPATH_SEPARATOR)$(JAVADOC_JAR)$(CLASSPATH_SEPARATOR)$(JAVAC_JAR)"  \
02bb8761fcce Initial load
duke
parents:
diff changeset
   151
		-jar $(JAVAH_JAR) $(JAVAHFLAGS)
02bb8761fcce Initial load
duke
parents:
diff changeset
   152
  JAVADOC_CMD = $(BOOT_JAVA_CMD) \
02bb8761fcce Initial load
duke
parents:
diff changeset
   153
		"-Xbootclasspath/p:$(JAVADOC_JAR)$(CLASSPATH_SEPARATOR)$(JAVAC_JAR)$(CLASSPATH_SEPARATOR)$(DOCLETS_JAR)" \
02bb8761fcce Initial load
duke
parents:
diff changeset
   154
		-jar $(JAVADOC_JAR)
02bb8761fcce Initial load
duke
parents:
diff changeset
   155
else
02bb8761fcce Initial load
duke
parents:
diff changeset
   156
  # If no explicit tools, use boot tools (add VM flags in this case)
02bb8761fcce Initial load
duke
parents:
diff changeset
   157
  JAVAC_CMD     = $(JAVA_TOOLS_DIR)/javac $(JAVAC_JVM_FLAGS) \
02bb8761fcce Initial load
duke
parents:
diff changeset
   158
		  $(JAVACFLAGS)
02bb8761fcce Initial load
duke
parents:
diff changeset
   159
  JAVAH_CMD     = $(JAVA_TOOLS_DIR)/javah \
02bb8761fcce Initial load
duke
parents:
diff changeset
   160
		  $(JAVAHFLAGS)
02bb8761fcce Initial load
duke
parents:
diff changeset
   161
  JAVADOC_CMD   = $(JAVA_TOOLS_DIR)/javadoc $(JAVA_TOOLS_FLAGS:%=-J%)
02bb8761fcce Initial load
duke
parents:
diff changeset
   162
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   163
02bb8761fcce Initial load
duke
parents:
diff changeset
   164
# Override of what javac to use (see deploy workspace)
02bb8761fcce Initial load
duke
parents:
diff changeset
   165
ifdef JAVAC
02bb8761fcce Initial load
duke
parents:
diff changeset
   166
  JAVAC_CMD     = $(JAVAC)
02bb8761fcce Initial load
duke
parents:
diff changeset
   167
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   168
02bb8761fcce Initial load
duke
parents:
diff changeset
   169
#
02bb8761fcce Initial load
duke
parents:
diff changeset
   170
# The bootstrap java compiler (defined as the javac in the ALT_BOOTDIR jdk).
02bb8761fcce Initial load
duke
parents:
diff changeset
   171
#   Will be used to compile java code used to build the jdk, e.g. class files
02bb8761fcce Initial load
duke
parents:
diff changeset
   172
#   created by this compiler will NOT become part of this built jdk, but just
02bb8761fcce Initial load
duke
parents:
diff changeset
   173
#   used to build this jdk, e.g. run with the java in the ALT_BOOTDIR jdk.
02bb8761fcce Initial load
duke
parents:
diff changeset
   174
#
02bb8761fcce Initial load
duke
parents:
diff changeset
   175
# The javac supplied with the LANGTOOLS_DIST should be used to build the
02bb8761fcce Initial load
duke
parents:
diff changeset
   176
#   classes that will be put into the built jdk. But note that this javac
02bb8761fcce Initial load
duke
parents:
diff changeset
   177
#   will use the ALT_BOOTDIR java runtime. Any classes created by the
02bb8761fcce Initial load
duke
parents:
diff changeset
   178
#   LANGTOOLS_DIST javac should not be run during this jdk build and indeed
02bb8761fcce Initial load
duke
parents:
diff changeset
   179
#   may not even run with the ALT_BOOTDIR jdk because they may be a newer
02bb8761fcce Initial load
duke
parents:
diff changeset
   180
#   class file version that the ALT_BOOTDIR jdk doesn't understand.
02bb8761fcce Initial load
duke
parents:
diff changeset
   181
#
02bb8761fcce Initial load
duke
parents:
diff changeset
   182
# The important observation here is that the built jdk is NOT run during
02bb8761fcce Initial load
duke
parents:
diff changeset
   183
#   the build. If the built jdk needs to be verified that it can build this
02bb8761fcce Initial load
duke
parents:
diff changeset
   184
#   same jdk, then it should be supplied to the build process as the ALT_BOOTDIR
02bb8761fcce Initial load
duke
parents:
diff changeset
   185
#   jdk, and this resulting built jdk should be compared to the first one.
02bb8761fcce Initial load
duke
parents:
diff changeset
   186
#   (They should be the same). Re-using this built jdk as the ALT_BOOTDIR
02bb8761fcce Initial load
duke
parents:
diff changeset
   187
#   jdk will be the only way and the recommeneded way to verify the built jdk
02bb8761fcce Initial load
duke
parents:
diff changeset
   188
#   can bootstrap itself.
02bb8761fcce Initial load
duke
parents:
diff changeset
   189
#
02bb8761fcce Initial load
duke
parents:
diff changeset
   190
02bb8761fcce Initial load
duke
parents:
diff changeset
   191
# The javac options supplied to the boot javac is limited. This compiler
02bb8761fcce Initial load
duke
parents:
diff changeset
   192
#   should only be used to build the 'make/tools' sources, which are not
02bb8761fcce Initial load
duke
parents:
diff changeset
   193
#   class files that end up in the classes directory.
3647
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
   194
ifeq ($(JAVAC_MAX_WARNINGS), true)
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
   195
  BOOT_JAVACFLAGS  += -Xlint:all
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
   196
endif
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
   197
ifeq ($(JAVAC_WARNINGS_FATAL), true)
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   198
  BOOT_JAVACFLAGS  += -Werror
02bb8761fcce Initial load
duke
parents:
diff changeset
   199
endif
3647
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
   200
3645
6f48dda2de17 6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk javac
andrew
parents: 3359
diff changeset
   201
BOOT_SOURCE_LANGUAGE_VERSION = 6
6f48dda2de17 6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk javac
andrew
parents: 3359
diff changeset
   202
BOOT_TARGET_CLASS_VERSION = 6
6f48dda2de17 6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk javac
andrew
parents: 3359
diff changeset
   203
BOOT_JAVACFLAGS  += -encoding ascii -source $(BOOT_SOURCE_LANGUAGE_VERSION) -target $(BOOT_TARGET_CLASS_VERSION)
3647
ae9b655e7393 6878106: Synchronize CORBA and JDK makefiles where possible
andrew
parents: 3645
diff changeset
   204
BOOT_JAR_JFLAGS += $(JAR_JFLAGS)
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   205
02bb8761fcce Initial load
duke
parents:
diff changeset
   206
BOOT_JAVA_CMD      = $(BOOTDIR)/bin/java $(JAVA_TOOLS_FLAGS)
02bb8761fcce Initial load
duke
parents:
diff changeset
   207
BOOT_JAVAC_CMD     = $(BOOTDIR)/bin/javac $(JAVAC_JVM_FLAGS) $(BOOT_JAVACFLAGS)
02bb8761fcce Initial load
duke
parents:
diff changeset
   208
BOOT_JAR_CMD       = $(BOOTDIR)/bin/jar
02bb8761fcce Initial load
duke
parents:
diff changeset
   209
BOOT_JARSIGNER_CMD = $(BOOTDIR)/bin/jarsigner
02bb8761fcce Initial load
duke
parents:
diff changeset
   210
02bb8761fcce Initial load
duke
parents:
diff changeset
   211
# Various tools we need to run (FIXUP: Are these the right ones?)
02bb8761fcce Initial load
duke
parents:
diff changeset
   212
NATIVE2ASCII    = $(BOOTDIR)/bin/native2ascii $(JAVA_TOOLS_FLAGS:%=-J%)
02bb8761fcce Initial load
duke
parents:
diff changeset
   213
RMIC		= $(BOOTDIR)/bin/rmic $(JAVA_TOOLS_FLAGS:%=-J%)
02bb8761fcce Initial load
duke
parents:
diff changeset
   214
IDLJ		= $(BOOTDIR)/bin/idlj $(JAVA_TOOLS_FLAGS:%=-J%)
02bb8761fcce Initial load
duke
parents:
diff changeset
   215
02bb8761fcce Initial load
duke
parents:
diff changeset
   216
# Should not be used
02bb8761fcce Initial load
duke
parents:
diff changeset
   217
JAVA		= /should/not/be/used
02bb8761fcce Initial load
duke
parents:
diff changeset
   218