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