annotate make/CompileJavaModules.gmk @ 41658:14de1ab85d25

8062810: Examine src.zip in JDK image and decide if source classes should be organized by module Reviewed-by: mchung, kcr
author erikj
date Fri, 28 Oct 2016 14:29:20 +0200
parents fd9df30e8738
children b641dc735fe5 d759799570f8
rev   line source
chegar@25854 1 #
serb@36787 2 # Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
chegar@25854 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
chegar@25854 4 #
chegar@25854 5 # This code is free software; you can redistribute it and/or modify it
chegar@25854 6 # under the terms of the GNU General Public License version 2 only, as
chegar@25854 7 # published by the Free Software Foundation. Oracle designates this
chegar@25854 8 # particular file as subject to the "Classpath" exception as provided
chegar@25854 9 # by Oracle in the LICENSE file that accompanied this code.
chegar@25854 10 #
chegar@25854 11 # This code is distributed in the hope that it will be useful, but WITHOUT
chegar@25854 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
chegar@25854 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
chegar@25854 14 # version 2 for more details (a copy is included in the LICENSE file that
chegar@25854 15 # accompanied this code).
chegar@25854 16 #
chegar@25854 17 # You should have received a copy of the GNU General Public License version
chegar@25854 18 # 2 along with this work; if not, write to the Free Software Foundation,
chegar@25854 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
chegar@25854 20 #
chegar@25854 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
chegar@25854 22 # or visit www.oracle.com if you need additional information or have any
chegar@25854 23 # questions.
chegar@25854 24 #
chegar@25854 25
chegar@25854 26 # This must be the first rule
chegar@25854 27 default: all
chegar@25854 28
chegar@25854 29 include $(SPEC)
chegar@25854 30 include MakeBase.gmk
erikj@26116 31 include Modules.gmk
chegar@25854 32 include JavaCompilation.gmk
erikj@26115 33 include SetupJavaCompilers.gmk
chegar@25854 34
chegar@25854 35 # Hook to include the corresponding custom file, if present.
chegar@25854 36 $(eval $(call IncludeCustomExtension, , CompileJavaModules.gmk))
chegar@25854 37
chegar@25854 38 ################################################################################
chegar@25854 39 # Module specific build settings
chegar@25854 40
chegar@25854 41 java.activation_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 42
chegar@25854 43 ################################################################################
chegar@25854 44
shade@35366 45 java.base_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*' -XDstringConcat=inline
rriggs@27240 46 java.base_COPY := .icu .dat .spp content-types.properties hijrah-config-islamic-umalqura.properties
chegar@25854 47 java.base_CLEAN := intrinsic.properties
chegar@25854 48
alanb@36506 49 java.base_EXCLUDE_FILES += \
alanb@36506 50 $(JDK_TOPDIR)/src/java.base/share/classes/jdk/internal/module/ModuleLoaderMap.java
alanb@36506 51
chegar@25854 52 java.base_EXCLUDES += java/lang/doc-files
chegar@25854 53
chegar@25854 54 # Exclude BreakIterator classes that are just used in compile process to generate
chegar@25854 55 # data files and shouldn't go in the product
chegar@25854 56 java.base_EXCLUDE_FILES += sun/text/resources/BreakIteratorRules.java
chegar@25854 57
robm@34108 58 ifneq ($(filter solaris macosx linux windows,$(OPENJDK_TARGET_OS)), )
robm@34108 59 java.base_EXCLUDE_FILES += \
robm@34108 60 sun/nio/ch/AbstractPollSelectorImpl.java \
robm@34108 61 sun/nio/ch/PollSelectorImpl.java \
robm@34108 62 sun/nio/ch/PollSelectorProvider.java \
robm@34108 63 #
robm@34108 64 endif
robm@34108 65
chegar@25854 66 ifneq ($(OPENJDK_TARGET_OS), solaris)
chegar@25854 67 java.base_EXCLUDE_FILES += \
chegar@25854 68 SolarisLoginModule.java \
chegar@25854 69 SolarisSystem.java \
chegar@25854 70 #
chegar@25854 71 endif
chegar@25854 72
chegar@25854 73 ifeq ($(filter $(OPENJDK_TARGET_OS), solaris macosx aix), )
chegar@25854 74 #
chegar@25854 75 # only solaris, macosx and aix
chegar@25854 76 #
chegar@25854 77 java.base_EXCLUDE_FILES += sun/nio/fs/PollingWatchService.java
chegar@25854 78 endif
chegar@25854 79
chegar@25854 80 ifeq ($(OPENJDK_TARGET_OS), windows)
chegar@25854 81 java.base_EXCLUDE_FILES += \
chegar@25854 82 sun/nio/ch/SimpleAsynchronousFileChannelImpl.java \
chegar@25854 83 #
chegar@25854 84 endif
chegar@25854 85
chegar@25854 86 ################################################################################
chegar@25854 87
darcy@29437 88 java.compiler_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
darcy@29437 89
darcy@29437 90 ################################################################################
darcy@29437 91
darcy@29313 92 java.datatransfer_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
serb@28903 93 java.datatransfer_COPY := flavormap.properties
serb@28903 94
serb@28903 95 ################################################################################
serb@28903 96
smarks@37399 97 java.desktop_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference \
jlahoda@41271 98 '-Xdoclint/package:java.*,javax.*' -Xlint:-deprecation,-exports
serb@28903 99 java.desktop_COPY := .gif .png .wav .txt .xml .css .pf
serb@29169 100 java.desktop_CLEAN := iio-plugin.properties cursors.properties
chegar@25854 101
chegar@25854 102 java.desktop_EXCLUDES += \
chegar@25854 103 java/awt/doc-files \
chegar@25854 104 javax/swing/doc-files \
chegar@25854 105 javax/swing/text/doc-files \
chegar@25854 106 javax/swing/plaf/synth/doc-files \
chegar@25854 107 javax/swing/undo/doc-files \
chegar@25854 108 sun/awt/X11/doc-files \
chegar@25854 109 #
chegar@25854 110
chegar@25854 111 java.desktop_EXCLUDE_FILES += \
chegar@25854 112 javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
chegar@25854 113 javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
chegar@25854 114 javax/swing/plaf/nimbus/ScrollBarPainter.java \
chegar@25854 115 javax/swing/plaf/nimbus/SliderPainter.java \
chegar@25854 116 javax/swing/plaf/nimbus/SpinnerPainter.java \
chegar@25854 117 javax/swing/plaf/nimbus/SplitPanePainter.java \
chegar@25854 118 javax/swing/plaf/nimbus/TabbedPanePainter.java \
chegar@25854 119 sun/awt/resources/security-icon-bw16.png \
chegar@25854 120 sun/awt/resources/security-icon-bw24.png \
chegar@25854 121 sun/awt/resources/security-icon-bw32.png \
chegar@25854 122 sun/awt/resources/security-icon-bw48.png \
chegar@25854 123 sun/awt/resources/security-icon-interim16.png \
chegar@25854 124 sun/awt/resources/security-icon-interim24.png \
chegar@25854 125 sun/awt/resources/security-icon-interim32.png \
chegar@25854 126 sun/awt/resources/security-icon-interim48.png \
chegar@25854 127 sun/awt/resources/security-icon-yellow16.png \
chegar@25854 128 sun/awt/resources/security-icon-yellow24.png \
chegar@25854 129 sun/awt/resources/security-icon-yellow32.png \
chegar@25854 130 sun/awt/resources/security-icon-yellow48.png \
chegar@25854 131 sun/awt/X11/java-icon16.png \
chegar@25854 132 sun/awt/X11/java-icon24.png \
chegar@25854 133 sun/awt/X11/java-icon32.png \
chegar@25854 134 sun/awt/X11/java-icon48.png \
chegar@25854 135 .template \
chegar@25854 136 #
chegar@25854 137
chegar@25854 138 ifeq ($(OPENJDK_TARGET_OS), macosx)
chegar@25854 139 # exclude all X11 on Mac.
prr@29671 140 java.desktop_EXCLUDES += \
prr@29671 141 sun/awt/X11 \
prr@29671 142 sun/java2d/x11 \
prr@29671 143 sun/java2d/jules \
prr@29671 144 sun/java2d/xr \
prr@29671 145 com/sun/java/swing/plaf/gtk \
prr@29671 146 #
chegar@25854 147 java.desktop_EXCLUDE_FILES += \
prr@29671 148 $(wildcard $(JDK_TOPDIR)/src/java.desktop/unix/classes/sun/java2d/*.java) \
prr@29671 149 $(wildcard $(JDK_TOPDIR)/src/java.desktop/unix/classes/sun/java2d/opengl/*.java) \
prr@29671 150 $(wildcard $(JDK_TOPDIR)/src/java.desktop/unix/classes/sun/awt/*.java) \
prr@29671 151 $(wildcard $(JDK_TOPDIR)/src/java.desktop/unix/classes/sun/font/*.java) \
chegar@25854 152 #
chegar@25854 153 else
chegar@25854 154 # TBD: figure out how to eliminate this long list
chegar@25854 155 java.desktop_EXCLUDE_FILES += \
chegar@25854 156 sun/awt/X11/ScreenFormat.java \
chegar@25854 157 sun/awt/X11/XArc.java \
chegar@25854 158 sun/awt/X11/XChar2b.java \
chegar@25854 159 sun/awt/X11/XCharStruct.java \
chegar@25854 160 sun/awt/X11/XClassHint.java \
chegar@25854 161 sun/awt/X11/XComposeStatus.java \
chegar@25854 162 sun/awt/X11/XExtCodes.java \
chegar@25854 163 sun/awt/X11/XFontProp.java \
chegar@25854 164 sun/awt/X11/XFontSetExtents.java \
chegar@25854 165 sun/awt/X11/XFontStruct.java \
chegar@25854 166 sun/awt/X11/XGCValues.java \
chegar@25854 167 sun/awt/X11/XHostAddress.java \
chegar@25854 168 sun/awt/X11/XIMCallback.java \
chegar@25854 169 sun/awt/X11/XIMHotKeyTrigger.java \
chegar@25854 170 sun/awt/X11/XIMHotKeyTriggers.java \
chegar@25854 171 sun/awt/X11/XIMPreeditCaretCallbackStruct.java \
chegar@25854 172 sun/awt/X11/XIMPreeditDrawCallbackStruct.java \
chegar@25854 173 sun/awt/X11/XIMPreeditStateNotifyCallbackStruct.java \
chegar@25854 174 sun/awt/X11/XIMStatusDrawCallbackStruct.java \
chegar@25854 175 sun/awt/X11/XIMStringConversionCallbackStruct.java \
chegar@25854 176 sun/awt/X11/XIMStringConversionText.java \
chegar@25854 177 sun/awt/X11/XIMStyles.java \
chegar@25854 178 sun/awt/X11/XIMText.java \
chegar@25854 179 sun/awt/X11/XIMValuesList.java \
chegar@25854 180 sun/awt/X11/XImage.java \
chegar@25854 181 sun/awt/X11/XKeyboardControl.java \
chegar@25854 182 sun/awt/X11/XKeyboardState.java \
chegar@25854 183 sun/awt/X11/XOMCharSetList.java \
chegar@25854 184 sun/awt/X11/XOMFontInfo.java \
chegar@25854 185 sun/awt/X11/XOMOrientation.java \
chegar@25854 186 sun/awt/X11/XPoint.java \
chegar@25854 187 sun/awt/X11/XRectangle.java \
chegar@25854 188 sun/awt/X11/XSegment.java \
chegar@25854 189 sun/awt/X11/XStandardColormap.java \
chegar@25854 190 sun/awt/X11/XTextItem.java \
chegar@25854 191 sun/awt/X11/XTextItem16.java \
chegar@25854 192 sun/awt/X11/XTextProperty.java \
chegar@25854 193 sun/awt/X11/XTimeCoord.java \
chegar@25854 194 sun/awt/X11/XWindowChanges.java \
chegar@25854 195 sun/awt/X11/XdbeSwapInfo.java \
chegar@25854 196 sun/awt/X11/XmbTextItem.java \
chegar@25854 197 sun/awt/X11/XwcTextItem.java
chegar@25854 198 endif
chegar@25854 199
chegar@25854 200 ifeq ($(OPENJDK_TARGET_OS), windows)
chegar@25854 201 java.desktop_EXCLUDES += com/sun/java/swing/plaf/gtk
chegar@25854 202 endif
chegar@25854 203
chegar@25854 204 ifdef BUILD_HEADLESS_ONLY
chegar@25854 205 java.desktop_EXCLUDES += sun/applet
chegar@25854 206 endif
chegar@25854 207
chegar@25854 208 # Used on windows and macosx
chegar@25854 209 ifeq ($(filter $(OPENJDK_TARGET_OS), windows macosx), )
chegar@25854 210 java.desktop_EXCLUDE_FILES += sun/awt/AWTCharset.java
chegar@25854 211 endif
chegar@25854 212
chegar@25854 213 # These files do not appear in the build result of the old build. This
chegar@25854 214 # is because they are generated sources, but the AUTO_JAVA_FILES won't
chegar@25854 215 # pick them up since they aren't generated when the source dirs are
chegar@25854 216 # searched and they aren't referenced by any other classes so they won't
chegar@25854 217 # be picked up by implicit compilation. On a rebuild, they are picked up
chegar@25854 218 # and compiled. Exclude them here to produce the same rt.jar as the old
chegar@25854 219 # build does when building just once.
chegar@25854 220 java.desktop_EXCLUDE_FILES += \
chegar@25854 221 javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
chegar@25854 222 javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
chegar@25854 223 javax/swing/plaf/nimbus/ScrollBarPainter.java \
chegar@25854 224 javax/swing/plaf/nimbus/SliderPainter.java \
chegar@25854 225 javax/swing/plaf/nimbus/SpinnerPainter.java \
chegar@25854 226 javax/swing/plaf/nimbus/SplitPanePainter.java \
chegar@25854 227 javax/swing/plaf/nimbus/TabbedPanePainter.java \
chegar@25854 228 #
chegar@25854 229
chegar@25854 230 ################################################################################
chegar@25854 231
darcy@29313 232 java.scripting_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
chegar@27560 233 java.scripting_COPY := .js
chegar@27560 234 java.scripting_CLEAN := .properties
chegar@27560 235
chegar@27560 236 ################################################################################
chegar@27560 237
darcy@29863 238 java.instrument_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
darcy@29863 239
darcy@29863 240 ################################################################################
darcy@29863 241
darcy@29863 242 java.logging_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
darcy@29863 243
darcy@29863 244 ################################################################################
darcy@29863 245
darcy@29863 246 java.management_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
darcy@29863 247
darcy@29863 248 ################################################################################
darcy@29863 249
darcy@29863 250 java.prefs_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
darcy@29863 251
darcy@29863 252 ################################################################################
darcy@29863 253
darcy@29863 254 java.transaction_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
darcy@29863 255
darcy@29863 256 ################################################################################
darcy@29863 257
darcy@29313 258 java.sql_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
chegar@25854 259 java.sql_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 260
chegar@25854 261 ################################################################################
chegar@25854 262
darcy@29313 263 java.sql.rowset_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
chegar@25854 264 java.sql.rowset_CLEAN_FILES := $(wildcard \
chegar@25854 265 $(JDK_TOPDIR)/src/java.sql.rowset/share/classes/com/sun/rowset/*.properties \
chegar@25854 266 $(JDK_TOPDIR)/src/java.sql.rowset/share/classes/javax/sql/rowset/*.properties)
chegar@25854 267
chegar@25854 268 ################################################################################
chegar@25854 269
darcy@29313 270 java.rmi_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
chegar@25854 271 java.rmi_CLEAN_FILES := $(wildcard \
chegar@25854 272 $(JDK_TOPDIR)/src/java.rmi/share/classes/sun/rmi/registry/resources/*.properties \
chegar@25854 273 $(JDK_TOPDIR)/src/java.rmi/share/classes/sun/rmi/server/resources/*.properties)
chegar@25854 274
chegar@25854 275 ################################################################################
chegar@25854 276
chegar@25854 277 java.corba_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 278
chegar@25854 279 java.corba_COPY := .prp
chegar@25854 280 java.corba_CLEAN := .properties
chegar@25854 281
rriggs@27397 282 java.corba_EXCLUDES += \
chegar@25854 283 com/sun/corba/se/PortableActivationIDL \
chegar@25854 284 com/sun/tools/corba/se/logutil \
chegar@25854 285 #
rriggs@27397 286 java.corba_EXCLUDE_FILES += \
chegar@25854 287 com/sun/corba/se/impl/presentation/rmi/JNDIStateFactoryImpl.java \
chegar@25854 288 com/sun/corba/se/spi/presentation/rmi/StubWrapper.java \
chegar@25854 289 com/sun/org/omg/CORBA/IDLTypeOperations.java \
chegar@25854 290 com/sun/org/omg/CORBA/IRObjectOperations.java \
chegar@25854 291 org/omg/PortableInterceptor/UNKNOWN.java \
chegar@25854 292 com/sun/tools/corba/se/idl/ResourceBundleUtil.java \
chegar@25854 293 com/sun/corba/se/impl/presentation/rmi/jndi.properties \
chegar@25854 294 #
chegar@25854 295
chegar@25854 296 ################################################################################
chegar@25854 297
chegar@25854 298 java.xml_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 299 java.xml_CLEAN := .properties
chegar@25854 300
chegar@25854 301 ################################################################################
chegar@25854 302
chegar@25854 303 java.xml.bind_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 304 java.xml.bind_CLEAN := .properties
chegar@25854 305
chegar@25854 306 ################################################################################
chegar@25854 307
chegar@25854 308 java.xml.soap_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 309 java.xml.soap_CLEAN := .properties
chegar@25854 310
chegar@25854 311 ################################################################################
chegar@25854 312
chegar@25854 313 java.xml.ws_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 314 java.xml.ws_COPY := .xml
chegar@25854 315 java.xml.ws_CLEAN := .properties
chegar@25854 316
chegar@25854 317 ################################################################################
chegar@25854 318
jlahoda@41271 319 java.naming_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*' -Xlint:-exports
chegar@25854 320 java.naming_CLEAN := jndiprovider.properties
chegar@25854 321
chegar@25854 322 ################################################################################
chegar@25854 323
darcy@29313 324 java.security.saaj_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
chegar@25854 325 java.security.saaj_CLEAN := .properties
chegar@25854 326
chegar@25854 327 ################################################################################
chegar@25854 328
darcy@29863 329 java.security.jgss_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
darcy@29863 330
darcy@29863 331 ################################################################################
darcy@29863 332
darcy@29863 333 java.smartcardio_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
darcy@29863 334
darcy@29863 335 ################################################################################
darcy@29863 336
darcy@29313 337 java.xml.crypto_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
chegar@25854 338 java.xml.crypto_COPY := .dtd .xml
chegar@25854 339 java.xml.crypto_CLEAN := .properties
chegar@25854 340
chegar@25854 341 ################################################################################
chegar@25854 342
chegar@25854 343 jdk.charsets_COPY := .dat
chegar@25854 344
chegar@25854 345 ################################################################################
chegar@25854 346
jlahoda@41271 347 jdk.accessibility_ADD_JAVAC_FLAGS := -Xlint:-exports
jlahoda@41271 348
jlahoda@41271 349 ################################################################################
jlahoda@41271 350
alanb@36506 351 jdk.compiler_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:-com.sun.tools.*' \
alanb@36506 352 -XDstringConcat=inline
chegar@27560 353 jdk.compiler_CLEAN_FILES := $(wildcard \
chegar@27560 354 $(patsubst %, $(JDK_TOPDIR)/src/jdk.compiler/share/classes/%/*.properties, \
chegar@27560 355 sun/tools/serialver/resources))
chegar@25854 356
chegar@25854 357 ################################################################################
chegar@25854 358
jlahoda@41271 359 jdk.jshell_ADD_JAVAC_FLAGS := -Xlint:-exports
jlahoda@41271 360
jlahoda@41271 361 ################################################################################
jlahoda@41271 362
erikj@34116 363 jdk.hotspot.agent_ADD_JAVAC_FLAGS := $(DISABLE_WARNINGS),-overrides
ysuenaga@36290 364 jdk.hotspot.agent_COPY := .gif .png sa.js .properties
erikj@34116 365
erikj@34116 366 ################################################################################
erikj@34116 367
jlahoda@31512 368 jdk.internal.le_COPY := .properties
jlahoda@31512 369
jlahoda@31512 370 ################################################################################
jlahoda@31512 371
ihse@27595 372 jdk.jcmd_COPY := _options
chegar@25854 373
chegar@25854 374 ################################################################################
chegar@25854 375
attila@34099 376 jdk.dynalink_CLEAN := .properties
attila@34099 377
attila@34099 378 ################################################################################
attila@34099 379
bpatel@33723 380 jdk.javadoc_COPY := .xml .css .js .png
chegar@25854 381
chegar@25854 382 ################################################################################
chegar@25854 383
chegar@25854 384 jdk.rmic_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 385 jdk.rmic_CLEAN := .properties
chegar@25854 386
chegar@25854 387 ################################################################################
chegar@25854 388
chegar@25854 389 # No SCTP implementation on Mac OS X or AIX. These classes should be excluded.
chegar@25854 390 SCTP_IMPL_CLASSES = \
chegar@25854 391 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationChange.java \
chegar@25854 392 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationImpl.java \
chegar@25854 393 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/PeerAddrChange.java \
chegar@25854 394 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/ResultContainer.java \
chegar@25854 395 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpChannelImpl.java \
chegar@25854 396 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java \
chegar@25854 397 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNet.java \
chegar@25854 398 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNotification.java \
chegar@25854 399 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java \
chegar@25854 400 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SendFailed.java \
chegar@25854 401 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/Shutdown.java
chegar@25854 402
chegar@25854 403 ifeq ($(OPENJDK_TARGET_OS), macosx)
rriggs@27397 404 jdk.sctp_EXCLUDE_FILES += $(SCTP_IMPL_CLASSES)
chegar@25854 405 endif
chegar@25854 406
chegar@25854 407 ifeq ($(OPENJDK_TARGET_OS),aix)
rriggs@27397 408 jdk.sctp_EXCLUDE_FILES += $(SCTP_IMPL_CLASSES)
chegar@25854 409 endif
chegar@25854 410
chegar@25854 411 ################################################################################
chegar@25854 412
chegar@25854 413 jdk.jconsole_COPY := .gif .png
chegar@25854 414
chegar@25854 415 jdk.jconsole_CLEAN_FILES := $(wildcard \
chegar@25854 416 $(JDK_TOPDIR)/src/jdk.jconsole/share/classes/sun/tools/jconsole/resources/*.properties)
chegar@25854 417
chegar@25854 418 ################################################################################
chegar@25854 419
mchung@39610 420 jdk.jdeps_COPY := .txt
mchung@39610 421
mchung@30742 422 jdk.jdeps_CLEAN_FILES := $(wildcard \
mchung@30742 423 $(JDK_TOPDIR)/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/resources/*.properties \
mchung@30742 424 $(JDK_TOPDIR)/src/jdk.jdeps/share/classes/com/sun/tools/javap/resources/*.properties)
mchung@30742 425
mchung@30742 426 ################################################################################
mchung@30742 427
rriggs@27397 428 jdk.jdi_EXCLUDES += \
chegar@25854 429 com/sun/tools/example/debug/bdi \
chegar@25854 430 com/sun/tools/example/debug/event \
chegar@25854 431 com/sun/tools/example/debug/gui \
chegar@25854 432 com/sun/jdi/doc-files \
chegar@25854 433 #
chegar@25854 434
chegar@25854 435 jdk.jdi_EXCLUDE_FILES += jdi-overview.html
chegar@25854 436
chegar@25854 437 ################################################################################
chegar@25854 438
chegar@25854 439 jdk.dev_CLEAN_FILES := $(wildcard \
chegar@25854 440 $(patsubst %, $(JDK_TOPDIR)/src/jdk.dev/share/classes/%/*.properties, \
chegar@25854 441 com/sun/tools/script/shell))
chegar@25854 442
chegar@25854 443 jdk.dev_COPY := .js oqlhelp.html .txt
chegar@25854 444
chegar@25854 445 ################################################################################
chegar@25854 446
chegar@25854 447 jdk.jvmstat_COPY := aliasmap
chegar@25854 448
chegar@25854 449 ################################################################################
chegar@25854 450
jlahoda@41271 451 jdk.vm.ci_ADD_JAVAC_FLAGS := -Xlint:-exports
jlahoda@41271 452
jlahoda@41271 453 ################################################################################
jlahoda@41271 454
chegar@25854 455 jdk.xml.bind_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 456 jdk.xml.bind_CLEAN := .properties
chegar@25854 457 jdk.xml.bind_COPY := .xsd JAXBContextFactory.java ZeroOneBooleanAdapter.java
chegar@25854 458
chegar@25854 459 ################################################################################
chegar@25854 460
chegar@25854 461 jdk.xml.ws_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 462 jdk.xml.ws_CLEAN := .properties
chegar@25854 463
chegar@25854 464 ################################################################################
chegar@25854 465
chegar@25854 466 sun.charsets_COPY := .dat
chegar@25854 467
chegar@25854 468 ################################################################################
chegar@25854 469
chegar@25854 470 jdk.localedata_COPY := _dict _th
chegar@25854 471 # Exclude BreakIterator classes that are just used in compile process to generate
chegar@25854 472 # data files and shouldn't go in the product
naoto@40783 473 jdk.localedata_EXCLUDE_FILES += sun/text/resources/ext/BreakIteratorRules_th.java
chegar@25854 474
chegar@25854 475 ################################################################################
erikj@41658 476 # If this is an imported module that has prebuilt classes, only compile
erikj@41658 477 # module-info.java.
erikj@41658 478 ifneq ($(wildcard $(IMPORT_MODULES_CLASSES)/$(MODULE)), )
erikj@41658 479 $(MODULE)_INCLUDE_FILES := module-info.java
erikj@41658 480 endif
erikj@41658 481
erikj@41658 482 ################################################################################
erikj@34102 483 # Setup the compilation for the module
chegar@25854 484 #
erikj@37030 485 MODULE_SRC_DIRS := $(call FindModuleSrcDirs, $(MODULE))
chegar@25854 486
chegar@25854 487 # The JDK_USER_DEFINED_FILTER is a poor man's incremental build: by specifying
chegar@25854 488 # JDK_FILTER at the make command line, only a subset of the JDK java files will
chegar@25854 489 # be recompiled. If multiple paths are separated by comma, convert that into a
chegar@25854 490 # space separated list.
chegar@25854 491 JDK_USER_DEFINED_FILTER := $(strip $(subst $(COMMA),$(SPACE), $(JDK_FILTER)))
erikj@38847 492 ifeq ($(JDK_FILTER), )
erikj@38847 493 FAIL_NO_SRC := true
erikj@38847 494 else
erikj@38847 495 # When using JDK_FILTER, most module java compilations will end up finding
erikj@38847 496 # no source files. Don't let that fail the build.
erikj@38847 497 FAIL_NO_SRC := false
erikj@38847 498 endif
chegar@25854 499
erikj@37030 500 # Get the complete module source path.
erikj@37030 501 MODULESOURCEPATH := $(call GetModuleSrcPath)
alundblad@31014 502
erikj@37030 503 # Add imported modules to the modulepath
erikj@37030 504 MODULEPATH := $(call PathList, $(IMPORT_MODULES_CLASSES))
chegar@25854 505
alanb@36506 506 ifeq ($(MODULE), jdk.vm.ci)
alanb@36506 507 ## WORKAROUND jdk.vm.ci source structure issue
alanb@36506 508 JVMCI_MODULESOURCEPATH := $(MODULESOURCEPATH) \
alanb@36506 509 $(subst /$(MODULE)/,/*/, $(filter-out %processor/src, \
alanb@36506 510 $(wildcard $(HOTSPOT_TOPDIR)/src/jdk.vm.ci/share/classes/*/src)))
erikj@37030 511 MODULESOURCEPATH := $(call PathList, $(JVMCI_MODULESOURCEPATH))
alanb@36506 512 endif
alanb@36506 513
erikj@34102 514 $(eval $(call SetupJavaCompilation, $(MODULE), \
erikj@34102 515 SETUP := $(if $($(MODULE)_SETUP), $($(MODULE)_SETUP), GENERATE_JDKBYTECODE), \
alanb@36506 516 MODULE := $(MODULE), \
alanb@36506 517 SRC := $(wildcard $(MODULE_SRC_DIRS)), \
erikj@38847 518 INCLUDES := $(JDK_USER_DEFINED_FILTER), \
erikj@38847 519 FAIL_NO_SRC := $(FAIL_NO_SRC), \
alanb@36506 520 BIN := $(if $($(MODULE)_BIN), $($(MODULE)_BIN), $(JDK_OUTPUTDIR)/modules), \
alanb@36506 521 HEADERS := $(SUPPORT_OUTPUTDIR)/headers, \
alanb@36506 522 ADD_JAVAC_FLAGS := \
alanb@36506 523 $($(MODULE)_ADD_JAVAC_FLAGS) \
mchung@40241 524 --module-source-path $(MODULESOURCEPATH) \
mchung@40241 525 --module-path $(MODULEPATH) \
mchung@40611 526 --system none, \
erikj@34102 527 ))
alanb@36506 528
erikj@34102 529 TARGETS += $($(MODULE)) $($(MODULE)_COPY_EXTRA)
chegar@25854 530
erikj@34102 531 # Declare dependencies between java compilations of different modules.
erikj@34102 532 # Since the other modules are declared in different invocations of this file,
erikj@34102 533 # use the macro to find the correct target file to depend on.
erikj@34102 534 # Only the javac compilation actually depends on other modules so limit
erikj@34102 535 # dependency declaration to that by using the *_COMPILE_TARGET variable.
alanb@36506 536 $($(MODULE)_COMPILE_TARGET): $(foreach d, $(call FindDepsForModule, $(MODULE)), \
erikj@34102 537 $(call SetupJavaCompilationCompileTarget, $d, \
erikj@34102 538 $(if $($d_BIN), $($d_BIN), $(JDK_OUTPUTDIR)/modules/$d)))
chegar@25854 539
chegar@25854 540 ################################################################################
chegar@25854 541 # Copy zh_HK properties files from zh_TW
chegar@25854 542
chegar@25854 543 $(JDK_OUTPUTDIR)/modules/%_zh_HK.properties: $(JDK_OUTPUTDIR)/modules/%_zh_TW.properties
chegar@25854 544 $(install-file)
chegar@25854 545
erikj@34102 546 CreateHkTargets = \
erikj@34102 547 $(patsubst $(JDK_TOPDIR)/src/%, $(JDK_OUTPUTDIR)/modules/%, \
erikj@34102 548 $(subst /share/classes,, \
erikj@34102 549 $(subst _zh_TW,_zh_HK, $(filter %_zh_TW.properties, $1))))
chegar@25854 550
erikj@34102 551 ifeq ($(MODULE), java.sql.rowset)
erikj@34102 552 TARGETS += $(call CreateHkTargets, $(java.sql.rowset_CLEAN_FILES))
erikj@34102 553 endif
chegar@25854 554
erikj@34102 555 ifeq ($(MODULE), java.rmi)
erikj@34102 556 TARGETS += $(call CreateHkTargets, $(java.rmi_CLEAN_FILES))
erikj@34102 557 endif
chegar@25854 558
erikj@34102 559 ################################################################################
alanb@36506 560 # If this is an imported module, copy the pre built classes and resources into
alanb@36506 561 # the modules output dir
alanb@36506 562
alanb@36506 563 ifneq ($(wildcard $(IMPORT_MODULES_CLASSES)/$(MODULE)), )
alanb@36506 564 $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker: \
alanb@36506 565 $(call CacheFind, $(IMPORT_MODULES_CLASSES)/$(MODULE))
erikj@37037 566 $(call MakeDir, $(@D))
erikj@37037 567 # Do not delete marker and build meta data files
erikj@37037 568 $(RM) -r $(filter-out $(@D)/_%, $(wildcard $(@D)/*))
alanb@36506 569 $(CP) -R $(IMPORT_MODULES_CLASSES)/$(MODULE)/* $(@D)/
alanb@36506 570 $(TOUCH) $@
alanb@36506 571
alanb@36506 572 TARGETS += $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker
alanb@36506 573
alanb@36506 574 # Add this dependency to avoid a race between compiling module-info.java and
alanb@36506 575 # importing the classes.
alanb@36506 576 $($(MODULE)_COMPILE_TARGET): $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker
alanb@36506 577 endif
alanb@36506 578
alanb@36506 579 ################################################################################
alanb@36506 580
alanb@36506 581 $(eval $(call IncludeCustomExtension, , CompileJavaModules-post.gmk))
alanb@36506 582
alanb@36506 583 ################################################################################
erikj@34102 584
erikj@34102 585 all: $(TARGETS)
erikj@34102 586
erikj@34102 587 .PHONY: all