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