annotate make/CompileJavaModules.gmk @ 34102:c0a98357f847

8143141: Bring in minor build changes from the jigsaw/jake forest Reviewed-by: ihse, mchung
author erikj
date Tue, 24 Nov 2015 15:46:04 +0100
parents 64da21aa58f6
children afc734a1cf3b 671dd84efa14
rev   line source
chegar@25854 1 #
darcy@29313 2 # Copyright (c) 2014, 2015, 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
darcy@29313 45 java.base_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
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
chegar@25854 49 java.base_EXCLUDES += java/lang/doc-files
chegar@25854 50
chegar@25854 51 # Exclude BreakIterator classes that are just used in compile process to generate
chegar@25854 52 # data files and shouldn't go in the product
chegar@25854 53 java.base_EXCLUDE_FILES += sun/text/resources/BreakIteratorRules.java
chegar@25854 54
chegar@25854 55 ifeq ($(OPENJDK_TARGET_OS), macosx)
erikj@30095 56 java.base_EXCLUDE_FILES += sun/nio/fs/GnomeFileTypeDetector.java
chegar@25854 57 endif
chegar@25854 58
chegar@25854 59 ifneq ($(OPENJDK_TARGET_OS), solaris)
chegar@25854 60 java.base_EXCLUDE_FILES += \
chegar@25854 61 SolarisLoginModule.java \
chegar@25854 62 SolarisSystem.java \
chegar@25854 63 #
chegar@25854 64 endif
chegar@25854 65
chegar@25854 66 ifeq ($(filter $(OPENJDK_TARGET_OS), solaris macosx aix), )
chegar@25854 67 #
chegar@25854 68 # only solaris, macosx and aix
chegar@25854 69 #
chegar@25854 70 java.base_EXCLUDE_FILES += sun/nio/fs/PollingWatchService.java
chegar@25854 71 endif
chegar@25854 72
chegar@25854 73 ifeq ($(OPENJDK_TARGET_OS), windows)
chegar@25854 74 java.base_EXCLUDE_FILES += \
chegar@25854 75 sun/nio/ch/AbstractPollSelectorImpl.java \
chegar@25854 76 sun/nio/ch/PollSelectorProvider.java \
chegar@25854 77 sun/nio/ch/SimpleAsynchronousFileChannelImpl.java \
chegar@25854 78 #
chegar@25854 79 endif
chegar@25854 80
chegar@25854 81 ################################################################################
chegar@25854 82
darcy@29437 83 java.compiler_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
darcy@29437 84
darcy@29437 85 ################################################################################
darcy@29437 86
darcy@29313 87 java.datatransfer_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
serb@28903 88 java.datatransfer_COPY := flavormap.properties
serb@28903 89
serb@28903 90 ################################################################################
serb@28903 91
darcy@30426 92 java.desktop_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
serb@28903 93 java.desktop_COPY := .gif .png .wav .txt .xml .css .pf
serb@29169 94 java.desktop_CLEAN := iio-plugin.properties cursors.properties
chegar@25854 95
chegar@25854 96 java.desktop_EXCLUDES += \
chegar@25854 97 java/awt/doc-files \
chegar@25854 98 javax/swing/doc-files \
chegar@25854 99 javax/swing/text/doc-files \
chegar@25854 100 javax/swing/plaf/synth/doc-files \
chegar@25854 101 javax/swing/undo/doc-files \
chegar@25854 102 sun/awt/X11/doc-files \
chegar@25854 103 #
chegar@25854 104
chegar@25854 105 # The exception handling of swing beaninfo
chegar@25854 106 # These resources violates the convention of having code and resources together under
chegar@25854 107 # $(JDK_TOPDIR)/src/.../classes directories
chegar@25854 108 $(eval $(call SetupCopyFiles,COPY_BEANINFO, \
chegar@25854 109 SRC := $(JDK_TOPDIR)/make/data/swingbeaninfo/images, \
chegar@25854 110 DEST := $(JDK_OUTPUTDIR)/modules/java.desktop/javax/swing/beaninfo/images, \
chegar@25854 111 FILES := $(wildcard $(JDK_TOPDIR)/make/data/swingbeaninfo/images/*.gif)))
chegar@25854 112
chegar@25854 113 java.desktop_COPY_EXTRA += $(COPY_BEANINFO)
chegar@25854 114
chegar@25854 115 java.desktop_EXCLUDE_FILES += \
chegar@25854 116 javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
chegar@25854 117 javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
chegar@25854 118 javax/swing/plaf/nimbus/ScrollBarPainter.java \
chegar@25854 119 javax/swing/plaf/nimbus/SliderPainter.java \
chegar@25854 120 javax/swing/plaf/nimbus/SpinnerPainter.java \
chegar@25854 121 javax/swing/plaf/nimbus/SplitPanePainter.java \
chegar@25854 122 javax/swing/plaf/nimbus/TabbedPanePainter.java \
chegar@25854 123 sun/awt/resources/security-icon-bw16.png \
chegar@25854 124 sun/awt/resources/security-icon-bw24.png \
chegar@25854 125 sun/awt/resources/security-icon-bw32.png \
chegar@25854 126 sun/awt/resources/security-icon-bw48.png \
chegar@25854 127 sun/awt/resources/security-icon-interim16.png \
chegar@25854 128 sun/awt/resources/security-icon-interim24.png \
chegar@25854 129 sun/awt/resources/security-icon-interim32.png \
chegar@25854 130 sun/awt/resources/security-icon-interim48.png \
chegar@25854 131 sun/awt/resources/security-icon-yellow16.png \
chegar@25854 132 sun/awt/resources/security-icon-yellow24.png \
chegar@25854 133 sun/awt/resources/security-icon-yellow32.png \
chegar@25854 134 sun/awt/resources/security-icon-yellow48.png \
chegar@25854 135 sun/awt/X11/java-icon16.png \
chegar@25854 136 sun/awt/X11/java-icon24.png \
chegar@25854 137 sun/awt/X11/java-icon32.png \
chegar@25854 138 sun/awt/X11/java-icon48.png \
chegar@25854 139 .template \
chegar@25854 140 #
chegar@25854 141
chegar@25854 142 ifeq ($(OPENJDK_TARGET_OS), macosx)
chegar@25854 143 # exclude all X11 on Mac.
prr@29671 144 java.desktop_EXCLUDES += \
prr@29671 145 sun/awt/X11 \
prr@29671 146 sun/java2d/x11 \
prr@29671 147 sun/java2d/jules \
prr@29671 148 sun/java2d/xr \
prr@29671 149 com/sun/java/swing/plaf/gtk \
prr@29671 150 #
chegar@25854 151 java.desktop_EXCLUDE_FILES += \
prr@29671 152 $(wildcard $(JDK_TOPDIR)/src/java.desktop/unix/classes/sun/java2d/*.java) \
prr@29671 153 $(wildcard $(JDK_TOPDIR)/src/java.desktop/unix/classes/sun/java2d/opengl/*.java) \
prr@29671 154 $(wildcard $(JDK_TOPDIR)/src/java.desktop/unix/classes/sun/awt/*.java) \
prr@29671 155 $(wildcard $(JDK_TOPDIR)/src/java.desktop/unix/classes/sun/font/*.java) \
chegar@25854 156 #
chegar@25854 157 else
chegar@25854 158 # TBD: figure out how to eliminate this long list
chegar@25854 159 java.desktop_EXCLUDE_FILES += \
chegar@25854 160 sun/awt/X11/ScreenFormat.java \
chegar@25854 161 sun/awt/X11/XArc.java \
chegar@25854 162 sun/awt/X11/XChar2b.java \
chegar@25854 163 sun/awt/X11/XCharStruct.java \
chegar@25854 164 sun/awt/X11/XClassHint.java \
chegar@25854 165 sun/awt/X11/XComposeStatus.java \
chegar@25854 166 sun/awt/X11/XExtCodes.java \
chegar@25854 167 sun/awt/X11/XFontProp.java \
chegar@25854 168 sun/awt/X11/XFontSetExtents.java \
chegar@25854 169 sun/awt/X11/XFontStruct.java \
chegar@25854 170 sun/awt/X11/XGCValues.java \
chegar@25854 171 sun/awt/X11/XHostAddress.java \
chegar@25854 172 sun/awt/X11/XIMCallback.java \
chegar@25854 173 sun/awt/X11/XIMHotKeyTrigger.java \
chegar@25854 174 sun/awt/X11/XIMHotKeyTriggers.java \
chegar@25854 175 sun/awt/X11/XIMPreeditCaretCallbackStruct.java \
chegar@25854 176 sun/awt/X11/XIMPreeditDrawCallbackStruct.java \
chegar@25854 177 sun/awt/X11/XIMPreeditStateNotifyCallbackStruct.java \
chegar@25854 178 sun/awt/X11/XIMStatusDrawCallbackStruct.java \
chegar@25854 179 sun/awt/X11/XIMStringConversionCallbackStruct.java \
chegar@25854 180 sun/awt/X11/XIMStringConversionText.java \
chegar@25854 181 sun/awt/X11/XIMStyles.java \
chegar@25854 182 sun/awt/X11/XIMText.java \
chegar@25854 183 sun/awt/X11/XIMValuesList.java \
chegar@25854 184 sun/awt/X11/XImage.java \
chegar@25854 185 sun/awt/X11/XKeyboardControl.java \
chegar@25854 186 sun/awt/X11/XKeyboardState.java \
chegar@25854 187 sun/awt/X11/XOMCharSetList.java \
chegar@25854 188 sun/awt/X11/XOMFontInfo.java \
chegar@25854 189 sun/awt/X11/XOMOrientation.java \
chegar@25854 190 sun/awt/X11/XPoint.java \
chegar@25854 191 sun/awt/X11/XRectangle.java \
chegar@25854 192 sun/awt/X11/XSegment.java \
chegar@25854 193 sun/awt/X11/XStandardColormap.java \
chegar@25854 194 sun/awt/X11/XTextItem.java \
chegar@25854 195 sun/awt/X11/XTextItem16.java \
chegar@25854 196 sun/awt/X11/XTextProperty.java \
chegar@25854 197 sun/awt/X11/XTimeCoord.java \
chegar@25854 198 sun/awt/X11/XWindowChanges.java \
chegar@25854 199 sun/awt/X11/XdbeSwapInfo.java \
chegar@25854 200 sun/awt/X11/XmbTextItem.java \
chegar@25854 201 sun/awt/X11/XwcTextItem.java
chegar@25854 202 endif
chegar@25854 203
chegar@25854 204 ifeq ($(OPENJDK_TARGET_OS), windows)
chegar@25854 205 java.desktop_EXCLUDES += com/sun/java/swing/plaf/gtk
chegar@25854 206 endif
chegar@25854 207
chegar@25854 208 ifdef BUILD_HEADLESS_ONLY
chegar@25854 209 java.desktop_EXCLUDES += sun/applet
chegar@25854 210 endif
chegar@25854 211
chegar@25854 212 # Why is this in the open source tree?
chegar@25854 213 ifdef OPENJDK
chegar@25854 214 java.desktop_EXCLUDES += sun/dc
chegar@25854 215 endif
chegar@25854 216
chegar@25854 217 # Used on windows and macosx
chegar@25854 218 ifeq ($(filter $(OPENJDK_TARGET_OS), windows macosx), )
chegar@25854 219 java.desktop_EXCLUDE_FILES += sun/awt/AWTCharset.java
chegar@25854 220 endif
chegar@25854 221
chegar@25854 222 # These files do not appear in the build result of the old build. This
chegar@25854 223 # is because they are generated sources, but the AUTO_JAVA_FILES won't
chegar@25854 224 # pick them up since they aren't generated when the source dirs are
chegar@25854 225 # searched and they aren't referenced by any other classes so they won't
chegar@25854 226 # be picked up by implicit compilation. On a rebuild, they are picked up
chegar@25854 227 # and compiled. Exclude them here to produce the same rt.jar as the old
chegar@25854 228 # build does when building just once.
chegar@25854 229 java.desktop_EXCLUDE_FILES += \
chegar@25854 230 javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
chegar@25854 231 javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
chegar@25854 232 javax/swing/plaf/nimbus/ScrollBarPainter.java \
chegar@25854 233 javax/swing/plaf/nimbus/SliderPainter.java \
chegar@25854 234 javax/swing/plaf/nimbus/SpinnerPainter.java \
chegar@25854 235 javax/swing/plaf/nimbus/SplitPanePainter.java \
chegar@25854 236 javax/swing/plaf/nimbus/TabbedPanePainter.java \
chegar@25854 237 #
chegar@25854 238
chegar@25854 239 ################################################################################
chegar@25854 240
darcy@29313 241 java.scripting_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
chegar@27560 242 java.scripting_COPY := .js
chegar@27560 243 java.scripting_CLEAN := .properties
chegar@27560 244
chegar@27560 245 ################################################################################
chegar@27560 246
darcy@29863 247 java.instrument_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
darcy@29863 248
darcy@29863 249 ################################################################################
darcy@29863 250
darcy@29863 251 java.logging_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
darcy@29863 252
darcy@29863 253 ################################################################################
darcy@29863 254
darcy@29863 255 java.management_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference '-Xdoclint/package:java.*,javax.*'
darcy@29863 256
darcy@29863 257 ################################################################################
darcy@29863 258
darcy@29863 259 java.prefs_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
darcy@29863 260
darcy@29863 261 ################################################################################
darcy@29863 262
darcy@29863 263 java.transaction_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
darcy@29863 264
darcy@29863 265 ################################################################################
darcy@29863 266
darcy@29313 267 java.sql_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
chegar@25854 268 java.sql_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 269
chegar@25854 270 ################################################################################
chegar@25854 271
darcy@29313 272 java.sql.rowset_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
chegar@25854 273 java.sql.rowset_CLEAN_FILES := $(wildcard \
chegar@25854 274 $(JDK_TOPDIR)/src/java.sql.rowset/share/classes/com/sun/rowset/*.properties \
chegar@25854 275 $(JDK_TOPDIR)/src/java.sql.rowset/share/classes/javax/sql/rowset/*.properties)
chegar@25854 276
chegar@25854 277 ################################################################################
chegar@25854 278
darcy@29313 279 java.rmi_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
chegar@25854 280 java.rmi_CLEAN_FILES := $(wildcard \
chegar@25854 281 $(JDK_TOPDIR)/src/java.rmi/share/classes/sun/rmi/registry/resources/*.properties \
chegar@25854 282 $(JDK_TOPDIR)/src/java.rmi/share/classes/sun/rmi/server/resources/*.properties)
chegar@25854 283
chegar@25854 284 ################################################################################
chegar@25854 285
chegar@25854 286 java.corba_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 287
chegar@25854 288 java.corba_COPY := .prp
chegar@25854 289 java.corba_CLEAN := .properties
chegar@25854 290
rriggs@27397 291 java.corba_EXCLUDES += \
chegar@25854 292 com/sun/corba/se/PortableActivationIDL \
chegar@25854 293 com/sun/tools/corba/se/logutil \
chegar@25854 294 #
rriggs@27397 295 java.corba_EXCLUDE_FILES += \
chegar@25854 296 com/sun/corba/se/impl/presentation/rmi/JNDIStateFactoryImpl.java \
chegar@25854 297 com/sun/corba/se/spi/presentation/rmi/StubWrapper.java \
chegar@25854 298 com/sun/org/omg/CORBA/IDLTypeOperations.java \
chegar@25854 299 com/sun/org/omg/CORBA/IRObjectOperations.java \
chegar@25854 300 org/omg/PortableInterceptor/UNKNOWN.java \
chegar@25854 301 com/sun/tools/corba/se/idl/ResourceBundleUtil.java \
chegar@25854 302 com/sun/corba/se/impl/presentation/rmi/jndi.properties \
chegar@25854 303 #
chegar@25854 304
chegar@25854 305 ################################################################################
chegar@25854 306
chegar@25854 307 java.xml_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 308 java.xml_CLEAN := .properties
chegar@25854 309
chegar@25854 310 ################################################################################
chegar@25854 311
chegar@25854 312 java.xml.bind_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 313 java.xml.bind_CLEAN := .properties
chegar@25854 314
chegar@25854 315 ################################################################################
chegar@25854 316
chegar@25854 317 java.xml.soap_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 318 java.xml.soap_CLEAN := .properties
chegar@25854 319
chegar@25854 320 ################################################################################
chegar@25854 321
chegar@25854 322 java.xml.ws_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 323 java.xml.ws_COPY := .xml
chegar@25854 324 java.xml.ws_CLEAN := .properties
chegar@25854 325
chegar@25854 326 ################################################################################
chegar@25854 327
darcy@29313 328 java.naming_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
chegar@25854 329 java.naming_CLEAN := jndiprovider.properties
chegar@25854 330
chegar@25854 331 ################################################################################
chegar@25854 332
darcy@29313 333 java.security.saaj_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
chegar@25854 334 java.security.saaj_CLEAN := .properties
chegar@25854 335
chegar@25854 336 ################################################################################
chegar@25854 337
darcy@29863 338 java.security.jgss_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
darcy@29863 339
darcy@29863 340 ################################################################################
darcy@29863 341
darcy@29863 342 java.smartcardio_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
darcy@29863 343
darcy@29863 344 ################################################################################
darcy@29863 345
darcy@29313 346 java.xml.crypto_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:java.*,javax.*'
chegar@25854 347 java.xml.crypto_COPY := .dtd .xml
chegar@25854 348 java.xml.crypto_CLEAN := .properties
chegar@25854 349
chegar@25854 350 ################################################################################
chegar@25854 351
chegar@25854 352 jdk.charsets_COPY := .dat
chegar@25854 353
chegar@25854 354 ################################################################################
chegar@25854 355
darcy@29437 356 jdk.compiler_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:-com.sun.tools.*'
chegar@25854 357 jdk.compiler_COPY := javax.tools.JavaCompilerTool
chegar@27560 358 jdk.compiler_CLEAN_FILES := $(wildcard \
chegar@27560 359 $(patsubst %, $(JDK_TOPDIR)/src/jdk.compiler/share/classes/%/*.properties, \
chegar@27560 360 sun/tools/serialver/resources))
chegar@25854 361
chegar@25854 362 ################################################################################
chegar@25854 363
jlahoda@31512 364 jdk.internal.le_COPY := .properties
jlahoda@31512 365
jlahoda@31512 366 ################################################################################
jlahoda@31512 367
ihse@27595 368 jdk.jcmd_COPY := _options
chegar@25854 369
chegar@25854 370 ################################################################################
chegar@25854 371
attila@34099 372 jdk.dynalink_CLEAN := .properties
attila@34099 373
attila@34099 374 ################################################################################
attila@34099 375
bpatel@33723 376 jdk.javadoc_COPY := .xml .css .js .png
chegar@25854 377
chegar@25854 378 ################################################################################
chegar@25854 379
chegar@25854 380 jdk.rmic_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 381 jdk.rmic_CLEAN := .properties
chegar@25854 382
chegar@25854 383 ################################################################################
chegar@25854 384
chegar@25854 385 # No SCTP implementation on Mac OS X or AIX. These classes should be excluded.
chegar@25854 386 SCTP_IMPL_CLASSES = \
chegar@25854 387 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationChange.java \
chegar@25854 388 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/AssociationImpl.java \
chegar@25854 389 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/PeerAddrChange.java \
chegar@25854 390 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/ResultContainer.java \
chegar@25854 391 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpChannelImpl.java \
chegar@25854 392 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java \
chegar@25854 393 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNet.java \
chegar@25854 394 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpNotification.java \
chegar@25854 395 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java \
chegar@25854 396 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/SendFailed.java \
chegar@25854 397 $(JDK_TOPDIR)/src/jdk.sctp/unix/classes/sun/nio/ch/sctp/Shutdown.java
chegar@25854 398
chegar@25854 399 ifeq ($(OPENJDK_TARGET_OS), macosx)
rriggs@27397 400 jdk.sctp_EXCLUDE_FILES += $(SCTP_IMPL_CLASSES)
chegar@25854 401 endif
chegar@25854 402
chegar@25854 403 ifeq ($(OPENJDK_TARGET_OS),aix)
rriggs@27397 404 jdk.sctp_EXCLUDE_FILES += $(SCTP_IMPL_CLASSES)
chegar@25854 405 endif
chegar@25854 406
chegar@25854 407 ################################################################################
chegar@25854 408
chegar@25854 409 jdk.jconsole_COPY := .gif .png
chegar@25854 410
chegar@25854 411 jdk.jconsole_CLEAN_FILES := $(wildcard \
chegar@25854 412 $(JDK_TOPDIR)/src/jdk.jconsole/share/classes/sun/tools/jconsole/resources/*.properties)
chegar@25854 413
chegar@25854 414 ################################################################################
chegar@25854 415
mchung@30742 416 jdk.jdeps_CLEAN_FILES := $(wildcard \
mchung@30742 417 $(JDK_TOPDIR)/src/jdk.jdeps/share/classes/com/sun/tools/jdeps/resources/*.properties \
mchung@30742 418 $(JDK_TOPDIR)/src/jdk.jdeps/share/classes/com/sun/tools/javap/resources/*.properties)
mchung@30742 419
mchung@30742 420 ################################################################################
mchung@30742 421
rriggs@27397 422 jdk.jdi_EXCLUDES += \
chegar@25854 423 com/sun/tools/example/debug/bdi \
chegar@25854 424 com/sun/tools/example/debug/event \
chegar@25854 425 com/sun/tools/example/debug/gui \
chegar@25854 426 com/sun/jdi/doc-files \
chegar@25854 427 #
chegar@25854 428
chegar@25854 429 jdk.jdi_EXCLUDE_FILES += jdi-overview.html
chegar@25854 430
chegar@25854 431 ################################################################################
chegar@25854 432
chegar@25854 433 jdk.dev_CLEAN_FILES := $(wildcard \
chegar@25854 434 $(patsubst %, $(JDK_TOPDIR)/src/jdk.dev/share/classes/%/*.properties, \
chegar@25854 435 com/sun/tools/script/shell))
chegar@25854 436
chegar@25854 437 jdk.dev_COPY := .js oqlhelp.html .txt
chegar@25854 438
chegar@25854 439 ################################################################################
chegar@25854 440
chegar@25854 441 jdk.jvmstat_COPY := aliasmap
chegar@25854 442
chegar@25854 443 ################################################################################
chegar@25854 444
twisti@33045 445 jdk.vm.ci_EXCLUDE_FILES += \
twisti@33045 446 jdk/vm/ci/options/processor/OptionProcessor.java \
twisti@33045 447 jdk/vm/ci/service/processor/ServiceProviderProcessor.java \
twisti@33045 448 #
twisti@33045 449
twisti@33045 450 jdk.vm.ci_EXCLUDES += \
twisti@33045 451 META-INF/jvmci.options \
twisti@33045 452 META-INF/jvmci.providers \
twisti@33045 453 #
twisti@33045 454
twisti@33045 455 ################################################################################
twisti@33045 456
chegar@25854 457 jdk.xml.bind_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 458 jdk.xml.bind_CLEAN := .properties
chegar@25854 459 jdk.xml.bind_COPY := .xsd JAXBContextFactory.java ZeroOneBooleanAdapter.java
chegar@25854 460
chegar@25854 461 ################################################################################
chegar@25854 462
chegar@25854 463 jdk.xml.ws_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 464 jdk.xml.ws_CLEAN := .properties
chegar@25854 465
chegar@25854 466 ################################################################################
chegar@25854 467
chegar@25854 468 sun.charsets_COPY := .dat
chegar@25854 469
chegar@25854 470 ################################################################################
chegar@25854 471
chegar@25854 472 jdk.localedata_COPY := _dict _th
chegar@25854 473 # Exclude BreakIterator classes that are just used in compile process to generate
chegar@25854 474 # data files and shouldn't go in the product
rriggs@27397 475 jdk.localedata_EXCLUDE_FILES += sun/text/resources/th/BreakIteratorRules_th.java
chegar@25854 476
chegar@25854 477 ################################################################################
erikj@34102 478 # Setup the compilation for the module
chegar@25854 479 #
chegar@25854 480 # Order src dirs in order of override with the most important first. Generated
chegar@25854 481 # source before static source and platform specific source before shared.
chegar@25854 482 #
chegar@25854 483 GENERATED_SRC_DIRS += \
erikj@34102 484 $(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE) \
erikj@34102 485 $(SUPPORT_OUTPUTDIR)/gensrc_no_docs/$(MODULE) \
chegar@25854 486 #
chegar@25854 487
erikj@34102 488 OS_SRC_DIRS += $(JDK_TOPDIR)/src/$(MODULE)/$(OPENJDK_TARGET_OS)/classes
ihse@27586 489 ifneq ($(OPENJDK_TARGET_OS), $(OPENJDK_TARGET_OS_TYPE))
erikj@34102 490 OS_TYPE_SRC_DIRS += $(JDK_TOPDIR)/src/$(MODULE)/$(OPENJDK_TARGET_OS_TYPE)/classes
chegar@25854 491 endif
chegar@25854 492
chegar@25854 493 SHARE_SRC_DIRS += \
erikj@34102 494 $(HOTSPOT_TOPDIR)/src/$(MODULE)/share/classes \
erikj@34102 495 $(JDK_TOPDIR)/src/$(MODULE)/share/classes \
erikj@34102 496 $(LANGTOOLS_TOPDIR)/src/$(MODULE)/share/classes \
erikj@34102 497 $(CORBA_TOPDIR)/src/$(MODULE)/share/classes \
erikj@34102 498 $(JAXP_TOPDIR)/src/$(MODULE)/share/classes \
erikj@34102 499 $(JAXWS_TOPDIR)/src/$(MODULE)/share/classes \
erikj@34102 500 $(NASHORN_TOPDIR)/src/$(MODULE)/share/classes \
chegar@25854 501 #
chegar@25854 502
chegar@25854 503 ALL_SRC_DIRS = \
chegar@25854 504 $(GENERATED_SRC_DIRS) \
chegar@25854 505 $(OS_SRC_DIRS) \
ihse@27586 506 $(OS_TYPE_SRC_DIRS) \
chegar@25854 507 $(SHARE_SRC_DIRS) \
chegar@25854 508 #
chegar@25854 509
chegar@25854 510 # The JDK_USER_DEFINED_FILTER is a poor man's incremental build: by specifying
chegar@25854 511 # JDK_FILTER at the make command line, only a subset of the JDK java files will
chegar@25854 512 # be recompiled. If multiple paths are separated by comma, convert that into a
chegar@25854 513 # space separated list.
chegar@25854 514 JDK_USER_DEFINED_FILTER := $(strip $(subst $(COMMA),$(SPACE), $(JDK_FILTER)))
chegar@25854 515
alundblad@31014 516 # Create an empty directory to set the bootclasspath to.
jlahoda@32066 517 EMPTY_DIR := $(SUPPORT_OUTPUTDIR)/empty-dir
jlahoda@32066 518 $(call MakeDir, $(EMPTY_DIR))
alundblad@31014 519
erikj@34102 520 # Find the module dependencies by parsing modules.list file
erikj@34102 521 DEPS := $(call FindDepsForModule, $(MODULE))
chegar@25854 522
erikj@34102 523 CLASSPATH := $(foreach d, $(DEPS), $(if $($d_BIN), $($d_BIN), \
erikj@34102 524 $(JDK_OUTPUTDIR)/modules/$d))
erikj@34102 525 # When crypto classes are prebuilt, need to look for classes already in
erikj@34102 526 # output dir.
erikj@34102 527 ifneq ($(BUILD_CRYPTO), true)
erikj@34102 528 CLASSPATH += $(JDK_OUTPUTDIR)/modules/$(MODULE)
erikj@34102 529 endif
erikj@34102 530 JAVAC_FLAGS := -bootclasspath $(EMPTY_DIR) -extdirs $(EMPTY_DIR) \
erikj@34102 531 -endorseddirs $(EMPTY_DIR) $($(MODULE)_ADD_JAVAC_FLAGS)
chegar@25854 532
erikj@34102 533 $(eval $(call SetupJavaCompilation, $(MODULE), \
erikj@34102 534 SETUP := $(if $($(MODULE)_SETUP), $($(MODULE)_SETUP), GENERATE_JDKBYTECODE), \
erikj@34102 535 SRC := $(if $($(MODULE)_SRC), $($(MODULE)_SRC), $(wildcard $(ALL_SRC_DIRS))), \
erikj@34102 536 INCLUDES := $(JDK_USER_DEFINED_FILTER),\
erikj@34102 537 BIN := $(if $($(MODULE)_BIN), $($(MODULE)_BIN), $(JDK_OUTPUTDIR)/modules/$(MODULE)), \
erikj@34102 538 HEADERS := $(SUPPORT_OUTPUTDIR)/headers/$(MODULE), \
erikj@34102 539 CLASSPATH := $(CLASSPATH), \
erikj@34102 540 ADD_JAVAC_FLAGS := $($(MODULE)_ADD_JAVAC_FLAGS) $(JAVAC_FLAGS) \
erikj@34102 541 ))
chegar@25854 542
erikj@34102 543 TARGETS += $($(MODULE)) $($(MODULE)_COPY_EXTRA)
chegar@25854 544
erikj@34102 545 # Declare dependencies between java compilations of different modules.
erikj@34102 546 # Since the other modules are declared in different invocations of this file,
erikj@34102 547 # use the macro to find the correct target file to depend on.
erikj@34102 548 # Only the javac compilation actually depends on other modules so limit
erikj@34102 549 # dependency declaration to that by using the *_COMPILE_TARGET variable.
erikj@34102 550 $($(MODULE)_COMPILE_TARGET): $(foreach d, $($(MODULE)_DEPS), \
erikj@34102 551 $(call SetupJavaCompilationCompileTarget, $d, \
erikj@34102 552 $(if $($d_BIN), $($d_BIN), $(JDK_OUTPUTDIR)/modules/$d)))
chegar@25854 553
chegar@25854 554 ################################################################################
chegar@25854 555 # Copy zh_HK properties files from zh_TW
chegar@25854 556
chegar@25854 557 $(JDK_OUTPUTDIR)/modules/%_zh_HK.properties: $(JDK_OUTPUTDIR)/modules/%_zh_TW.properties
chegar@25854 558 $(install-file)
chegar@25854 559
erikj@34102 560 CreateHkTargets = \
erikj@34102 561 $(patsubst $(JDK_TOPDIR)/src/%, $(JDK_OUTPUTDIR)/modules/%, \
erikj@34102 562 $(subst /share/classes,, \
erikj@34102 563 $(subst _zh_TW,_zh_HK, $(filter %_zh_TW.properties, $1))))
chegar@25854 564
erikj@34102 565 ifeq ($(MODULE), java.sql.rowset)
erikj@34102 566 TARGETS += $(call CreateHkTargets, $(java.sql.rowset_CLEAN_FILES))
erikj@34102 567 endif
chegar@25854 568
erikj@34102 569 ifeq ($(MODULE), java.rmi)
erikj@34102 570 TARGETS += $(call CreateHkTargets, $(java.rmi_CLEAN_FILES))
erikj@34102 571 endif
chegar@25854 572
erikj@34102 573 ################################################################################
erikj@34102 574
erikj@34102 575 all: $(TARGETS)
erikj@34102 576
erikj@34102 577 .PHONY: all