annotate make/CompileJavaModules.gmk @ 1926:94508d813b04

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