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\ |
erikj | 2762cda | 2013-01-02 15:35:12 +0100 | [diff] [blame] | 45 | com/sun/tools/example/debug/gui |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 46 | |
| 47 | ifdef OPENJDK |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 48 | EXCLUDES+= sun/dc \ |
| 49 | com/sun/jmx/snmp \ |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 50 | sun/management/snmp \ |
| 51 | com/sun/script |
| 52 | endif |
| 53 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 54 | ifndef OPENJDK |
| 55 | # There exists two versions of this file... |
| 56 | EXFILES := $(JDK_TOPDIR)/src/share/classes/javax/crypto/JarVerifier.java |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 57 | |
| 58 | ifeq ($(OPENJDK_TARGET_OS),windows) |
| 59 | # This gets built on unix platforms implicitly in the old build even though |
| 60 | # it's excluded in the closed build. |
| 61 | EXCLUDES+=sun/java2d/pisces |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 62 | |
| 63 | # AccessBridge is compiled separately below. |
| 64 | EXFILES += AccessBridge.java \ |
| 65 | com/sun/java/accessibility/util/java/awt/ChoiceTranslator.java |
| 66 | # This seems to never be built |
| 67 | EXCLUDES += com/sun/java/accessibility/extensions |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 68 | endif |
| 69 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 70 | endif |
| 71 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 72 | ifneq ($(OPENJDK_TARGET_OS),solaris) |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 73 | # Exclude Solaris nio and two security related files in src/share/classes |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 74 | EXFILES += SolarisAclFileAttributeView.java \ |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 75 | SolarisFileStore.java \ |
| 76 | SolarisFileSystem.java \ |
| 77 | SolarisFileSystemProvider.java \ |
| 78 | SolarisNativeDispatcher.java \ |
| 79 | SolarisUserDefinedFileAttributeView.java \ |
| 80 | SolarisWatchService.java \ |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 81 | SolarisAclFileAttributeView.java \ |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 82 | SolarisLoginModule.java \ |
| 83 | SolarisSystem.java \ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 84 | sun/nio/ch/DevPollArrayWrapper.java \ |
| 85 | sun/nio/ch/DevPollSelectorImpl.java \ |
| 86 | sun/nio/ch/DevPollSelectorProvider.java \ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 87 | sun/nio/ch/EventPortSelectorImpl.java \ |
| 88 | sun/nio/ch/EventPortSelectorProvider.java \ |
| 89 | sun/nio/ch/EventPortWrapper.java \ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 90 | sun/nio/ch/SolarisAsynchronousChannelProvider.java \ |
| 91 | sun/nio/ch/SolarisEventPort.java \ |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 92 | sun/tools/attach/SolarisAttachProvider.java \ |
| 93 | sun/tools/attach/SolarisVirtualMachine.java |
erikj | 2762cda | 2013-01-02 15:35:12 +0100 | [diff] [blame] | 94 | |
| 95 | EXCLUDES += com/oracle/security |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 96 | endif |
| 97 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 98 | # In the old build, this isn't excluded on macosx, even though it probably |
| 99 | # should be. |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 100 | ifneq ($(OPENJDK_TARGET_OS),macosx) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 101 | EXFILES+=WrapperGenerator.java |
| 102 | endif |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 103 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 104 | ifneq ($(OPENJDK_TARGET_OS),windows) |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 105 | # Exclude Window security related files in src/share/classes |
| 106 | EXFILES+=NTLoginModule.java \ |
| 107 | NTSystem.java |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 108 | else |
| 109 | EXFILES+=UnixLoginModule.java \ |
| 110 | UnixSystem.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 | ifeq ($(OPENJDK_TARGET_OS),windows) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 114 | # Don't build GTK L&F on Windows |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 115 | EXCLUDES+=com/sun/java/swing/plaf/gtk |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 116 | endif |
| 117 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 118 | ifneq ($(OPENJDK_TARGET_OS),linux) |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 119 | EXFILES+=sun/tools/attach/LinuxAttachProvider.java \ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 120 | sun/tools/attach/LinuxVirtualMachine.java \ |
| 121 | sun/nio/ch/EPoll.java \ |
| 122 | sun/nio/ch/EPollArrayWrapper.java \ |
| 123 | sun/nio/ch/EPollPort.java \ |
| 124 | sun/nio/ch/EPollSelectorImpl.java \ |
| 125 | sun/nio/ch/EPollSelectorProvider.java \ |
| 126 | sun/nio/ch/LinuxAsynchronousChannelProvider.java \ |
| 127 | sun/nio/fs/LinuxDosFileAttributeView.java \ |
| 128 | sun/nio/fs/LinuxFileStore.java \ |
| 129 | sun/nio/fs/LinuxFileSystem.java \ |
| 130 | sun/nio/fs/LinuxFileSystemProvider.java \ |
dxu | 20cb370 | 2012-12-04 14:07:30 +0000 | [diff] [blame] | 131 | sun/nio/fs/MagicFileTypeDetector.java \ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 132 | sun/nio/fs/LinuxNativeDispatcher.java \ |
| 133 | sun/nio/fs/LinuxUserDefinedFileAttributeView.java \ |
| 134 | sun/nio/fs/LinuxWatchService.java |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 135 | endif |
| 136 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 137 | ifneq ($(OPENJDK_TARGET_OS),macosx) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 138 | EXFILES+=sun/nio/ch/BsdAsynchronousChannelProvider.java \ |
| 139 | sun/nio/ch/KQueue.java \ |
| 140 | sun/nio/ch/KQueuePort.java \ |
| 141 | sun/nio/fs/BsdFileStore.java \ |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 142 | sun/nio/fs/BsdFileSystem.java \ |
| 143 | sun/nio/fs/BsdFileSystemProvider.java \ |
| 144 | sun/nio/fs/BsdNativeDispatcher.java \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 145 | sun/nio/fs/MacOSXFileSystemProvider.java \ |
| 146 | sun/nio/fs/MacOSXFileSystem.java \ |
| 147 | sun/nio/fs/MacOSXNativeDispatcher.java \ |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 148 | sun/tools/attach/BsdAttachProvider.java \ |
| 149 | sun/tools/attach/BsdVirtualMachine.java |
| 150 | endif |
| 151 | |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 152 | # Exclude BreakIterator classes that are just used in compile process to generate |
| 153 | # data files and shouldn't go in the product |
| 154 | EXFILES+=sun/text/resources/BreakIteratorRules.java \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 155 | sun/text/resources/BreakIteratorRules_th.java |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 156 | |
| 157 | # TODO: Add BUILD_HEADLESS_ONLY to configure? |
| 158 | ifdef BUILD_HEADLESS_ONLY |
| 159 | EXCLUDES+=sun/applet |
| 160 | endif |
| 161 | |
| 162 | ifdef OPENJDK |
| 163 | EXCLUDES+=sun/java2d/cmm/kcms |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 164 | endif |
| 165 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 166 | # Used on windows and macosx |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 167 | ifeq (,$(filter $(OPENJDK_TARGET_OS), windows macosx)) |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 168 | EXFILES+=sun/awt/AWTCharset.java |
| 169 | endif |
| 170 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 171 | ifneq ($(OPENJDK_TARGET_OS), macosx) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 172 | EXFILES+=sun/awt/X11/ScreenFormat.java \ |
| 173 | sun/awt/X11/XArc.java \ |
| 174 | sun/awt/X11/XChar2b.java \ |
| 175 | sun/awt/X11/XCharStruct.java \ |
| 176 | sun/awt/X11/XClassHint.java \ |
| 177 | sun/awt/X11/XComposeStatus.java \ |
| 178 | sun/awt/X11/XExtCodes.java \ |
| 179 | sun/awt/X11/XFontProp.java \ |
| 180 | sun/awt/X11/XFontSetExtents.java \ |
| 181 | sun/awt/X11/XFontStruct.java \ |
| 182 | sun/awt/X11/XGCValues.java \ |
| 183 | sun/awt/X11/XHostAddress.java \ |
| 184 | sun/awt/X11/XIMCallback.java \ |
| 185 | sun/awt/X11/XIMHotKeyTrigger.java \ |
| 186 | sun/awt/X11/XIMHotKeyTriggers.java \ |
| 187 | sun/awt/X11/XIMPreeditCaretCallbackStruct.java \ |
| 188 | sun/awt/X11/XIMPreeditDrawCallbackStruct.java \ |
| 189 | sun/awt/X11/XIMPreeditStateNotifyCallbackStruct.java \ |
| 190 | sun/awt/X11/XIMStatusDrawCallbackStruct.java \ |
| 191 | sun/awt/X11/XIMStringConversionCallbackStruct.java \ |
| 192 | sun/awt/X11/XIMStringConversionText.java \ |
| 193 | sun/awt/X11/XIMStyles.java \ |
| 194 | sun/awt/X11/XIMText.java \ |
| 195 | sun/awt/X11/XIMValuesList.java \ |
| 196 | sun/awt/X11/XImage.java \ |
| 197 | sun/awt/X11/XKeyboardControl.java \ |
| 198 | sun/awt/X11/XKeyboardState.java \ |
| 199 | sun/awt/X11/XOMCharSetList.java \ |
| 200 | sun/awt/X11/XOMFontInfo.java \ |
| 201 | sun/awt/X11/XOMOrientation.java \ |
| 202 | sun/awt/X11/XPoint.java \ |
| 203 | sun/awt/X11/XRectangle.java \ |
| 204 | sun/awt/X11/XSegment.java \ |
| 205 | sun/awt/X11/XStandardColormap.java \ |
| 206 | sun/awt/X11/XTextItem.java \ |
| 207 | sun/awt/X11/XTextItem16.java \ |
| 208 | sun/awt/X11/XTextProperty.java \ |
| 209 | sun/awt/X11/XTimeCoord.java \ |
| 210 | sun/awt/X11/XWindowChanges.java \ |
| 211 | sun/awt/X11/XdbeSwapInfo.java \ |
| 212 | sun/awt/X11/XmbTextItem.java \ |
| 213 | sun/awt/X11/XwcTextItem.java |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 214 | endif |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 215 | |
| 216 | # Exclude another implicitly not included file. |
| 217 | EXFILES+=sun/util/locale/AsciiUtil.java |
| 218 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 219 | ifeq (,$(filter $(OPENJDK_TARGET_OS), solaris macosx)) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 220 | # |
| 221 | # only solaris and macosx |
| 222 | # |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 223 | EXFILES+=sun/nio/fs/PollingWatchService.java |
| 224 | endif |
| 225 | |
| 226 | # TODO: Fix when converting NIO |
| 227 | # Exclude *-linux-arm.java and *-linux-ppc.java from closed. |
| 228 | EXFILES+=-linux-arm.java \ |
| 229 | -linux-ppc.java |
| 230 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 231 | ifeq ($(OPENJDK_TARGET_OS), windows) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 232 | EXFILES+=sun/nio/ch/AbstractPollSelectorImpl.java \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 233 | sun/nio/ch/PollSelectorProvider.java \ |
erikj | 388fbde | 2012-12-06 12:09:33 +0100 | [diff] [blame] | 234 | sun/nio/ch/SimpleAsynchronousFileChannelImpl.java |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 235 | endif |
| 236 | |
erikj | f08e4b1 | 2013-01-04 16:54:41 +0100 | [diff] [blame] | 237 | # These files do not appear in the build result of the old build. This |
| 238 | # is because they are generated sources, but the AUTO_JAVA_FILES won't |
| 239 | # pick them up since they aren't generated when the source dirs are |
| 240 | # searched and they aren't referenced by any other classes so they won't |
| 241 | # be picked up by implicit compilation. On a rebuild, they are picked up |
| 242 | # and compiled. Exclude them here to produce the same rt.jar as the old |
| 243 | # build does when building just once. |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 244 | EXFILES+=javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \ |
erikj | f08e4b1 | 2013-01-04 16:54:41 +0100 | [diff] [blame] | 245 | javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \ |
| 246 | javax/swing/plaf/nimbus/ScrollBarPainter.java \ |
| 247 | javax/swing/plaf/nimbus/SliderPainter.java \ |
| 248 | javax/swing/plaf/nimbus/SpinnerPainter.java \ |
| 249 | javax/swing/plaf/nimbus/SplitPanePainter.java \ |
| 250 | javax/swing/plaf/nimbus/TabbedPanePainter.java |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 251 | |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 252 | # Acquire a list of files that should be copied straight over to the classes. |
| 253 | include CopyIntoClasses.gmk |
| 254 | # Now we have COPY_PATTERNS, COPY_FILES and COPY_EXTRA |
| 255 | |
| 256 | ifndef OPENJDK |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 257 | CLOSED_SRC_DIRS:=$(JDK_TOPDIR)/src/closed/share/classes \ |
| 258 | $(JDK_TOPDIR)/src/closed/$(OPENJDK_TARGET_OS_API_DIR)/classes |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 259 | endif |
| 260 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 261 | MACOSX_SRC_DIRS := |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 262 | ifeq ($(OPENJDK_TARGET_OS),macosx) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 263 | MACOSX_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/classes |
| 264 | |
| 265 | # this files are duplicated in MACOSX_SRC_DIRS |
| 266 | EXFILES+= $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/DefaultSelectorProvider.java \ |
| 267 | $(JDK_TOPDIR)/src/solaris/classes/sun/java2d/BackBufferCapsProvider.java \ |
| 268 | $(JDK_TOPDIR)/src/solaris/classes/java/net/DefaultInterface.java \ |
naoto | 09a6dec | 2012-08-24 10:13:58 -0700 | [diff] [blame] | 269 | $(JDK_TOPDIR)/src/solaris/classes/java/lang/ClassLoaderHelper.java \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 270 | $(JDK_TOPDIR)/src/solaris/classes/sun/util/locale/provider/HostLocaleProviderAdapterImpl.java \ |
| 271 | $(JDK_TOPDIR)/src/solaris/classes/sun/nio/fs/GnomeFileTypeDetector.java |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 272 | |
| 273 | # JObjC.jar contains 1.5 byte-code...so skip it here :-( |
| 274 | # MACOSX_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/native/jobjc/src |
| 275 | # EXCLUDES+= tests/java/com/apple/jobjc |
| 276 | |
| 277 | EXCLUDES+= com/apple/jobjc |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 278 | endif |
| 279 | |
| 280 | # The exception handling of swing beaninfo |
| 281 | # These resources violates the convention of having code and resources together under |
| 282 | # $(JDK_TOPDIR)/src/.../classes directories |
| 283 | $(JDK_OUTPUTDIR)/classes/javax/swing/beaninfo/images/%.gif: $(JDK_TOPDIR)/make/tools/swing-beans/beaninfo/images/%.gif |
erikj | 10d96fb | 2013-04-05 09:39:10 +0200 | [diff] [blame^] | 284 | $(call install-file) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 285 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 286 | # The JDK_USER_DEFINED_FILTER is a poor man's incremental build: by specifying |
| 287 | # JDK_FILTER at the make command line, only a subset of the JDK java files will |
| 288 | # be recompiled. If multiple paths are separated by comma, convert that into a |
| 289 | # space separated list. |
| 290 | JDK_USER_DEFINED_FILTER:=$(strip $(subst $(COMMA),$(SPACE),$(JDK_FILTER))) |
| 291 | |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 292 | $(eval $(call SetupJavaCompilation,BUILD_JDK,\ |
| 293 | SETUP:=GENERATE_JDKBYTECODE,\ |
| 294 | SRC:=$(JDK_TOPDIR)/src/share/classes \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 295 | $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 296 | $(MACOSX_SRC_DIRS) \ |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 297 | $(JDK_OUTPUTDIR)/gensrc \ |
ohrstrom | db79c51 | 2013-01-09 13:33:52 +0100 | [diff] [blame] | 298 | $(JDK_OUTPUTDIR)/gensrc_no_srczip \ |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 299 | $(CLOSED_SRC_DIRS),\ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 300 | INCLUDES:=$(JDK_USER_DEFINED_FILTER),\ |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 301 | EXCLUDES:=$(EXCLUDES),\ |
| 302 | EXCLUDE_FILES:=$(EXFILES),\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 303 | BIN:=$(JDK_OUTPUTDIR)/classes,\ |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 304 | COPY:=$(COPY_PATTERNS),\ |
| 305 | COPY_FILES:=$(COPY_FILES),\ |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 306 | HEADERS:=$(JDK_OUTPUTDIR)/gensrc_headers)) |
| 307 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 308 | ########################################################################################## |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 309 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 310 | ifndef OPENJDK |
| 311 | |
erikj | 62187db | 2012-12-05 10:12:57 +0100 | [diff] [blame] | 312 | $(eval $(call SetupJavaCompilation,BUILD_ALTCLASSES,\ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 313 | SETUP:=GENERATE_JDKBYTECODE,\ |
| 314 | SRC:=$(JDK_TOPDIR)/src/closed/share/altclasses, \ |
erikj | 62187db | 2012-12-05 10:12:57 +0100 | [diff] [blame] | 315 | BIN:=$(JDK_OUTPUTDIR)/altclasses_classes)) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 316 | |
erikj | 62187db | 2012-12-05 10:12:57 +0100 | [diff] [blame] | 317 | $(BUILD_ALTCLASSES): $(BUILD_JDK) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 318 | |
| 319 | endif |
| 320 | |
| 321 | ########################################################################################## |
| 322 | |
| 323 | $(JDK_OUTPUTDIR)/classes/META-INF/services/com.sun.tools.xjc.Plugin: |
| 324 | $(MKDIR) -p $(@D) |
| 325 | $(TOUCH) $@ |
| 326 | |
| 327 | ########################################################################################## |
| 328 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 329 | ifeq ($(OPENJDK_TARGET_OS),macosx) |
| 330 | # |
| 331 | # JObjC.jar is compiled with BOOT_JAVAC which (may) not support the "-h" flag. |
| 332 | # so we first compile classes with BOOT_JAVAC and then with JDK_JAVAC :-( |
| 333 | # |
| 334 | $(eval $(call SetupJavaCompiler,GENERATE_15BYTECODE,\ |
| 335 | JAVAC:=$(JAVAC),\ |
| 336 | FLAGS:=-source 1.5 -target 1.5 -g -bootclasspath $(BOOT_RTJAR) -cp $(JDK_OUTPUTDIR)/../langtools/dist/lib/classes.jar $(DISABLE_WARNINGS),\ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 337 | SERVER_DIR:=$(SJAVAC_SERVER_DIR),\ |
| 338 | SERVER_JVM:=$(SJAVAC_SERVER_JAVA))) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 339 | |
erikj | 62187db | 2012-12-05 10:12:57 +0100 | [diff] [blame] | 340 | $(eval $(call SetupJavaCompilation,BUILD_JOBJC,\ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 341 | SETUP:=GENERATE_15BYTECODE,\ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 342 | DISABLE_SJAVAC:=true,\ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 343 | SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/java \ |
| 344 | $(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/java \ |
| 345 | $(JDK_OUTPUTDIR)/gensrc, \ |
| 346 | INCLUDES := com/apple/jobjc,\ |
| 347 | EXCLUDES := tests/java/com/apple/jobjc,\ |
| 348 | BIN:=$(JDK_OUTPUTDIR)/jobjc_classes,\ |
| 349 | JAR:=$(JDK_OUTPUTDIR)/lib/JObjC.jar, \ |
| 350 | JARINDEX := true)) |
| 351 | |
erikj | 62187db | 2012-12-05 10:12:57 +0100 | [diff] [blame] | 352 | $(BUILD_JOBJC) : $(BUILD_JDK) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 353 | |
erikj | 62187db | 2012-12-05 10:12:57 +0100 | [diff] [blame] | 354 | $(eval $(call SetupJavaCompilation,BUILD_JOBJC_HEADERS,\ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 355 | SETUP:=GENERATE_JDKBYTECODE,\ |
| 356 | SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/java \ |
| 357 | $(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/java \ |
| 358 | $(JDK_OUTPUTDIR)/gensrc, \ |
| 359 | INCLUDES := com/apple/jobjc,\ |
| 360 | EXCLUDES := tests/java/com/apple/jobjc,\ |
| 361 | BIN:=$(JDK_OUTPUTDIR)/jobjc_classes_headers,\ |
erikj | 4f66f2d | 2012-11-03 16:27:01 -0700 | [diff] [blame] | 362 | HEADERS:=$(JDK_OUTPUTDIR)/gensrc_headers_jobjc)) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 363 | |
erikj | 62187db | 2012-12-05 10:12:57 +0100 | [diff] [blame] | 364 | $(BUILD_JOBJC_HEADERS) : $(BUILD_JDK) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 365 | |
| 366 | endif |
| 367 | |
| 368 | ########################################################################################## |
| 369 | |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 370 | ifndef OPENJDK |
| 371 | ifeq ($(OPENJDK_TARGET_OS), windows) |
| 372 | ifeq ($(OPENJDK_TARGET_CPU_BITS), 32) |
| 373 | $(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_32,\ |
| 374 | SETUP:=GENERATE_JDKBYTECODE,\ |
| 375 | JAVAC_FLAGS:=-cp $(JDK_OUTPUTDIR)/classes,\ |
| 376 | SRC:=$(JDK_OUTPUTDIR)/gensrc_ab/32bit,\ |
| 377 | BIN:=$(JDK_OUTPUTDIR)/classes_ab/32bit)) |
| 378 | |
| 379 | $(BUILD_ACCESSBRIDGE_32): $(BUILD_JDK) |
| 380 | |
| 381 | $(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_LEGACY,\ |
| 382 | SETUP:=GENERATE_JDKBYTECODE,\ |
| 383 | JAVAC_FLAGS:=-cp $(JDK_OUTPUTDIR)/classes,\ |
| 384 | SRC:=$(JDK_OUTPUTDIR)/gensrc_ab/legacy,\ |
| 385 | BIN:=$(JDK_OUTPUTDIR)/classes_ab/legacy)) |
| 386 | |
| 387 | $(BUILD_ACCESSBRIDGE_LEGACY): $(BUILD_JDK) |
| 388 | |
| 389 | else |
| 390 | |
| 391 | $(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_64,\ |
| 392 | SETUP:=GENERATE_JDKBYTECODE,\ |
| 393 | JAVAC_FLAGS:=-cp $(JDK_OUTPUTDIR)/classes,\ |
| 394 | SRC:=$(JDK_OUTPUTDIR)/gensrc_ab/64bit,\ |
| 395 | BIN:=$(JDK_OUTPUTDIR)/classes_ab/64bit)) |
| 396 | |
| 397 | $(BUILD_ACCESSBRIDGE_64): $(BUILD_JDK) |
| 398 | |
| 399 | endif |
| 400 | endif |
| 401 | endif |
| 402 | |
| 403 | ########################################################################################## |
| 404 | |
erikj | 62187db | 2012-12-05 10:12:57 +0100 | [diff] [blame] | 405 | all: $(BUILD_JDK) $(BUILD_ALTCLASSES) $(BUILD_JOBJC) $(BUILD_JOBJC_HEADERS) $(COPY_EXTRA) \ |
erikj | 3b4d89b | 2013-01-28 14:23:09 +0100 | [diff] [blame] | 406 | $(JDK_OUTPUTDIR)/classes/META-INF/services/com.sun.tools.xjc.Plugin \ |
raginip | 450da98 | 2013-01-18 11:33:31 -0800 | [diff] [blame] | 407 | $(BUILD_ACCESSBRIDGE_32) $(BUILD_ACCESSBRIDGE_64) \ |
| 408 | $(BUILD_ACCESSBRIDGE_LEGACY) |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 409 | |
| 410 | .PHONY: all |