annotate makefiles/CompileJavaClasses.gmk @ 6143:df5619994dc3

Added tag jdk8-b66 for changeset 4d337fae2250
author katleman
date Thu, 29 Nov 2012 11:31:01 -0800
parents 6ffd64541a6c 63726e5b90da
children 0fda013e4638 38ec2838dd86
rev   line source
ohair@5221 1 #
ohair@5221 2 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
ohair@5221 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@5221 4 #
ohair@5221 5 # This code is free software; you can redistribute it and/or modify it
ohair@5221 6 # under the terms of the GNU General Public License version 2 only, as
ohair@5221 7 # published by the Free Software Foundation. Oracle designates this
ohair@5221 8 # particular file as subject to the "Classpath" exception as provided
ohair@5221 9 # by Oracle in the LICENSE file that accompanied this code.
ohair@5221 10 #
ohair@5221 11 # This code is distributed in the hope that it will be useful, but WITHOUT
ohair@5221 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@5221 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@5221 14 # version 2 for more details (a copy is included in the LICENSE file that
ohair@5221 15 # accompanied this code).
ohair@5221 16 #
ohair@5221 17 # You should have received a copy of the GNU General Public License version
ohair@5221 18 # 2 along with this work; if not, write to the Free Software Foundation,
ohair@5221 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@5221 20 #
ohair@5221 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@5221 22 # or visit www.oracle.com if you need additional information or have any
ohair@5221 23 # questions.
ohair@5221 24 #
ohair@5221 25
ohair@5221 26 default: all
ohair@5221 27
ohair@5221 28 include $(SPEC)
ohair@5221 29 include MakeBase.gmk
ohair@5221 30 include JavaCompilation.gmk
ohair@5221 31
ohair@5221 32 # Setup the java compilers for the JDK build.
ohair@5221 33 include Setup.gmk
ohair@5221 34
erikj@5507 35 JARS :=
erikj@5507 36 EXFILES :=
erikj@5507 37 EXCLUDES :=
erikj@5507 38
erikj@5507 39 ##########################################################################################
erikj@5507 40
erikj@5507 41 EXCLUDES += com/sun/pept \
ohair@5221 42 com/sun/tools/example/trace\
ohair@5221 43 com/sun/tools/example/debug/bdi\
ohair@5221 44 com/sun/tools/example/debug/event\
ohair@5221 45 com/sun/tools/example/debug/gui \
ohair@5221 46 com/oracle/security
ohair@5221 47
ohair@5221 48 ifdef OPENJDK
erikj@5507 49 EXCLUDES+= sun/dc \
erikj@5507 50 com/sun/jmx/snmp \
ohair@5221 51 sun/management/snmp \
ohair@5221 52 com/sun/script
ohair@5221 53 endif
ohair@5221 54
erikj@5507 55 ifndef OPENJDK
erikj@5507 56 # There exists two versions of this file...
erikj@5507 57 EXFILES := $(JDK_TOPDIR)/src/share/classes/javax/crypto/JarVerifier.java
ohair@5819 58
ohair@5819 59 ifeq ($(OPENJDK_TARGET_OS),windows)
ohair@5819 60 # This gets built on unix platforms implicitly in the old build even though
ohair@5819 61 # it's excluded in the closed build.
ohair@5819 62 EXCLUDES+=sun/java2d/pisces
ohair@5819 63 endif
ohair@5819 64
erikj@5507 65 endif
erikj@5507 66
erikj@5596 67 ifneq ($(OPENJDK_TARGET_OS),solaris)
ohair@5221 68 # Exclude Solaris nio and two security related files in src/share/classes
erikj@5507 69 EXFILES += SolarisAclFileAttributeView.java \
ohair@5221 70 SolarisFileStore.java \
ohair@5221 71 SolarisFileSystem.java \
ohair@5221 72 SolarisFileSystemProvider.java \
ohair@5221 73 SolarisNativeDispatcher.java \
ohair@5221 74 SolarisUserDefinedFileAttributeView.java \
ohair@5221 75 SolarisWatchService.java \
ohair@5221 76 SolarisAclFileAttributeView.java \
ohair@5221 77 SolarisLoginModule.java \
ohair@5221 78 SolarisSystem.java \
ohair@6025 79 sun/nio/ch/DevPollArrayWrapper.java \
ohair@6025 80 sun/nio/ch/DevPollSelectorImpl.java \
ohair@6025 81 sun/nio/ch/DevPollSelectorProvider.java \
erikj@5596 82 sun/nio/ch/EventPortSelectorImpl.java \
erikj@5596 83 sun/nio/ch/EventPortSelectorProvider.java \
erikj@5596 84 sun/nio/ch/EventPortWrapper.java \
ohair@6025 85 sun/nio/ch/SolarisAsynchronousChannelProvider.java \
ohair@6025 86 sun/nio/ch/SolarisEventPort.java \
ohair@5221 87 sun/tools/attach/SolarisAttachProvider.java \
ohair@5221 88 sun/tools/attach/SolarisVirtualMachine.java
ohair@5221 89 endif
ohair@5221 90
erikj@5507 91 # In the old build, this isn't excluded on macosx, even though it probably
erikj@5507 92 # should be.
erikj@5596 93 ifneq ($(OPENJDK_TARGET_OS),macosx)
erikj@5507 94 EXFILES+=WrapperGenerator.java
erikj@5507 95 endif
ohair@5221 96
erikj@5596 97 ifneq ($(OPENJDK_TARGET_OS),windows)
ohair@5221 98 # Exclude Window security related files in src/share/classes
ohair@5221 99 EXFILES+=NTLoginModule.java \
ohair@5221 100 NTSystem.java
ohair@5819 101 else
ohair@5819 102 EXFILES+=UnixLoginModule.java \
ohair@5819 103 UnixSystem.java
ohair@5221 104 endif
ohair@5221 105
erikj@5596 106 ifeq ($(OPENJDK_TARGET_OS),windows)
erikj@5507 107 # Don't build GTK L&F on Windows
ohair@5819 108 EXCLUDES+=com/sun/java/swing/plaf/gtk
ohair@5221 109 endif
ohair@5221 110
erikj@5596 111 ifneq ($(OPENJDK_TARGET_OS),linux)
ohair@5221 112 EXFILES+=sun/tools/attach/LinuxAttachProvider.java \
ohair@6025 113 sun/tools/attach/LinuxVirtualMachine.java \
ohair@6025 114 sun/nio/ch/EPoll.java \
ohair@6025 115 sun/nio/ch/EPollArrayWrapper.java \
ohair@6025 116 sun/nio/ch/EPollPort.java \
ohair@6025 117 sun/nio/ch/EPollSelectorImpl.java \
ohair@6025 118 sun/nio/ch/EPollSelectorProvider.java \
ohair@6025 119 sun/nio/ch/LinuxAsynchronousChannelProvider.java \
ohair@6025 120 sun/nio/fs/LinuxDosFileAttributeView.java \
ohair@6025 121 sun/nio/fs/LinuxFileStore.java \
ohair@6025 122 sun/nio/fs/LinuxFileSystem.java \
ohair@6025 123 sun/nio/fs/LinuxFileSystemProvider.java \
ohair@6025 124 sun/nio/fs/LinuxNativeDispatcher.java \
ohair@6025 125 sun/nio/fs/LinuxUserDefinedFileAttributeView.java \
ohair@6025 126 sun/nio/fs/LinuxWatchService.java
ohair@5221 127 endif
ohair@5221 128
erikj@5596 129 ifneq ($(OPENJDK_TARGET_OS),macosx)
ohair@6025 130 EXFILES+=sun/nio/ch/BsdAsynchronousChannelProvider.java \
ohair@6025 131 sun/nio/ch/KQueue.java \
ohair@6025 132 sun/nio/ch/KQueuePort.java \
ohair@6025 133 sun/nio/fs/BsdFileStore.java \
ohair@5221 134 sun/nio/fs/BsdFileSystem.java \
ohair@5221 135 sun/nio/fs/BsdFileSystemProvider.java \
ohair@5221 136 sun/nio/fs/BsdNativeDispatcher.java \
ohair@5819 137 sun/nio/fs/MacOSXFileSystemProvider.java \
ohair@5819 138 sun/nio/fs/MacOSXFileSystem.java \
ohair@5819 139 sun/nio/fs/MacOSXNativeDispatcher.java \
ohair@5221 140 sun/tools/attach/BsdAttachProvider.java \
ohair@5221 141 sun/tools/attach/BsdVirtualMachine.java
ohair@5221 142 endif
ohair@5221 143
ohair@5221 144 # Exclude BreakIterator classes that are just used in compile process to generate
ohair@5221 145 # data files and shouldn't go in the product
ohair@5221 146 EXFILES+=sun/text/resources/BreakIteratorRules.java \
ohair@5819 147 sun/text/resources/BreakIteratorRules_th.java
ohair@5221 148
ohair@5221 149 # TODO: Add BUILD_HEADLESS_ONLY to configure?
ohair@5221 150 ifdef BUILD_HEADLESS_ONLY
ohair@5221 151 EXCLUDES+=sun/applet
ohair@5221 152 endif
ohair@5221 153
ohair@5221 154 ifdef OPENJDK
ohair@5221 155 EXCLUDES+=sun/java2d/cmm/kcms
ohair@5221 156 endif
ohair@5221 157
erikj@5507 158 # Used on windows and macosx
erikj@5596 159 ifeq (,$(filter $(OPENJDK_TARGET_OS), windows macosx))
ohair@5221 160 EXFILES+=sun/awt/AWTCharset.java
ohair@5221 161 endif
ohair@5221 162
erikj@5596 163 ifneq ($(OPENJDK_TARGET_OS), macosx)
ohair@6025 164 EXFILES+=sun/awt/X11/ScreenFormat.java \
ohair@6025 165 sun/awt/X11/XArc.java \
ohair@6025 166 sun/awt/X11/XChar2b.java \
ohair@6025 167 sun/awt/X11/XCharStruct.java \
ohair@6025 168 sun/awt/X11/XClassHint.java \
ohair@6025 169 sun/awt/X11/XComposeStatus.java \
ohair@6025 170 sun/awt/X11/XExtCodes.java \
ohair@6025 171 sun/awt/X11/XFontProp.java \
ohair@6025 172 sun/awt/X11/XFontSetExtents.java \
ohair@6025 173 sun/awt/X11/XFontStruct.java \
ohair@6025 174 sun/awt/X11/XGCValues.java \
ohair@6025 175 sun/awt/X11/XHostAddress.java \
ohair@6025 176 sun/awt/X11/XIMCallback.java \
ohair@6025 177 sun/awt/X11/XIMHotKeyTrigger.java \
ohair@6025 178 sun/awt/X11/XIMHotKeyTriggers.java \
ohair@6025 179 sun/awt/X11/XIMPreeditCaretCallbackStruct.java \
ohair@6025 180 sun/awt/X11/XIMPreeditDrawCallbackStruct.java \
ohair@6025 181 sun/awt/X11/XIMPreeditStateNotifyCallbackStruct.java \
ohair@6025 182 sun/awt/X11/XIMStatusDrawCallbackStruct.java \
ohair@6025 183 sun/awt/X11/XIMStringConversionCallbackStruct.java \
ohair@6025 184 sun/awt/X11/XIMStringConversionText.java \
ohair@6025 185 sun/awt/X11/XIMStyles.java \
ohair@6025 186 sun/awt/X11/XIMText.java \
ohair@6025 187 sun/awt/X11/XIMValuesList.java \
ohair@6025 188 sun/awt/X11/XImage.java \
ohair@6025 189 sun/awt/X11/XKeyboardControl.java \
ohair@6025 190 sun/awt/X11/XKeyboardState.java \
ohair@6025 191 sun/awt/X11/XOMCharSetList.java \
ohair@6025 192 sun/awt/X11/XOMFontInfo.java \
ohair@6025 193 sun/awt/X11/XOMOrientation.java \
ohair@6025 194 sun/awt/X11/XPoint.java \
ohair@6025 195 sun/awt/X11/XRectangle.java \
ohair@6025 196 sun/awt/X11/XSegment.java \
ohair@6025 197 sun/awt/X11/XStandardColormap.java \
ohair@6025 198 sun/awt/X11/XTextItem.java \
ohair@6025 199 sun/awt/X11/XTextItem16.java \
ohair@6025 200 sun/awt/X11/XTextProperty.java \
ohair@6025 201 sun/awt/X11/XTimeCoord.java \
ohair@6025 202 sun/awt/X11/XWindowChanges.java \
ohair@6025 203 sun/awt/X11/XdbeSwapInfo.java \
ohair@6025 204 sun/awt/X11/XmbTextItem.java \
ohair@6025 205 sun/awt/X11/XwcTextItem.java
erikj@5507 206 endif
ohair@5221 207
ohair@5221 208 # Exclude another implicitly not included file.
ohair@5221 209 EXFILES+=sun/util/locale/AsciiUtil.java
ohair@5221 210
erikj@5596 211 ifeq (,$(filter $(OPENJDK_TARGET_OS), solaris macosx))
erikj@5507 212 #
erikj@5507 213 # only solaris and macosx
erikj@5507 214 #
ohair@5221 215 EXFILES+=sun/nio/fs/PollingWatchService.java
ohair@5221 216 endif
ohair@5221 217
ohair@5221 218 # TODO: Fix when converting NIO
ohair@5221 219 # Exclude *-linux-arm.java and *-linux-ppc.java from closed.
ohair@5221 220 EXFILES+=-linux-arm.java \
ohair@5221 221 -linux-ppc.java
ohair@5221 222
ohair@5221 223 # TODO: Is this necessary?
erikj@5596 224 ifeq ($(OPENJDK_TARGET_OS), windows)
erikj@5507 225 EXFILES+=sun/nio/ch/AbstractPollSelectorImpl.java \
erikj@5507 226 sun/nio/ch/DevPollArrayWrapper.java \
erikj@5507 227 sun/nio/ch/DevPollSelectorImpl.java \
erikj@5507 228 sun/nio/ch/DevPollSelectorProvider.java \
erikj@5507 229 sun/nio/ch/InheritedChannel.java \
erikj@5507 230 sun/nio/ch/PollSelectorProvider.java \
erikj@5507 231 sun/nio/ch/PollSelectorImpl.java \
erikj@5507 232 sun/nio/ch/Port.java \
erikj@5507 233 sun/nio/ch/SimpleAsynchronousFileChannelImpl.java \
erikj@5507 234 sun/nio/ch/SolarisAsynchronousChannelProvider.java \
erikj@5507 235 sun/nio/ch/SolarisEventPort.java \
erikj@5507 236 sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java \
erikj@5507 237 sun/nio/ch/UnixAsynchronousSocketChannelImpl.java
ohair@5221 238 EXFILES+=sun/net/sdp/SdpProvider.java
ohair@5221 239 else
ohair@5221 240 EXFILES+=sun/net/www/protocol/http/ntlm/NTLMAuthSequence.java
ohair@5221 241 endif
ohair@5221 242
ohair@6025 243 # Exclude nimbus files from rt.jar
ohair@6025 244 EXFILES+=javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
ohair@6025 245 javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
ohair@6025 246 javax/swing/plaf/nimbus/ScrollBarPainter.java \
ohair@6025 247 javax/swing/plaf/nimbus/SliderPainter.java \
ohair@6025 248 javax/swing/plaf/nimbus/SpinnerPainter.java \
ohair@6025 249 javax/swing/plaf/nimbus/SplitPanePainter.java \
ohair@6025 250 javax/swing/plaf/nimbus/TabbedPanePainter.java
erikj@5507 251
ohair@5221 252 # Acquire a list of files that should be copied straight over to the classes.
ohair@5221 253 include CopyIntoClasses.gmk
ohair@5221 254 # Now we have COPY_PATTERNS, COPY_FILES and COPY_EXTRA
ohair@5221 255
ohair@5221 256 ifndef OPENJDK
ohair@6025 257 CLOSED_SRC_DIRS:=$(JDK_TOPDIR)/src/closed/share/classes
ohair@6025 258 ifneq ($(OPENJDK_TARGET_OS_API_DIR),windows)
ohair@6025 259 CLOSED_SRC_DIRS += $(JDK_TOPDIR)/src/closed/$(OPENJDK_TARGET_OS_API_DIR)/classes
ohair@6025 260 endif
ohair@5221 261 endif
ohair@5221 262
erikj@5507 263 MACOSX_SRC_DIRS :=
erikj@5596 264 ifeq ($(OPENJDK_TARGET_OS),macosx)
erikj@5507 265 MACOSX_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/classes
erikj@5507 266
erikj@5507 267 # this files are duplicated in MACOSX_SRC_DIRS
erikj@5507 268 EXFILES+= $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/DefaultSelectorProvider.java \
erikj@5507 269 $(JDK_TOPDIR)/src/solaris/classes/sun/java2d/BackBufferCapsProvider.java \
erikj@5507 270 $(JDK_TOPDIR)/src/solaris/classes/java/net/DefaultInterface.java \
naoto@5750 271 $(JDK_TOPDIR)/src/solaris/classes/java/lang/ClassLoaderHelper.java \
ohair@5819 272 $(JDK_TOPDIR)/src/solaris/classes/sun/util/locale/provider/HostLocaleProviderAdapterImpl.java \
ohair@5819 273 $(JDK_TOPDIR)/src/solaris/classes/sun/nio/fs/GnomeFileTypeDetector.java
erikj@5596 274
erikj@5596 275 # JObjC.jar contains 1.5 byte-code...so skip it here :-(
erikj@5596 276 # MACOSX_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/native/jobjc/src
erikj@5596 277 # EXCLUDES+= tests/java/com/apple/jobjc
erikj@5596 278
erikj@5596 279 EXCLUDES+= com/apple/jobjc
erikj@5507 280 endif
erikj@5507 281
erikj@5507 282 # The exception handling of swing beaninfo
erikj@5507 283 # These resources violates the convention of having code and resources together under
erikj@5507 284 # $(JDK_TOPDIR)/src/.../classes directories
erikj@5507 285 $(JDK_OUTPUTDIR)/classes/javax/swing/beaninfo/images/%.gif: $(JDK_TOPDIR)/make/tools/swing-beans/beaninfo/images/%.gif
erikj@5507 286 $(MKDIR) -p $(@D)
erikj@5507 287 $(CP) $< $@
erikj@5507 288
ohair@5819 289 # The JDK_USER_DEFINED_FILTER is a poor man's incremental build: by specifying
ohair@5819 290 # JDK_FILTER at the make command line, only a subset of the JDK java files will
ohair@5819 291 # be recompiled. If multiple paths are separated by comma, convert that into a
ohair@5819 292 # space separated list.
ohair@5819 293 JDK_USER_DEFINED_FILTER:=$(strip $(subst $(COMMA),$(SPACE),$(JDK_FILTER)))
ohair@5819 294
ohair@5221 295 $(eval $(call SetupJavaCompilation,BUILD_JDK,\
ohair@5221 296 SETUP:=GENERATE_JDKBYTECODE,\
ohair@5221 297 SRC:=$(JDK_TOPDIR)/src/share/classes \
ohair@5819 298 $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes \
erikj@5507 299 $(MACOSX_SRC_DIRS) \
ohair@5221 300 $(JDK_OUTPUTDIR)/gensrc \
ohair@5221 301 $(CLOSED_SRC_DIRS),\
ohair@5819 302 INCLUDES:=$(JDK_USER_DEFINED_FILTER),\
ohair@5221 303 EXCLUDES:=$(EXCLUDES),\
ohair@5221 304 EXCLUDE_FILES:=$(EXFILES),\
erikj@5507 305 BIN:=$(JDK_OUTPUTDIR)/classes,\
ohair@5221 306 COPY:=$(COPY_PATTERNS),\
ohair@5221 307 COPY_FILES:=$(COPY_FILES),\
ohair@5221 308 HEADERS:=$(JDK_OUTPUTDIR)/gensrc_headers))
ohair@5221 309
erikj@5507 310 ##########################################################################################
erikj@5507 311 # Special handling of header file generation for classes in the jigsaw base module which
erikj@5507 312 # currently can't add the annotaion GenerateNativeHeaders. For these specific classes the
erikj@5507 313 # java file and the class have the same names which enables shortcutting the dependencies.
erikj@5507 314
erikj@5507 315 JDK_BASE_HEADER_CLASSES:=java.lang.Integer \
erikj@5507 316 java.lang.Long \
erikj@5507 317 java.net.SocketOptions \
dxu@6055 318 sun.nio.ch.IOStatus \
dxu@6055 319 java.io.FileSystem
erikj@5507 320
erikj@5507 321 JDK_BASE_HEADER_JAVA_FILES:=$(patsubst %,$(JDK_TOPDIR)/src/share/classes/%.java,\
erikj@5507 322 $(subst .,/,$(JDK_BASE_HEADER_CLASSES)))
erikj@5507 323
erikj@5596 324 ifeq ($(OPENJDK_TARGET_OS),windows)
erikj@5508 325 JDK_BASE_HEADER_CLASSES_WINDOWS:=sun.nio.ch.PollArrayWrapper
erikj@5507 326 JDK_BASE_HEADER_CLASSES+=$(JDK_BASE_HEADER_CLASSES_WINDOWS)
erikj@5507 327 JDK_BASE_HEADER_JAVA_FILES+=$(patsubst %,$(JDK_TOPDIR)/src/windows/classes/%.java,\
erikj@5507 328 $(subst .,/,$(JDK_BASE_HEADER_CLASSES_WINDOWS)))
erikj@5507 329 endif
erikj@5507 330
erikj@5507 331 # Set prereqs to the java files since make doesn't know about the class files. Add BUILD_JDK
erikj@5507 332 # as an order only dependency to avoid race with the java compilation.
ohair@6025 333 $(JDK_OUTPUTDIR)/gensrc_headers/_the.jdk.base.headers: $(JDK_BASE_HEADER_JAVA_FILES) | $(BUILD_JDK)
erikj@5507 334 $(ECHO) Generating headers for jdk base classes
erikj@5507 335 $(JAVAH) -bootclasspath $(JDK_OUTPUTDIR)/classes -d $(JDK_OUTPUTDIR)/gensrc_headers \
erikj@5507 336 $(JDK_BASE_HEADER_CLASSES)
erikj@5507 337 $(TOUCH) $@
erikj@5507 338
erikj@5507 339 ##########################################################################################
erikj@5507 340
erikj@5507 341 #
erikj@5507 342 # This is an empty jar (only contains manifest) and fits poorly into framework...
erikj@5507 343 # create simple rule instead
erikj@5507 344 #
erikj@5507 345 MANAGEMENT_AGENT_JAR_DEPS := $(JDK_TOPDIR)/src/share/classes/sun/management/manifest
erikj@5507 346
erikj@5507 347 $(JDK_OUTPUTDIR)/lib/management-agent.jar : $(JDK_TOPDIR)/src/share/classes/sun/management/manifest
erikj@5507 348 $(JAR) cfm $@ $(JDK_TOPDIR)/src/share/classes/sun/management/manifest
erikj@5507 349
erikj@5507 350 JARS += $(JDK_OUTPUTDIR)/lib/management-agent.jar
erikj@5507 351
erikj@5507 352 ##########################################################################################
erikj@5507 353
erikj@5507 354 ifndef OPENJDK
erikj@5507 355
erikj@5507 356 $(eval $(call SetupJavaCompilation,BUILD_ALTCLASSES_JAR,\
erikj@5507 357 SETUP:=GENERATE_JDKBYTECODE,\
erikj@5507 358 SRC:=$(JDK_TOPDIR)/src/closed/share/altclasses, \
erikj@5507 359 BIN:=$(JDK_OUTPUTDIR)/altclasses_classes,\
erikj@5507 360 JAR:=$(JDK_OUTPUTDIR)/lib/alt-rt.jar))
erikj@5507 361
erikj@5507 362 $(BUILD_ALTCLASSES_JAR): $(BUILD_JDK)
erikj@5507 363 JARS += $(JDK_OUTPUTDIR)/lib/alt-rt.jar
erikj@5507 364
erikj@5507 365 endif
erikj@5507 366
erikj@5507 367 ##########################################################################################
erikj@5507 368
erikj@5507 369 $(JDK_OUTPUTDIR)/classes/META-INF/services/com.sun.tools.xjc.Plugin:
erikj@5507 370 $(MKDIR) -p $(@D)
erikj@5507 371 $(TOUCH) $@
erikj@5507 372
erikj@5507 373 ##########################################################################################
erikj@5507 374
erikj@5596 375 ifeq ($(OPENJDK_TARGET_OS),macosx)
erikj@5596 376 #
erikj@5596 377 # JObjC.jar is compiled with BOOT_JAVAC which (may) not support the "-h" flag.
erikj@5596 378 # so we first compile classes with BOOT_JAVAC and then with JDK_JAVAC :-(
erikj@5596 379 #
erikj@5596 380 $(eval $(call SetupJavaCompiler,GENERATE_15BYTECODE,\
erikj@5596 381 JAVAC:=$(JAVAC),\
erikj@5596 382 FLAGS:=-source 1.5 -target 1.5 -g -bootclasspath $(BOOT_RTJAR) -cp $(JDK_OUTPUTDIR)/../langtools/dist/lib/classes.jar $(DISABLE_WARNINGS),\
ohair@5819 383 SERVER_DIR:=$(SJAVAC_SERVER_DIR),\
ohair@5819 384 SERVER_JVM:=$(SJAVAC_SERVER_JAVA)))
erikj@5596 385
erikj@5596 386 $(eval $(call SetupJavaCompilation,BUILD_JOBJC_JAR,\
erikj@5596 387 SETUP:=GENERATE_15BYTECODE,\
ohair@5819 388 DISABLE_SJAVAC:=true,\
erikj@5596 389 SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/java \
erikj@5596 390 $(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/java \
erikj@5596 391 $(JDK_OUTPUTDIR)/gensrc, \
erikj@5596 392 INCLUDES := com/apple/jobjc,\
erikj@5596 393 EXCLUDES := tests/java/com/apple/jobjc,\
erikj@5596 394 BIN:=$(JDK_OUTPUTDIR)/jobjc_classes,\
erikj@5596 395 JAR:=$(JDK_OUTPUTDIR)/lib/JObjC.jar, \
erikj@5596 396 JARINDEX := true))
erikj@5596 397
erikj@5596 398 $(BUILD_JOBJC_JAR) : $(BUILD_JDK)
erikj@5596 399
erikj@5596 400 JARS += $(JDK_OUTPUTDIR)/lib/JObjC.jar
erikj@5596 401
erikj@5596 402 $(eval $(call SetupJavaCompilation,BUILD_JOBJC_HEADERS_JAR,\
erikj@5596 403 SETUP:=GENERATE_JDKBYTECODE,\
erikj@5596 404 SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/java \
erikj@5596 405 $(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/java \
erikj@5596 406 $(JDK_OUTPUTDIR)/gensrc, \
erikj@5596 407 INCLUDES := com/apple/jobjc,\
erikj@5596 408 EXCLUDES := tests/java/com/apple/jobjc,\
erikj@5596 409 BIN:=$(JDK_OUTPUTDIR)/jobjc_classes_headers,\
erikj@6075 410 HEADERS:=$(JDK_OUTPUTDIR)/gensrc_headers_jobjc))
erikj@5596 411
erikj@5596 412 $(BUILD_JOBJC_HEADERS_JAR) : $(BUILD_JDK)
erikj@5596 413
erikj@6075 414 JARS += $(BUILD_JOBJC_HEADERS_JAR)
erikj@5596 415
erikj@5596 416 endif
erikj@5596 417
erikj@5596 418 ##########################################################################################
erikj@5596 419
ohair@5221 420 # copy with -a to preserve timestamps so dependencies down the line aren't messed up
erikj@5507 421 all: $(BUILD_JDK) $(JARS) $(COPY_EXTRA) $(JDK_OUTPUTDIR)/classes/META-INF/services/com.sun.tools.xjc.Plugin \
ohair@6025 422 $(JDK_OUTPUTDIR)/gensrc_headers/_the.jdk.base.headers
ohair@5221 423
ohair@5221 424 .PHONY: all