annotate make/CompileJavaModules.gmk @ 42531:37ee95196b17

8166417: Integrate Graal-core into JDK for AOT compiler Reviewed-by: iveresov, erikj, ihse, mchung
author kvn
date Sun, 11 Dec 2016 12:09:13 -0800
parents bf171114688b
children 4780f4130eb0
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 \
prr@42137 98 '-Xdoclint/package:java.*,javax.*' -Xlint: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
jlahoda@41661 351 jdk.compiler_ADD_JAVAC_FLAGS := -Xdoclint:all/protected '-Xdoclint/package:-com.sun.tools.*,-jdk.internal.*' \
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
erikj@34116 359 jdk.hotspot.agent_ADD_JAVAC_FLAGS := $(DISABLE_WARNINGS),-overrides
ysuenaga@36290 360 jdk.hotspot.agent_COPY := .gif .png sa.js .properties
erikj@34116 361
erikj@34116 362 ################################################################################
erikj@34116 363
rfield@41870 364 jdk.editpad_COPY := .properties
rfield@41870 365
rfield@41870 366 ################################################################################
rfield@41870 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
kvn@42531 451 # -parameters provides method's parameters information in class file,
kvn@42531 452 # JVMCI compilers make use of that information for various sanity checks.
kvn@42531 453 # Don't use Indy strings concatenation to have good JVMCI startup performance.
kvn@42531 454
kvn@42531 455 jdk.vm.ci_ADD_JAVAC_FLAGS := -parameters -Xlint:-exports -XDstringConcat=inline
kvn@42531 456
kvn@42531 457 ################################################################################
kvn@42531 458
kvn@42531 459 jdk.vm.compiler_ADD_JAVAC_FLAGS := -parameters -XDstringConcat=inline
kvn@42531 460
kvn@42531 461 jdk.vm.compiler_EXCLUDES += \
kvn@42531 462 org.graalvm.compiler.core.match.processor \
kvn@42531 463 org.graalvm.compiler.nodeinfo.processor \
kvn@42531 464 org.graalvm.compiler.options.processor \
kvn@42531 465 org.graalvm.compiler.serviceprovider.processor \
kvn@42531 466 org.graalvm.compiler.replacements.verifier \
kvn@42531 467 org.graalvm.compiler.api.directives.test \
kvn@42531 468 org.graalvm.compiler.api.test \
kvn@42531 469 org.graalvm.compiler.asm.aarch64.test \
kvn@42531 470 org.graalvm.compiler.asm.amd64.test \
kvn@42531 471 org.graalvm.compiler.asm.sparc.test \
kvn@42531 472 org.graalvm.compiler.asm.test \
kvn@42531 473 org.graalvm.compiler.core.amd64.test \
kvn@42531 474 org.graalvm.compiler.core.sparc.test \
kvn@42531 475 org.graalvm.compiler.core.test \
kvn@42531 476 org.graalvm.compiler.debug.test \
kvn@42531 477 org.graalvm.compiler.graph.test \
kvn@42531 478 org.graalvm.compiler.hotspot.amd64.test \
kvn@42531 479 org.graalvm.compiler.hotspot.lir.test \
kvn@42531 480 org.graalvm.compiler.hotspot.test \
kvn@42531 481 org.graalvm.compiler.jtt \
kvn@42531 482 org.graalvm.compiler.lir.jtt \
kvn@42531 483 org.graalvm.compiler.lir.test \
kvn@42531 484 org.graalvm.compiler.microbenchmarks \
kvn@42531 485 org.graalvm.compiler.nodes.test \
kvn@42531 486 org.graalvm.compiler.options.test \
kvn@42531 487 org.graalvm.compiler.phases.common.test \
kvn@42531 488 org.graalvm.compiler.replacements.test \
kvn@42531 489 org.graalvm.compiler.test \
kvn@42531 490 org.graalvm.compiler.virtual.bench \
kvn@42531 491 #
jlahoda@41271 492
jlahoda@41271 493 ################################################################################
jlahoda@41271 494
chegar@25854 495 jdk.xml.bind_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 496 jdk.xml.bind_CLEAN := .properties
chegar@25854 497 jdk.xml.bind_COPY := .xsd JAXBContextFactory.java ZeroOneBooleanAdapter.java
chegar@25854 498
chegar@25854 499 ################################################################################
chegar@25854 500
chegar@25854 501 jdk.xml.ws_SETUP := GENERATE_JDKBYTECODE_NOWARNINGS
chegar@25854 502 jdk.xml.ws_CLEAN := .properties
chegar@25854 503
chegar@25854 504 ################################################################################
chegar@25854 505
chegar@25854 506 sun.charsets_COPY := .dat
chegar@25854 507
chegar@25854 508 ################################################################################
chegar@25854 509
chegar@25854 510 jdk.localedata_COPY := _dict _th
chegar@25854 511 # Exclude BreakIterator classes that are just used in compile process to generate
chegar@25854 512 # data files and shouldn't go in the product
naoto@40783 513 jdk.localedata_EXCLUDE_FILES += sun/text/resources/ext/BreakIteratorRules_th.java
chegar@25854 514
chegar@25854 515 ################################################################################
erikj@41658 516 # If this is an imported module that has prebuilt classes, only compile
erikj@41658 517 # module-info.java.
erikj@41658 518 ifneq ($(wildcard $(IMPORT_MODULES_CLASSES)/$(MODULE)), )
erikj@41658 519 $(MODULE)_INCLUDE_FILES := module-info.java
erikj@41658 520 endif
erikj@41658 521
erikj@41658 522 ################################################################################
erikj@34102 523 # Setup the compilation for the module
chegar@25854 524 #
erikj@37030 525 MODULE_SRC_DIRS := $(call FindModuleSrcDirs, $(MODULE))
chegar@25854 526
chegar@25854 527 # The JDK_USER_DEFINED_FILTER is a poor man's incremental build: by specifying
chegar@25854 528 # JDK_FILTER at the make command line, only a subset of the JDK java files will
chegar@25854 529 # be recompiled. If multiple paths are separated by comma, convert that into a
chegar@25854 530 # space separated list.
chegar@25854 531 JDK_USER_DEFINED_FILTER := $(strip $(subst $(COMMA),$(SPACE), $(JDK_FILTER)))
erikj@38847 532 ifeq ($(JDK_FILTER), )
erikj@38847 533 FAIL_NO_SRC := true
erikj@38847 534 else
erikj@38847 535 # When using JDK_FILTER, most module java compilations will end up finding
erikj@38847 536 # no source files. Don't let that fail the build.
erikj@38847 537 FAIL_NO_SRC := false
erikj@38847 538 endif
chegar@25854 539
erikj@37030 540 # Get the complete module source path.
erikj@37030 541 MODULESOURCEPATH := $(call GetModuleSrcPath)
alundblad@31014 542
erikj@37030 543 # Add imported modules to the modulepath
erikj@37030 544 MODULEPATH := $(call PathList, $(IMPORT_MODULES_CLASSES))
chegar@25854 545
alanb@36506 546 ifeq ($(MODULE), jdk.vm.ci)
alanb@36506 547 ## WORKAROUND jdk.vm.ci source structure issue
alanb@36506 548 JVMCI_MODULESOURCEPATH := $(MODULESOURCEPATH) \
alanb@36506 549 $(subst /$(MODULE)/,/*/, $(filter-out %processor/src, \
alanb@36506 550 $(wildcard $(HOTSPOT_TOPDIR)/src/jdk.vm.ci/share/classes/*/src)))
erikj@37030 551 MODULESOURCEPATH := $(call PathList, $(JVMCI_MODULESOURCEPATH))
alanb@36506 552 endif
alanb@36506 553
kvn@42531 554 ifeq ($(MODULE), jdk.vm.compiler)
kvn@42531 555 ## WORKAROUND jdk.vm.compiler source structure issue
kvn@42531 556 VM_COMPILER_MODULESOURCEPATH := $(MODULESOURCEPATH) \
kvn@42531 557 $(subst /$(MODULE)/,/*/, $(filter-out %processor/src %test/src %jtt/src %bench/src %microbenchmarks/src, \
kvn@42531 558 $(wildcard $(HOTSPOT_TOPDIR)/src/$(MODULE)/share/classes/*/src)))
kvn@42531 559 MODULESOURCEPATH := $(call PathList, $(VM_COMPILER_MODULESOURCEPATH))
kvn@42531 560 endif
kvn@42531 561
erikj@34102 562 $(eval $(call SetupJavaCompilation, $(MODULE), \
erikj@34102 563 SETUP := $(if $($(MODULE)_SETUP), $($(MODULE)_SETUP), GENERATE_JDKBYTECODE), \
alanb@36506 564 MODULE := $(MODULE), \
alanb@36506 565 SRC := $(wildcard $(MODULE_SRC_DIRS)), \
erikj@38847 566 INCLUDES := $(JDK_USER_DEFINED_FILTER), \
erikj@38847 567 FAIL_NO_SRC := $(FAIL_NO_SRC), \
alanb@36506 568 BIN := $(if $($(MODULE)_BIN), $($(MODULE)_BIN), $(JDK_OUTPUTDIR)/modules), \
alanb@36506 569 HEADERS := $(SUPPORT_OUTPUTDIR)/headers, \
alanb@36506 570 ADD_JAVAC_FLAGS := \
alanb@36506 571 $($(MODULE)_ADD_JAVAC_FLAGS) \
mchung@40241 572 --module-source-path $(MODULESOURCEPATH) \
mchung@40241 573 --module-path $(MODULEPATH) \
mchung@40611 574 --system none, \
erikj@34102 575 ))
alanb@36506 576
erikj@34102 577 TARGETS += $($(MODULE)) $($(MODULE)_COPY_EXTRA)
chegar@25854 578
erikj@34102 579 # Declare dependencies between java compilations of different modules.
erikj@34102 580 # Since the other modules are declared in different invocations of this file,
erikj@34102 581 # use the macro to find the correct target file to depend on.
erikj@34102 582 # Only the javac compilation actually depends on other modules so limit
erikj@34102 583 # dependency declaration to that by using the *_COMPILE_TARGET variable.
alanb@36506 584 $($(MODULE)_COMPILE_TARGET): $(foreach d, $(call FindDepsForModule, $(MODULE)), \
erikj@34102 585 $(call SetupJavaCompilationCompileTarget, $d, \
erikj@34102 586 $(if $($d_BIN), $($d_BIN), $(JDK_OUTPUTDIR)/modules/$d)))
chegar@25854 587
chegar@25854 588 ################################################################################
chegar@25854 589 # Copy zh_HK properties files from zh_TW
chegar@25854 590
chegar@25854 591 $(JDK_OUTPUTDIR)/modules/%_zh_HK.properties: $(JDK_OUTPUTDIR)/modules/%_zh_TW.properties
chegar@25854 592 $(install-file)
chegar@25854 593
erikj@34102 594 CreateHkTargets = \
erikj@34102 595 $(patsubst $(JDK_TOPDIR)/src/%, $(JDK_OUTPUTDIR)/modules/%, \
erikj@34102 596 $(subst /share/classes,, \
erikj@34102 597 $(subst _zh_TW,_zh_HK, $(filter %_zh_TW.properties, $1))))
chegar@25854 598
erikj@34102 599 ifeq ($(MODULE), java.sql.rowset)
erikj@34102 600 TARGETS += $(call CreateHkTargets, $(java.sql.rowset_CLEAN_FILES))
erikj@34102 601 endif
chegar@25854 602
erikj@34102 603 ifeq ($(MODULE), java.rmi)
erikj@34102 604 TARGETS += $(call CreateHkTargets, $(java.rmi_CLEAN_FILES))
erikj@34102 605 endif
chegar@25854 606
erikj@34102 607 ################################################################################
alanb@36506 608 # If this is an imported module, copy the pre built classes and resources into
alanb@36506 609 # the modules output dir
alanb@36506 610
alanb@36506 611 ifneq ($(wildcard $(IMPORT_MODULES_CLASSES)/$(MODULE)), )
alanb@36506 612 $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker: \
alanb@36506 613 $(call CacheFind, $(IMPORT_MODULES_CLASSES)/$(MODULE))
erikj@37037 614 $(call MakeDir, $(@D))
erikj@37037 615 # Do not delete marker and build meta data files
erikj@37037 616 $(RM) -r $(filter-out $(@D)/_%, $(wildcard $(@D)/*))
alanb@36506 617 $(CP) -R $(IMPORT_MODULES_CLASSES)/$(MODULE)/* $(@D)/
alanb@36506 618 $(TOUCH) $@
alanb@36506 619
alanb@36506 620 TARGETS += $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker
alanb@36506 621
alanb@36506 622 # Add this dependency to avoid a race between compiling module-info.java and
alanb@36506 623 # importing the classes.
alanb@36506 624 $($(MODULE)_COMPILE_TARGET): $(JDK_OUTPUTDIR)/modules/$(MODULE)/_imported.marker
alanb@36506 625 endif
alanb@36506 626
alanb@36506 627 ################################################################################
alanb@36506 628
alanb@36506 629 $(eval $(call IncludeCustomExtension, , CompileJavaModules-post.gmk))
alanb@36506 630
alanb@36506 631 ################################################################################
erikj@34102 632
erikj@34102 633 all: $(TARGETS)
erikj@34102 634
erikj@34102 635 .PHONY: all