2014-08-17 14:51:37 +00:00
|
|
|
#
|
2015-03-12 19:30:36 +00:00
|
|
|
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
|
2014-08-17 14:51:37 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
|
|
|
#
|
|
|
|
|
|
|
|
# This must be the first rule
|
|
|
|
default: all
|
|
|
|
|
|
|
|
include $(SPEC)
|
|
|
|
include MakeBase.gmk
|
2014-08-21 10:22:42 +00:00
|
|
|
include Modules.gmk
|
2014-08-17 14:51:37 +00:00
|
|
|
include JavaCompilation.gmk
|
2014-08-21 09:05:01 +00:00
|
|
|
include SetupJavaCompilers.gmk
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
# Hook to include the corresponding custom file, if present.
|
|
|
|
$(eval $(call IncludeCustomExtension, , CompileJavaModules.gmk))
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Module specific build settings
|
|
|
|
|
|
|
|
java.activation_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2016-01-28 16:42:10 +00:00
|
|
|
java.base_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*' -XDstringConcat=inline
|
2014-10-28 21:14:43 +00:00
|
|
|
java.base_COPY := .icu .dat .spp content-types.properties hijrah-config-islamic-umalqura.properties
|
2014-08-17 14:51:37 +00:00
|
|
|
java.base_CLEAN := intrinsic.properties
|
|
|
|
|
|
|
|
java.base_EXCLUDES += java/lang/doc-files
|
|
|
|
|
|
|
|
# Exclude BreakIterator classes that are just used in compile process to generate
|
|
|
|
# data files and shouldn't go in the product
|
|
|
|
java.base_EXCLUDE_FILES += sun/text/resources/BreakIteratorRules.java
|
|
|
|
|
|
|
|
ifeq ($(OPENJDK_TARGET_OS), macosx)
|
2015-05-06 09:15:27 +00:00
|
|
|
java.base_EXCLUDE_FILES += sun/nio/fs/GnomeFileTypeDetector.java
|
2014-08-17 14:51:37 +00:00
|
|
|
endif
|
|
|
|
|
2015-11-30 17:37:17 +00:00
|
|
|
ifneq ($(filter solaris macosx linux windows,$(OPENJDK_TARGET_OS)), )
|
|
|
|
java.base_EXCLUDE_FILES += \
|
|
|
|
sun/nio/ch/AbstractPollSelectorImpl.java \
|
|
|
|
sun/nio/ch/PollSelectorImpl.java \
|
|
|
|
sun/nio/ch/PollSelectorProvider.java \
|
|
|
|
#
|
|
|
|
endif
|
|
|
|
|
2014-08-17 14:51:37 +00:00
|
|
|
ifneq ($(OPENJDK_TARGET_OS), solaris)
|
|
|
|
java.base_EXCLUDE_FILES += \
|
|
|
|
SolarisLoginModule.java \
|
|
|
|
SolarisSystem.java \
|
|
|
|
#
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(filter $(OPENJDK_TARGET_OS), solaris macosx aix), )
|
|
|
|
#
|
|
|
|
# only solaris, macosx and aix
|
|
|
|
#
|
|
|
|
java.base_EXCLUDE_FILES += sun/nio/fs/PollingWatchService.java
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OPENJDK_TARGET_OS), windows)
|
|
|
|
java.base_EXCLUDE_FILES += \
|
|
|
|
sun/nio/ch/SimpleAsynchronousFileChannelImpl.java \
|
|
|
|
#
|
|
|
|
endif
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-03-13 20:41:29 +00:00
|
|
|
java.compiler_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-03-12 19:30:36 +00:00
|
|
|
java.datatransfer_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
|
2015-01-16 15:45:26 +00:00
|
|
|
java.datatransfer_COPY := flavormap.properties
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-05-13 22:48:24 +00:00
|
|
|
java.desktop_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
|
2015-01-16 15:45:26 +00:00
|
|
|
java.desktop_COPY := .gif .png .wav .txt .xml .css .pf
|
2015-02-16 17:02:08 +00:00
|
|
|
java.desktop_CLEAN := iio-plugin.properties cursors.properties
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
java.desktop_EXCLUDES += \
|
|
|
|
java/awt/doc-files \
|
|
|
|
javax/swing/doc-files \
|
|
|
|
javax/swing/text/doc-files \
|
|
|
|
javax/swing/plaf/synth/doc-files \
|
|
|
|
javax/swing/undo/doc-files \
|
|
|
|
sun/awt/X11/doc-files \
|
|
|
|
#
|
|
|
|
|
|
|
|
# The exception handling of swing beaninfo
|
|
|
|
# These resources violates the convention of having code and resources together under
|
|
|
|
# $(JDK_TOPDIR)/src/.../classes directories
|
|
|
|
$(eval $(call SetupCopyFiles,COPY_BEANINFO, \
|
|
|
|
SRC := $(JDK_TOPDIR)/make/data/swingbeaninfo/images, \
|
|
|
|
DEST := $(JDK_OUTPUTDIR)/modules/java.desktop/javax/swing/beaninfo/images, \
|
|
|
|
FILES := $(wildcard $(JDK_TOPDIR)/make/data/swingbeaninfo/images/*.gif)))
|
|
|
|
|
|
|
|
java.desktop_COPY_EXTRA += $(COPY_BEANINFO)
|
|
|
|
|
|
|
|
java.desktop_EXCLUDE_FILES += \
|
|
|
|
javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
|
|
|
|
javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/ScrollBarPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/SliderPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/SpinnerPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/SplitPanePainter.java \
|
|
|
|
javax/swing/plaf/nimbus/TabbedPanePainter.java \
|
|
|
|
sun/awt/resources/security-icon-bw16.png \
|
|
|
|
sun/awt/resources/security-icon-bw24.png \
|
|
|
|
sun/awt/resources/security-icon-bw32.png \
|
|
|
|
sun/awt/resources/security-icon-bw48.png \
|
|
|
|
sun/awt/resources/security-icon-interim16.png \
|
|
|
|
sun/awt/resources/security-icon-interim24.png \
|
|
|
|
sun/awt/resources/security-icon-interim32.png \
|
|
|
|
sun/awt/resources/security-icon-interim48.png \
|
|
|
|
sun/awt/resources/security-icon-yellow16.png \
|
|
|
|
sun/awt/resources/security-icon-yellow24.png \
|
|
|
|
sun/awt/resources/security-icon-yellow32.png \
|
|
|
|
sun/awt/resources/security-icon-yellow48.png \
|
|
|
|
sun/awt/X11/java-icon16.png \
|
|
|
|
sun/awt/X11/java-icon24.png \
|
|
|
|
sun/awt/X11/java-icon32.png \
|
|
|
|
sun/awt/X11/java-icon48.png \
|
|
|
|
.template \
|
|
|
|
#
|
|
|
|
|
|
|
|
ifeq ($(OPENJDK_TARGET_OS), macosx)
|
|
|
|
# exclude all X11 on Mac.
|
2015-03-17 19:14:58 +00:00
|
|
|
java.desktop_EXCLUDES += \
|
|
|
|
sun/awt/X11 \
|
|
|
|
sun/java2d/x11 \
|
|
|
|
sun/java2d/jules \
|
|
|
|
sun/java2d/xr \
|
|
|
|
com/sun/java/swing/plaf/gtk \
|
|
|
|
#
|
2014-08-17 14:51:37 +00:00
|
|
|
java.desktop_EXCLUDE_FILES += \
|
2015-03-17 19:14:58 +00:00
|
|
|
$(wildcard $(JDK_TOPDIR)/src/java.desktop/unix/classes/sun/java2d/*.java) \
|
|
|
|
$(wildcard $(JDK_TOPDIR)/src/java.desktop/unix/classes/sun/java2d/opengl/*.java) \
|
|
|
|
$(wildcard $(JDK_TOPDIR)/src/java.desktop/unix/classes/sun/awt/*.java) \
|
|
|
|
$(wildcard $(JDK_TOPDIR)/src/java.desktop/unix/classes/sun/font/*.java) \
|
2014-08-17 14:51:37 +00:00
|
|
|
#
|
|
|
|
else
|
|
|
|
# TBD: figure out how to eliminate this long list
|
|
|
|
java.desktop_EXCLUDE_FILES += \
|
|
|
|
sun/awt/X11/ScreenFormat.java \
|
|
|
|
sun/awt/X11/XArc.java \
|
|
|
|
sun/awt/X11/XChar2b.java \
|
|
|
|
sun/awt/X11/XCharStruct.java \
|
|
|
|
sun/awt/X11/XClassHint.java \
|
|
|
|
sun/awt/X11/XComposeStatus.java \
|
|
|
|
sun/awt/X11/XExtCodes.java \
|
|
|
|
sun/awt/X11/XFontProp.java \
|
|
|
|
sun/awt/X11/XFontSetExtents.java \
|
|
|
|
sun/awt/X11/XFontStruct.java \
|
|
|
|
sun/awt/X11/XGCValues.java \
|
|
|
|
sun/awt/X11/XHostAddress.java \
|
|
|
|
sun/awt/X11/XIMCallback.java \
|
|
|
|
sun/awt/X11/XIMHotKeyTrigger.java \
|
|
|
|
sun/awt/X11/XIMHotKeyTriggers.java \
|
|
|
|
sun/awt/X11/XIMPreeditCaretCallbackStruct.java \
|
|
|
|
sun/awt/X11/XIMPreeditDrawCallbackStruct.java \
|
|
|
|
sun/awt/X11/XIMPreeditStateNotifyCallbackStruct.java \
|
|
|
|
sun/awt/X11/XIMStatusDrawCallbackStruct.java \
|
|
|
|
sun/awt/X11/XIMStringConversionCallbackStruct.java \
|
|
|
|
sun/awt/X11/XIMStringConversionText.java \
|
|
|
|
sun/awt/X11/XIMStyles.java \
|
|
|
|
sun/awt/X11/XIMText.java \
|
|
|
|
sun/awt/X11/XIMValuesList.java \
|
|
|
|
sun/awt/X11/XImage.java \
|
|
|
|
sun/awt/X11/XKeyboardControl.java \
|
|
|
|
sun/awt/X11/XKeyboardState.java \
|
|
|
|
sun/awt/X11/XOMCharSetList.java \
|
|
|
|
sun/awt/X11/XOMFontInfo.java \
|
|
|
|
sun/awt/X11/XOMOrientation.java \
|
|
|
|
sun/awt/X11/XPoint.java \
|
|
|
|
sun/awt/X11/XRectangle.java \
|
|
|
|
sun/awt/X11/XSegment.java \
|
|
|
|
sun/awt/X11/XStandardColormap.java \
|
|
|
|
sun/awt/X11/XTextItem.java \
|
|
|
|
sun/awt/X11/XTextItem16.java \
|
|
|
|
sun/awt/X11/XTextProperty.java \
|
|
|
|
sun/awt/X11/XTimeCoord.java \
|
|
|
|
sun/awt/X11/XWindowChanges.java \
|
|
|
|
sun/awt/X11/XdbeSwapInfo.java \
|
|
|
|
sun/awt/X11/XmbTextItem.java \
|
|
|
|
sun/awt/X11/XwcTextItem.java
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OPENJDK_TARGET_OS), windows)
|
|
|
|
java.desktop_EXCLUDES += com/sun/java/swing/plaf/gtk
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef BUILD_HEADLESS_ONLY
|
|
|
|
java.desktop_EXCLUDES += sun/applet
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Why is this in the open source tree?
|
|
|
|
ifdef OPENJDK
|
|
|
|
java.desktop_EXCLUDES += sun/dc
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Used on windows and macosx
|
|
|
|
ifeq ($(filter $(OPENJDK_TARGET_OS), windows macosx), )
|
|
|
|
java.desktop_EXCLUDE_FILES += sun/awt/AWTCharset.java
|
|
|
|
endif
|
|
|
|
|
|
|
|
# These files do not appear in the build result of the old build. This
|
|
|
|
# is because they are generated sources, but the AUTO_JAVA_FILES won't
|
|
|
|
# pick them up since they aren't generated when the source dirs are
|
|
|
|
# searched and they aren't referenced by any other classes so they won't
|
|
|
|
# be picked up by implicit compilation. On a rebuild, they are picked up
|
|
|
|
# and compiled. Exclude them here to produce the same rt.jar as the old
|
|
|
|
# build does when building just once.
|
|
|
|
java.desktop_EXCLUDE_FILES += \
|
|
|
|
javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
|
|
|
|
javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/ScrollBarPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/SliderPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/SpinnerPainter.java \
|
|
|
|
javax/swing/plaf/nimbus/SplitPanePainter.java \
|
|
|
|
javax/swing/plaf/nimbus/TabbedPanePainter.java \
|
|
|
|
#
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-03-12 19:30:36 +00:00
|
|
|
java.scripting_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
|
2014-12-03 14:20:21 +00:00
|
|
|
java.scripting_COPY := .js
|
|
|
|
java.scripting_CLEAN := .properties
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-04-16 19:08:16 +00:00
|
|
|
java.instrument_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
java.logging_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
java.management_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
java.prefs_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
java.transaction_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-03-12 19:30:36 +00:00
|
|
|
java.sql_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
|
2014-08-17 14:51:37 +00:00
|
|
|
java.sql_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-03-12 19:30:36 +00:00
|
|
|
java.sql.rowset_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
|
2014-08-17 14:51:37 +00:00
|
|
|
java.sql.rowset_CLEAN_FILES := $(wildcard \
|
|
|
|
$(JDK_TOPDIR)/src/java.sql.rowset/share/classes/com/sun/rowset/*.properties \
|
|
|
|
$(JDK_TOPDIR)/src/java.sql.rowset/share/classes/javax/sql/rowset/*.properties)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-03-12 19:30:36 +00:00
|
|
|
java.rmi_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
|
2014-08-17 14:51:37 +00:00
|
|
|
java.rmi_CLEAN_FILES := $(wildcard \
|
|
|
|
$(JDK_TOPDIR)/src/java.rmi/share/classes/sun/rmi/registry/resources/*.properties \
|
|
|
|
$(JDK_TOPDIR)/src/java.rmi/share/classes/sun/rmi/server/resources/*.properties)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
java.corba_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
|
|
|
|
|
|
|
|
java.corba_COPY := .prp
|
|
|
|
java.corba_CLEAN := .properties
|
|
|
|
|
2014-11-10 14:58:12 +00:00
|
|
|
java.corba_EXCLUDES += \
|
2014-08-17 14:51:37 +00:00
|
|
|
com/sun/corba/se/PortableActivationIDL \
|
|
|
|
com/sun/tools/corba/se/logutil \
|
|
|
|
#
|
2014-11-10 14:58:12 +00:00
|
|
|
java.corba_EXCLUDE_FILES += \
|
2014-08-17 14:51:37 +00:00
|
|
|
com/sun/corba/se/impl/presentation/rmi/JNDIStateFactoryImpl.java \
|
|
|
|
com/sun/corba/se/spi/presentation/rmi/StubWrapper.java \
|
|
|
|
com/sun/org/omg/CORBA/IDLTypeOperations.java \
|
|
|
|
com/sun/org/omg/CORBA/IRObjectOperations.java \
|
|
|
|
org/omg/PortableInterceptor/UNKNOWN.java \
|
|
|
|
com/sun/tools/corba/se/idl/ResourceBundleUtil.java \
|
|
|
|
com/sun/corba/se/impl/presentation/rmi/jndi.properties \
|
|
|
|
#
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
java.xml_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
|
|
|
|
java.xml_CLEAN := .properties
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
java.xml.bind_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
|
|
|
|
java.xml.bind_CLEAN := .properties
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
java.xml.soap_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
|
|
|
|
java.xml.soap_CLEAN := .properties
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
java.xml.ws_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
|
|
|
|
java.xml.ws_COPY := .xml
|
|
|
|
java.xml.ws_CLEAN := .properties
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-03-12 19:30:36 +00:00
|
|
|
java.naming_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
|
2014-08-17 14:51:37 +00:00
|
|
|
java.naming_CLEAN := jndiprovider.properties
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-03-12 19:30:36 +00:00
|
|
|
java.security.saaj_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
|
2014-08-17 14:51:37 +00:00
|
|
|
java.security.saaj_CLEAN := .properties
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-04-16 19:08:16 +00:00
|
|
|
java.security.jgss_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
java.smartcardio_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-03-12 19:30:36 +00:00
|
|
|
java.xml.crypto_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
|
2014-08-17 14:51:37 +00:00
|
|
|
java.xml.crypto_COPY := .dtd .xml
|
|
|
|
java.xml.crypto_CLEAN := .properties
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
jdk.charsets_COPY := .dat
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2016-01-28 16:42:10 +00:00
|
|
|
jdk.compiler_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:-com.sun.tools.*' -XDstringConcat=inline
|
2014-08-17 14:51:37 +00:00
|
|
|
jdk.compiler_COPY := javax.tools.JavaCompilerTool
|
2014-12-03 14:20:21 +00:00
|
|
|
jdk.compiler_CLEAN_FILES := $(wildcard \
|
|
|
|
$(patsubst %, $(JDK_TOPDIR)/src/jdk.compiler/share/classes/%/*.properties, \
|
|
|
|
sun/tools/serialver/resources))
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-11-24 11:18:24 +00:00
|
|
|
jdk.hotspot.agent_ADD_JAVAC_FLAGS := $(DISABLE_WARNINGS),-overrides
|
|
|
|
jdk.hotspot.agent_COPY := .png sa.js .properties
|
|
|
|
|
|
|
|
ifeq ($(MODULE), jdk.hotspot.agent)
|
|
|
|
### Copy gif files
|
|
|
|
# Special handling to copy gif files in images/toolbarButtonGraphics \
|
|
|
|
# -> classes/toolbarButtonGraphics.
|
|
|
|
# These can't be handled by COPY to SetupJavaCompilation since they chop off
|
|
|
|
# one directory level.
|
|
|
|
$(eval $(call SetupCopyFiles, COPY_SA_IMAGES, \
|
2015-12-23 10:12:12 +00:00
|
|
|
SRC := $(HOTSPOT_TOPDIR)/src/jdk.hotspot.agent/share/classes/images, \
|
2015-11-24 11:18:24 +00:00
|
|
|
DEST := $(JDK_OUTPUTDIR)/modules/$(MODULE), \
|
2015-12-23 10:12:12 +00:00
|
|
|
FILES := $(wildcard $(HOTSPOT_TOPDIR)/src/jdk.hotspot.agent/share/classes/images/*/*/*.gif), \
|
2015-11-24 11:18:24 +00:00
|
|
|
))
|
|
|
|
jdk.hotspot.agent: $(COPY_SA_IMAGES)
|
|
|
|
endif
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-07-07 11:17:52 +00:00
|
|
|
jdk.internal.le_COPY := .properties
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2014-11-27 14:41:56 +00:00
|
|
|
jdk.jcmd_COPY := _options
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-11-24 09:22:14 +00:00
|
|
|
jdk.dynalink_CLEAN := .properties
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-11-16 22:49:45 +00:00
|
|
|
jdk.javadoc_COPY := .xml .css .js .png
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
jdk.rmic_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
|
|
|
|
jdk.rmic_CLEAN := .properties
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# No SCTP implementation on Mac OS X or AIX. These classes should be excluded.
|
|
|
|
SCTP_IMPL_CLASSES = \
|
|
|
|
$(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationChange.java \
|
|
|
|
$(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationImpl.java \
|
|
|
|
$(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/PeerAddrChange.java \
|
|
|
|
$(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/ResultContainer.java \
|
|
|
|
$(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpChannelImpl.java \
|
|
|
|
$(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java \
|
|
|
|
$(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNet.java \
|
|
|
|
$(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNotification.java \
|
|
|
|
$(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java \
|
|
|
|
$(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SendFailed.java \
|
|
|
|
$(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/Shutdown.java
|
|
|
|
|
|
|
|
ifeq ($(OPENJDK_TARGET_OS), macosx)
|
2014-11-10 14:58:12 +00:00
|
|
|
jdk.sctp_EXCLUDE_FILES += $(SCTP_IMPL_CLASSES)
|
2014-08-17 14:51:37 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OPENJDK_TARGET_OS),aix)
|
2014-11-10 14:58:12 +00:00
|
|
|
jdk.sctp_EXCLUDE_FILES += $(SCTP_IMPL_CLASSES)
|
2014-08-17 14:51:37 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
jdk.jconsole_COPY := .gif .png
|
|
|
|
|
|
|
|
jdk.jconsole_CLEAN_FILES := $(wildcard \
|
|
|
|
$(JDK_TOPDIR)/src/jdk.jconsole/share/classes/sun/tools/jconsole/resources/*.properties)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2015-05-27 20:25:04 +00:00
|
|
|
jdk.jdeps_CLEAN_FILES := $(wildcard \
|
|
|
|
$(JDK_TOPDIR)/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/resources/*.properties \
|
|
|
|
$(JDK_TOPDIR)/src/jdk.jdeps/share/classes/com/sun/tools/javap/resources/*.properties)
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
2014-11-10 14:58:12 +00:00
|
|
|
jdk.jdi_EXCLUDES += \
|
2014-08-17 14:51:37 +00:00
|
|
|
com/sun/tools/example/debug/bdi \
|
|
|
|
com/sun/tools/example/debug/event \
|
|
|
|
com/sun/tools/example/debug/gui \
|
|
|
|
com/sun/jdi/doc-files \
|
|
|
|
#
|
|
|
|
|
|
|
|
jdk.jdi_EXCLUDE_FILES += jdi-overview.html
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
jdk.dev_CLEAN_FILES := $(wildcard \
|
|
|
|
$(patsubst %, $(JDK_TOPDIR)/src/jdk.dev/share/classes/%/*.properties, \
|
|
|
|
com/sun/tools/script/shell))
|
|
|
|
|
|
|
|
jdk.dev_COPY := .js oqlhelp.html .txt
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
jdk.jvmstat_COPY := aliasmap
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
jdk.xml.bind_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
|
|
|
|
jdk.xml.bind_CLEAN := .properties
|
|
|
|
jdk.xml.bind_COPY := .xsd JAXBContextFactory.java ZeroOneBooleanAdapter.java
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
jdk.xml.ws_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
|
|
|
|
jdk.xml.ws_CLEAN := .properties
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
sun.charsets_COPY := .dat
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
jdk.localedata_COPY := _dict _th
|
|
|
|
# Exclude BreakIterator classes that are just used in compile process to generate
|
|
|
|
# data files and shouldn't go in the product
|
2014-11-10 14:58:12 +00:00
|
|
|
jdk.localedata_EXCLUDE_FILES += sun/text/resources/th/BreakIteratorRules_th.java
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
2015-11-24 14:46:04 +00:00
|
|
|
# Setup the compilation for the module
|
2014-08-17 14:51:37 +00:00
|
|
|
#
|
|
|
|
# Order src dirs in order of override with the most important first. Generated
|
|
|
|
# source before static source and platform specific source before shared.
|
|
|
|
#
|
|
|
|
GENERATED_SRC_DIRS += \
|
2015-11-24 14:46:04 +00:00
|
|
|
$(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE) \
|
|
|
|
$(SUPPORT_OUTPUTDIR)/gensrc_no_docs/$(MODULE) \
|
2014-08-17 14:51:37 +00:00
|
|
|
#
|
|
|
|
|
2015-11-24 14:46:04 +00:00
|
|
|
OS_SRC_DIRS += $(JDK_TOPDIR)/src/$(MODULE)/$(OPENJDK_TARGET_OS)/classes
|
2014-11-21 15:05:46 +00:00
|
|
|
ifneq ($(OPENJDK_TARGET_OS), $(OPENJDK_TARGET_OS_TYPE))
|
2015-11-24 14:46:04 +00:00
|
|
|
OS_TYPE_SRC_DIRS += $(JDK_TOPDIR)/src/$(MODULE)/$(OPENJDK_TARGET_OS_TYPE)/classes
|
2014-08-17 14:51:37 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
SHARE_SRC_DIRS += \
|
2015-11-24 14:46:04 +00:00
|
|
|
$(HOTSPOT_TOPDIR)/src/$(MODULE)/share/classes \
|
|
|
|
$(JDK_TOPDIR)/src/$(MODULE)/share/classes \
|
|
|
|
$(LANGTOOLS_TOPDIR)/src/$(MODULE)/share/classes \
|
|
|
|
$(CORBA_TOPDIR)/src/$(MODULE)/share/classes \
|
|
|
|
$(JAXP_TOPDIR)/src/$(MODULE)/share/classes \
|
|
|
|
$(JAXWS_TOPDIR)/src/$(MODULE)/share/classes \
|
|
|
|
$(NASHORN_TOPDIR)/src/$(MODULE)/share/classes \
|
2014-08-17 14:51:37 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
ALL_SRC_DIRS = \
|
|
|
|
$(GENERATED_SRC_DIRS) \
|
|
|
|
$(OS_SRC_DIRS) \
|
2014-11-21 15:05:46 +00:00
|
|
|
$(OS_TYPE_SRC_DIRS) \
|
2014-08-17 14:51:37 +00:00
|
|
|
$(SHARE_SRC_DIRS) \
|
|
|
|
#
|
|
|
|
|
|
|
|
# The JDK_USER_DEFINED_FILTER is a poor man's incremental build: by specifying
|
|
|
|
# JDK_FILTER at the make command line, only a subset of the JDK java files will
|
|
|
|
# be recompiled. If multiple paths are separated by comma, convert that into a
|
|
|
|
# space separated list.
|
|
|
|
JDK_USER_DEFINED_FILTER := $(strip $(subst $(COMMA),$(SPACE), $(JDK_FILTER)))
|
|
|
|
|
2015-06-09 14:08:38 +00:00
|
|
|
# Create an empty directory to set the bootclasspath to.
|
2015-08-10 07:47:35 +00:00
|
|
|
EMPTY_DIR := $(SUPPORT_OUTPUTDIR)/empty-dir
|
|
|
|
$(call MakeDir, $(EMPTY_DIR))
|
2015-06-09 14:08:38 +00:00
|
|
|
|
2015-11-24 14:46:04 +00:00
|
|
|
# Find the module dependencies by parsing modules.list file
|
|
|
|
DEPS := $(call FindDepsForModule, $(MODULE))
|
|
|
|
|
|
|
|
CLASSPATH := $(foreach d, $(DEPS), $(if $($d_BIN), $($d_BIN), \
|
|
|
|
$(JDK_OUTPUTDIR)/modules/$d))
|
2014-11-27 14:41:56 +00:00
|
|
|
# When crypto classes are prebuilt, need to look for classes already in
|
2014-10-21 12:00:26 +00:00
|
|
|
# output dir.
|
|
|
|
ifneq ($(BUILD_CRYPTO), true)
|
2015-11-24 14:46:04 +00:00
|
|
|
CLASSPATH += $(JDK_OUTPUTDIR)/modules/$(MODULE)
|
2014-10-21 12:00:26 +00:00
|
|
|
endif
|
2015-12-11 13:20:39 +00:00
|
|
|
JAVAC_FLAGS_BOOTCLASSPATH := -bootclasspath $(EMPTY_DIR) -extdirs $(EMPTY_DIR) \
|
2015-11-24 14:46:04 +00:00
|
|
|
-endorseddirs $(EMPTY_DIR) $($(MODULE)_ADD_JAVAC_FLAGS)
|
|
|
|
|
|
|
|
$(eval $(call SetupJavaCompilation, $(MODULE), \
|
|
|
|
SETUP := $(if $($(MODULE)_SETUP), $($(MODULE)_SETUP), GENERATE_JDKBYTECODE), \
|
|
|
|
SRC := $(if $($(MODULE)_SRC), $($(MODULE)_SRC), $(wildcard $(ALL_SRC_DIRS))), \
|
2015-06-04 16:27:42 +00:00
|
|
|
INCLUDES := $(JDK_USER_DEFINED_FILTER),\
|
2015-11-24 14:46:04 +00:00
|
|
|
BIN := $(if $($(MODULE)_BIN), $($(MODULE)_BIN), $(JDK_OUTPUTDIR)/modules/$(MODULE)), \
|
|
|
|
HEADERS := $(SUPPORT_OUTPUTDIR)/headers/$(MODULE), \
|
|
|
|
CLASSPATH := $(CLASSPATH), \
|
2015-12-11 13:20:39 +00:00
|
|
|
ADD_JAVAC_FLAGS := $($(MODULE)_ADD_JAVAC_FLAGS) $(JAVAC_FLAGS_BOOTCLASSPATH) \
|
2015-11-24 14:46:04 +00:00
|
|
|
))
|
|
|
|
TARGETS += $($(MODULE)) $($(MODULE)_COPY_EXTRA)
|
|
|
|
|
|
|
|
# Declare dependencies between java compilations of different modules.
|
|
|
|
# Since the other modules are declared in different invocations of this file,
|
|
|
|
# use the macro to find the correct target file to depend on.
|
|
|
|
# Only the javac compilation actually depends on other modules so limit
|
|
|
|
# dependency declaration to that by using the *_COMPILE_TARGET variable.
|
|
|
|
$($(MODULE)_COMPILE_TARGET): $(foreach d, $($(MODULE)_DEPS), \
|
|
|
|
$(call SetupJavaCompilationCompileTarget, $d, \
|
|
|
|
$(if $($d_BIN), $($d_BIN), $(JDK_OUTPUTDIR)/modules/$d)))
|
2014-08-17 14:51:37 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Copy zh_HK properties files from zh_TW
|
|
|
|
|
|
|
|
$(JDK_OUTPUTDIR)/modules/%_zh_HK.properties: $(JDK_OUTPUTDIR)/modules/%_zh_TW.properties
|
|
|
|
$(install-file)
|
|
|
|
|
2015-11-24 14:46:04 +00:00
|
|
|
CreateHkTargets = \
|
|
|
|
$(patsubst $(JDK_TOPDIR)/src/%, $(JDK_OUTPUTDIR)/modules/%, \
|
|
|
|
$(subst /share/classes,, \
|
|
|
|
$(subst _zh_TW,_zh_HK, $(filter %_zh_TW.properties, $1))))
|
2014-08-17 14:51:37 +00:00
|
|
|
|
2015-11-24 14:46:04 +00:00
|
|
|
ifeq ($(MODULE), java.sql.rowset)
|
|
|
|
TARGETS += $(call CreateHkTargets, $(java.sql.rowset_CLEAN_FILES))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MODULE), java.rmi)
|
|
|
|
TARGETS += $(call CreateHkTargets, $(java.rmi_CLEAN_FILES))
|
|
|
|
endif
|
|
|
|
|
|
|
|
################################################################################
|
2014-08-17 14:51:37 +00:00
|
|
|
|
2015-11-24 14:46:04 +00:00
|
|
|
all: $(TARGETS)
|
2014-08-17 14:51:37 +00:00
|
|
|
|
2015-11-24 14:46:04 +00:00
|
|
|
.PHONY: all
|