author | erikj |
Wed, 28 Nov 2012 13:49:33 +0100 | |
changeset 14526 | a9ff17998eb7 |
parent 14525 | 58044c98b2fb |
child 14702 | 111342b28e67 |
child 14706 | 0651f78051e0 |
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 |
defalt: 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 NativeCompilation.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 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
35 |
# Copy files (can now depend on $(COPY_FILES)) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
36 |
include CopyFiles.gmk |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
37 |
|
13164 | 38 |
# Build tools |
39 |
include Tools.gmk |
|
40 |
||
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
41 |
# Include the javah generated headers. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
42 |
CFLAGS_JDKLIB += -I$(JDK_OUTPUTDIR)/gensrc_headers |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
43 |
CXXFLAGS_JDKLIB += -I$(JDK_OUTPUTDIR)/gensrc_headers |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
44 |
|
13164 | 45 |
# Put the libraries here. Different locations for different target apis. |
46 |
ifeq ($(OPENJDK_TARGET_OS_API),posix) |
|
13702 | 47 |
INSTALL_LIBRARIES_HERE:=$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
48 |
else |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
49 |
INSTALL_LIBRARIES_HERE:=$(JDK_OUTPUTDIR)/bin |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
50 |
endif |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
51 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
52 |
BUILD_LIBRARIES= |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
53 |
|
13164 | 54 |
# Absolute paths to lib files on windows for use in LDFLAGS. Should figure out a more |
55 |
# elegant solution to this. |
|
56 |
WIN_VERIFY_LIB := $(JDK_OUTPUTDIR)/objs/libverify/verify.lib |
|
57 |
WIN_JAVA_LIB := $(JDK_OUTPUTDIR)/objs/libjava/java.lib |
|
58 |
WIN_AWT_LIB := $(JDK_OUTPUTDIR)/objs/libawt/awt.lib |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
59 |
|
13702 | 60 |
# Use this variable to set DEBUG_SYMBOLS true on windows for all libraries, but |
61 |
# not on other platforms. |
|
62 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
63 |
WINDOWS_ONLY := true |
|
64 |
endif |
|
65 |
||
66 |
# |
|
67 |
# TODO replace with X_FLAGS / X_LIBS |
|
68 |
# and add them to configure |
|
69 |
# |
|
70 |
OPENWIN_LIB:=$(OPENWIN_HOME)/lib |
|
71 |
||
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
72 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
73 |
|
13164 | 74 |
BUILD_LIBFDLIBM_OPTIMIZATION:=HIGH |
75 |
||
76 |
ifneq ($(OPENJDK_TARGET_OS), solaris) |
|
77 |
BUILD_LIBFDLIBM_OPTIMIZATION:=NONE |
|
12892 | 78 |
endif |
79 |
||
13164 | 80 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
81 |
$(eval $(call SetupNativeCompilation,BUILD_LIBFDLIBM,\ |
13164 | 82 |
STATIC_LIBRARY:=fdlibm,\ |
83 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs,\ |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
84 |
SRC:=$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/src,\ |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
85 |
LANG:=C,\ |
13164 | 86 |
OPTIMIZATION:=$(BUILD_LIBFDLIBM_OPTIMIZATION), \ |
87 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
88 |
-I$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/include,\ |
13702 | 89 |
CFLAGS_windows_debug:=-DLOGGING,\ |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
90 |
ARFLAGS:=$(ARFLAGS),\ |
13164 | 91 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfdlibm)) |
92 |
||
93 |
BUILD_LIBRARIES += $(BUILD_LIBFDLIBM) |
|
94 |
||
12892 | 95 |
else |
96 |
# |
|
97 |
# On macosx they do partial (incremental) linking of fdlibm |
|
98 |
# code it here...rather than add support to NativeCompilation |
|
99 |
# as this is firt time I see it |
|
100 |
$(eval $(call SetupNativeCompilation,BUILD_LIBFDLIBM,\ |
|
13164 | 101 |
LIBRARY:=fdlibm,\ |
102 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs/libfdlibm,\ |
|
12892 | 103 |
SRC:=$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/src,\ |
104 |
LANG:=C,\ |
|
13164 | 105 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
12892 | 106 |
-I$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/include,\ |
14524 | 107 |
LDFLAGS:=-nostdlib -r -arch x86_64,\ |
13164 | 108 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfdlibm)) |
109 |
||
110 |
$(JDK_OUTPUTDIR)/objs/$(LIBRARY_PREFIX)fdlibm$(STATIC_LIBRARY_SUFFIX) : $(BUILD_LIBFDLIBM) |
|
12892 | 111 |
$(CP) -a $< $@ |
112 |
||
113 |
BUILD_LIBRARIES += $(JDK_OUTPUTDIR)/objs/$(LIBRARY_PREFIX)fdlibm$(STATIC_LIBRARY_SUFFIX) |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
114 |
endif |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
115 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
116 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
117 |
|
13164 | 118 |
BUILD_LIBVERIFY_SRC:=check_code.c check_format.c |
119 |
||
120 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 121 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
122 |
BUILD_LIBVERIFY_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libverify/reorder-$(OPENJDK_TARGET_CPU) |
|
13164 | 123 |
endif |
124 |
endif |
|
125 |
||
13702 | 126 |
LIBVERIFY_OPTIMIZATION:=HIGH |
127 |
ifneq ($(findstring $(OPENJDK_TARGET_OS),solaris linux),) |
|
128 |
ifeq ($(ENABLE_DEBUG_SYMBOLS), yes) |
|
129 |
LIBVERIFY_OPTIMIZATION:=LOW |
|
130 |
endif |
|
131 |
endif |
|
132 |
||
13164 | 133 |
|
134 |
$(eval $(call SetupNativeCompilation,BUILD_LIBVERIFY,\ |
|
135 |
LIBRARY:=verify, \ |
|
136 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
137 |
SRC:=$(JDK_TOPDIR)/src/share/native/common,\ |
|
138 |
INCLUDE_FILES:=$(BUILD_LIBVERIFY_SRC),\ |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
139 |
LANG:=C,\ |
13702 | 140 |
OPTIMIZATION:=$(LIBVERIFY_OPTIMIZATION), \ |
13164 | 141 |
CFLAGS:=$(CFLAGS_JDKLIB),\ |
142 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libverify/mapfile-vers, \ |
|
12892 | 143 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
13164 | 144 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
145 |
LDFLAGS_SUFFIX_posix:=-ljvm -lc,\ |
|
146 |
LDFLAGS_SUFFIX_windows:=jvm.lib,\ |
|
13702 | 147 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
148 |
RC_FLAGS:=$(RC_FLAGS) \ |
|
14231 | 149 |
-D "JDK_FNAME=verify.dll" \ |
150 |
-D "JDK_INTERNAL_NAME=verify" \ |
|
151 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 152 |
REORDER:=$(BUILD_LIBVERIFY_REORDER),\ |
153 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libverify,\ |
|
154 |
DEBUG_SYMBOLS:=true)) |
|
155 |
||
156 |
BUILD_LIBRARIES += $(BUILD_LIBVERIFY) |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
157 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
158 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
159 |
|
13702 | 160 |
LIBJAVA_SRC_DIRS:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/lang \ |
13164 | 161 |
$(JDK_TOPDIR)/src/share/native/java/lang \ |
162 |
$(JDK_TOPDIR)/src/share/native/java/lang/ref \ |
|
163 |
$(JDK_TOPDIR)/src/share/native/java/lang/reflect \ |
|
164 |
$(JDK_TOPDIR)/src/share/native/java/io \ |
|
13702 | 165 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/io \ |
13164 | 166 |
$(JDK_TOPDIR)/src/share/native/java/nio \ |
167 |
$(JDK_TOPDIR)/src/share/native/java/security \ |
|
168 |
$(JDK_TOPDIR)/src/share/native/common \ |
|
169 |
$(JDK_TOPDIR)/src/share/native/sun/misc \ |
|
170 |
$(JDK_TOPDIR)/src/share/native/sun/reflect \ |
|
171 |
$(JDK_TOPDIR)/src/share/native/java/util \ |
|
172 |
$(JDK_TOPDIR)/src/share/native/java/util/concurrent/atomic \ |
|
13702 | 173 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/common \ |
14231 | 174 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/util |
175 |
||
13702 | 176 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
177 |
LIBJAVA_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/util/locale/provider |
|
178 |
else |
|
179 |
LIBJAVA_SRC_DIRS+=$(JDK_TOPDIR)/src/macosx/native/sun/util/locale/provider |
|
13164 | 180 |
endif |
181 |
||
14231 | 182 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
183 |
LIBJAVA_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/provider \ |
|
184 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/io |
|
185 |
endif |
|
186 |
||
13164 | 187 |
LIBJAVA_CFLAGS:=$(foreach dir,$(LIBJAVA_SRC_DIRS),-I$(dir)) \ |
188 |
-I$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/include \ |
|
13702 | 189 |
-DARCHPROPNAME='"$(OPENJDK_TARGET_CPU_OSARCH)"' |
13164 | 190 |
|
191 |
LIBJAVA_CFLAGS += -DJDK_MAJOR_VERSION='"$(JDK_MAJOR_VERSION)"' \ |
|
192 |
-DJDK_MINOR_VERSION='"$(JDK_MINOR_VERSION)"' \ |
|
193 |
-DJDK_MICRO_VERSION='"$(JDK_MICRO_VERSION)"' \ |
|
194 |
-DJDK_BUILD_NUMBER='"$(JDK_BUILD_NUMBER)"' |
|
195 |
||
196 |
ifneq (,$(JDK_UPDATE_VERSION)) |
|
197 |
LIBJAVA_CFLAGS += -DJDK_UPDATE_VERSION='"$(JDK_UPDATE_VERSION)"' |
|
198 |
endif |
|
199 |
||
200 |
LIBJAVA_EXCLUDE_FILES:=check_code.c check_format.c |
|
201 |
||
202 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
|
203 |
LIBJAVA_EXCLUDE_FILES += java_props_macosx.c |
|
204 |
else |
|
205 |
BUILD_LIBJAVA_java_props_md.c_CFLAGS:=-x objective-c |
|
206 |
endif |
|
207 |
||
208 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
209 |
LIBJAVA_EXCLUDE_FILES += \ |
|
210 |
UNIXProcess_md.c \ |
|
211 |
UnixFileSystem_md.c \ |
|
212 |
FileSystemPreferences.c |
|
213 |
else |
|
214 |
LIBJAVA_EXCLUDE_FILES += \ |
|
215 |
ProcessImpl_md.c \ |
|
216 |
WinNTFileSystem_md.c \ |
|
217 |
dirent_md.c \ |
|
218 |
WindowsPreferences.c \ |
|
219 |
sun/security/provider/WinCAPISeedGenerator.c \ |
|
220 |
sun/io/Win32ErrorMode.c |
|
221 |
endif |
|
222 |
||
223 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 224 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
225 |
LIBJAVA_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libjava/reorder-$(OPENJDK_TARGET_CPU) |
|
13164 | 226 |
endif |
227 |
endif |
|
228 |
||
229 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAVA,\ |
|
230 |
LIBRARY:=java,\ |
|
231 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
232 |
SRC:=$(LIBJAVA_SRC_DIRS),\ |
|
233 |
EXCLUDES:=fdlibm/src zip, \ |
|
234 |
EXCLUDE_FILES:=$(LIBJAVA_EXCLUDE_FILES), \ |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
235 |
LANG:=C,\ |
13164 | 236 |
OPTIMIZATION:=HIGH, \ |
237 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
238 |
$(LIBJAVA_CFLAGS),\ |
|
239 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjava/mapfile-vers, \ |
|
240 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
241 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
242 |
LDFLAGS_SUFFIX_posix:=-ljvm -lverify, \ |
|
14526
a9ff17998eb7
8003528: build-infra: Diffs in libjava and hotspot libs on solaris.
erikj
parents:
14525
diff
changeset
|
243 |
LDFLAGS_SUFFIX_solaris:=-lsocket -lnsl -lscf $(LIBDL) $(BUILD_LIBFDLIBM) -lc,\ |
13164 | 244 |
LDFLAGS_SUFFIX_linux:=$(LIBDL) $(BUILD_LIBFDLIBM),\ |
13702 | 245 |
LDFLAGS_SUFFIX_macosx:=-L$(JDK_OUTPUTDIR)/objs/ -lfdlibm \ |
13164 | 246 |
-framework CoreFoundation \ |
247 |
-framework Security -framework SystemConfiguration, \ |
|
14231 | 248 |
LDFLAGS_SUFFIX_windows:=-export:winFileHandleOpen -export:handleLseek \ |
249 |
jvm.lib $(BUILD_LIBFDLIBM) $(WIN_VERIFY_LIB) \ |
|
250 |
shell32.lib delayimp.lib -DELAYLOAD:shell32.dll \ |
|
251 |
advapi32.lib,\ |
|
13702 | 252 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
253 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 254 |
-D "JDK_FNAME=java.dll" \ |
255 |
-D "JDK_INTERNAL_NAME=java" \ |
|
256 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 257 |
REORDER:=$(LIBJAVA_REORDER), \ |
13702 | 258 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjava,\ |
259 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 260 |
|
261 |
BUILD_LIBRARIES += $(BUILD_LIBJAVA) |
|
262 |
||
263 |
$(BUILD_LIBJAVA) : $(LIBJLI_BINARY) |
|
264 |
||
265 |
$(BUILD_LIBJAVA) : $(BUILD_LIBVERIFY) |
|
266 |
||
267 |
$(BUILD_LIBJAVA) : $(BUILD_LIBFDLIBM) |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
268 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
269 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
270 |
|
13164 | 271 |
BUILD_LIBMLIB_SRC:=$(JDK_TOPDIR)/src/share/native/sun/awt/medialib |
272 |
BUILD_LIBMLIB_CFLAGS:=-D__USE_J2D_NAMES -D__MEDIALIB_OLD_NAMES \ |
|
12892 | 273 |
-I$(BUILD_LIBMLIB_SRC) \ |
13702 | 274 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/medialib |
13164 | 275 |
|
276 |
BUILD_LIBMLIB_LDLIBS:= |
|
277 |
BUILD_LIBMLIB_IMAGE_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libmlib_image/mapfile-vers |
|
278 |
||
13702 | 279 |
BUILD_LIBMLIB_CFLAGS += -DMLIB_NO_LIBSUNMATH |
280 |
||
281 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64) |
|
12892 | 282 |
BUILD_LIBMLIB_CFLAGS += -DMLIB_OS64BIT |
283 |
endif |
|
284 |
||
13164 | 285 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
12892 | 286 |
BUILD_LIBMLIB_LDLIBS += $(LIBM) $(LIBDL) |
287 |
endif |
|
288 |
||
289 |
$(eval $(call SetupNativeCompilation,BUILD_LIBMLIB_IMAGE,\ |
|
13164 | 290 |
LIBRARY:=mlib_image,\ |
291 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
292 |
SRC:=$(BUILD_LIBMLIB_SRC),\ |
|
12892 | 293 |
EXCLUDE_FILES:=awt_ImagingLib.c mlib_c_ImageBlendTable.c,\ |
294 |
LANG:=C,\ |
|
13164 | 295 |
OPTIMIZATION:=HIGHEST, \ |
296 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 297 |
$(BUILD_LIBMLIB_CFLAGS),\ |
13164 | 298 |
MAPFILE:=$(BUILD_LIBMLIB_IMAGE_MAPFILE), \ |
12892 | 299 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
300 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 301 |
LDFLAGS_SUFFIX:=$(BUILD_LIBMLIB_LDLIBS) \ |
302 |
$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
303 |
LDFLAGS_SUFFIX_solaris:=-lc, \ |
13702 | 304 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
305 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 306 |
-D "JDK_FNAME=mlib_image.dll" \ |
307 |
-D "JDK_INTERNAL_NAME=mlib_image" \ |
|
308 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 309 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libmlib_image,\ |
310 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 311 |
|
312 |
$(BUILD_LIBMLIB_IMAGE) : $(BUILD_LIBJAVA) |
|
313 |
||
314 |
BUILD_LIBRARIES += $(BUILD_LIBMLIB_IMAGE) |
|
12892 | 315 |
|
316 |
########################################################################################## |
|
317 |
||
13702 | 318 |
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH),solaris-sparc) |
12892 | 319 |
|
13164 | 320 |
BUILD_LIBMLIB_IMAGE_V_FILES:=\ |
12892 | 321 |
mlib_v_ImageLookUp.c \ |
322 |
mlib_ImageCreate.c \ |
|
323 |
mlib_ImageAffine.c \ |
|
324 |
mlib_ImageConvMxN.c \ |
|
325 |
mlib_ImageConvKernelConvert.c \ |
|
326 |
mlib_sys.c \ |
|
327 |
mlib_ImageLookUp_64.c \ |
|
328 |
mlib_ImageLookUp_Bit.c \ |
|
329 |
mlib_ImageColorTrue2Index.c \ |
|
330 |
mlib_c_ImageThresh1_U8.c \ |
|
331 |
mlib_v_ImageLookUpS16S16Func.c \ |
|
332 |
mlib_v_ImageLookUpS16S32Func.c \ |
|
333 |
mlib_v_ImageLookUpS16U16Func.c \ |
|
334 |
mlib_v_ImageLookUpS16U8Func.c \ |
|
335 |
mlib_v_ImageLookUpS32S16Func.c \ |
|
336 |
mlib_v_ImageLookUpS32S32Func.c \ |
|
337 |
mlib_v_ImageLookUpS32U16Func.c \ |
|
338 |
mlib_v_ImageLookUpS32U8Func.c \ |
|
339 |
mlib_v_ImageLookUpSIS16S16Func.c \ |
|
340 |
mlib_v_ImageLookUpSIS16S32Func.c \ |
|
341 |
mlib_v_ImageLookUpSIS16U16Func.c \ |
|
342 |
mlib_v_ImageLookUpSIS16U8Func.c \ |
|
343 |
mlib_v_ImageLookUpSIS32S16Func.c \ |
|
344 |
mlib_v_ImageLookUpSIS32S32Func.c \ |
|
345 |
mlib_v_ImageLookUpSIS32U16Func.c \ |
|
346 |
mlib_v_ImageLookUpSIS32U8Func.c \ |
|
347 |
mlib_v_ImageLookUpSIU16S16Func.c \ |
|
348 |
mlib_v_ImageLookUpSIU16S32Func.c \ |
|
349 |
mlib_v_ImageLookUpSIU16U16Func.c \ |
|
350 |
mlib_v_ImageLookUpSIU16U8Func.c \ |
|
351 |
mlib_v_ImageLookUpSIU8S16Func.c \ |
|
352 |
mlib_v_ImageLookUpSIU8S32Func.c \ |
|
353 |
mlib_v_ImageLookUpSIU8U16Func.c \ |
|
354 |
mlib_v_ImageLookUpSIU8U8Func.c \ |
|
355 |
mlib_v_ImageLookUpU16S16Func.c \ |
|
356 |
mlib_v_ImageLookUpU16S32Func.c \ |
|
357 |
mlib_v_ImageLookUpU16U16Func.c \ |
|
358 |
mlib_v_ImageLookUpU16U8Func.c \ |
|
359 |
mlib_v_ImageLookUpU8S16Func.c \ |
|
360 |
mlib_v_ImageLookUpU8S32Func.c \ |
|
361 |
mlib_v_ImageLookUpU8U16Func.c \ |
|
362 |
mlib_v_ImageLookUpU8U8Func.c \ |
|
363 |
mlib_v_ImageAffineIndex_BC.c \ |
|
364 |
mlib_v_ImageAffine_BC.c \ |
|
365 |
mlib_v_ImageAffine_BC_S16.c \ |
|
366 |
mlib_v_ImageAffine_BC_U16.c \ |
|
367 |
mlib_v_ImageAffine_BL.c \ |
|
368 |
mlib_v_ImageAffine_BL_S16.c \ |
|
369 |
mlib_v_ImageAffine_BL_U16.c \ |
|
370 |
mlib_v_ImageAffine_NN.c \ |
|
371 |
mlib_v_ImageFilters.c \ |
|
372 |
mlib_ImageAffineEdge.c \ |
|
373 |
mlib_ImageAffine_BC_D64.c \ |
|
374 |
mlib_ImageAffine_BC_F32.c \ |
|
375 |
mlib_ImageAffine_BC_S32.c \ |
|
376 |
mlib_ImageAffine_BL_D64.c \ |
|
377 |
mlib_ImageAffine_BL_F32.c \ |
|
378 |
mlib_ImageAffine_BL_S32.c \ |
|
379 |
mlib_ImageAffine_NN.c \ |
|
380 |
mlib_ImageAffine_NN_Bit.c \ |
|
381 |
mlib_ImageFilters.c \ |
|
382 |
mlib_ImageScanPoly.c \ |
|
383 |
mlib_ImageConv_8nw.c \ |
|
384 |
mlib_ImageConv_8ext.c \ |
|
385 |
mlib_ImageConv_16nw.c \ |
|
386 |
mlib_ImageConv_16ext.c \ |
|
387 |
mlib_ImageConv_u16nw.c \ |
|
388 |
mlib_ImageConv_u16ext.c \ |
|
389 |
mlib_ImageConv_32nw.c \ |
|
390 |
mlib_ImageConv_F32nw.c \ |
|
391 |
mlib_ImageConvMxN_Fp.c \ |
|
392 |
mlib_ImageConvMxN_ext.c \ |
|
393 |
mlib_ImageConv_D64nw.c \ |
|
394 |
mlib_ImageClipping.c \ |
|
395 |
mlib_ImageConvCopyEdge_Bit.c \ |
|
396 |
mlib_ImageConvClearEdge_Bit.c \ |
|
397 |
mlib_ImageConv2x2_f.c \ |
|
398 |
mlib_ImageConvClearEdge_Fp.c \ |
|
399 |
mlib_v_ImageConvMxN_8.c \ |
|
400 |
mlib_v_ImageConvClearEdge.c \ |
|
401 |
mlib_v_ImageConvCopyEdge.c \ |
|
402 |
mlib_v_ImageConvMxN_8ext.c \ |
|
403 |
mlib_v_ImageConvVersion.c \ |
|
404 |
mlib_v_ImageConv_8nw.c \ |
|
405 |
mlib_ImageConvCopyEdge_Fp.c \ |
|
406 |
mlib_v_ImageChannelInsert_1.c \ |
|
407 |
mlib_v_ImageChannelExtract_43.c \ |
|
408 |
mlib_v_ImageChannelExtract_1.c \ |
|
409 |
mlib_ImageCopy_Bit.c \ |
|
410 |
mlib_v_ImageCopy_f.c \ |
|
411 |
mlib_ImageUtils.c \ |
|
412 |
mlib_ImageDivTables.c |
|
413 |
||
13164 | 414 |
BUILD_LIBMLIB_V_CFLAGS := $(filter-out -DMLIB_NO_LIBSUNMATH,$(BUILD_LIBMLIB_CFLAGS)) |
12892 | 415 |
|
416 |
$(eval $(call SetupNativeCompilation,BUILD_LIBMLIB_IMAGE_V,\ |
|
13164 | 417 |
LIBRARY:=mlib_image_v, \ |
418 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
419 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/awt/medialib \ |
|
12892 | 420 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib,\ |
421 |
LANG:=C,\ |
|
13164 | 422 |
INCLUDE_FILES:=$(BUILD_LIBMLIB_IMAGE_V_FILES),\ |
423 |
OPTIMIZATION:=HIGHEST, \ |
|
424 |
CFLAGS:=-xarch=sparcvis \ |
|
13702 | 425 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib/vis_$(OPENJDK_TARGET_CPU_BITS).il\ |
13164 | 426 |
$(BUILD_LIBMLIB_V_CFLAGS) \ |
427 |
$(CFLAGS_JDKLIB), \ |
|
428 |
MAPFILE:=$(BUILD_LIBMLIB_IMAGE_MAPFILE), \ |
|
12892 | 429 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
14231 | 430 |
$(BUILD_LIBMLIB_LDLIBS) -ljava -ljvm \ |
12892 | 431 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
432 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13164 | 433 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libmlib_image_v)) |
434 |
||
14231 | 435 |
$(BUILD_LIBMLIB_IMAGE_V): $(BUILD_LIBJAVA) |
436 |
||
13164 | 437 |
BUILD_LIBRARIES += $(BUILD_LIBMLIB_IMAGE_V) |
12892 | 438 |
|
439 |
endif |
|
440 |
||
441 |
########################################################################################## |
|
442 |
||
13164 | 443 |
LIBAWT_DIRS:=\ |
444 |
$(JDK_TOPDIR)/src/share/native/sun/awt \ |
|
13702 | 445 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \ |
13164 | 446 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
447 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image/gif \ |
|
448 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
449 |
$(JDK_TOPDIR)/src/share/native/sun/awt/medialib \ |
|
450 |
$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
451 |
$(JDK_TOPDIR)/src/share/native/sun/awt/utility \ |
|
452 |
$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
13702 | 453 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
13164 | 454 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
455 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
456 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
457 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
|
13702 | 458 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/opengl \ |
14231 | 459 |
$(JDK_TOPDIR)/src/share/native/sun/font |
460 |
||
461 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
462 |
LIBAWT_DIRS+=\ |
|
13702 | 463 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows \ |
464 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/windows \ |
|
465 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/d3d |
|
14231 | 466 |
else |
467 |
LIBAWT_DIRS+=\ |
|
468 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/x11 |
|
469 |
endif |
|
13164 | 470 |
|
471 |
LIBAWT_CFLAGS:=-D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES \ |
|
472 |
$(X_CFLAGS) \ |
|
473 |
$(foreach dir,$(LIBAWT_DIRS),-I$(dir)) |
|
474 |
||
475 |
LIBAWT_FILES:=\ |
|
476 |
gifdecoder.c \ |
|
477 |
imageInitIDs.c \ |
|
478 |
img_globals.c \ |
|
479 |
SurfaceData.c \ |
|
480 |
Region.c \ |
|
481 |
BufImgSurfaceData.c \ |
|
482 |
Disposer.c \ |
|
483 |
Trace.c \ |
|
484 |
GraphicsPrimitiveMgr.c \ |
|
485 |
Blit.c \ |
|
486 |
BlitBg.c \ |
|
487 |
ScaledBlit.c \ |
|
488 |
FillRect.c \ |
|
489 |
FillSpans.c \ |
|
490 |
FillParallelogram.c \ |
|
491 |
DrawParallelogram.c \ |
|
492 |
DrawLine.c \ |
|
493 |
DrawRect.c \ |
|
494 |
DrawPolygons.c \ |
|
495 |
DrawPath.c \ |
|
496 |
FillPath.c \ |
|
497 |
ProcessPath.c \ |
|
498 |
MaskBlit.c \ |
|
499 |
MaskFill.c \ |
|
500 |
TransformHelper.c \ |
|
501 |
AlphaMath.c \ |
|
502 |
AlphaMacros.c \ |
|
503 |
AnyByte.c \ |
|
504 |
ByteBinary1Bit.c \ |
|
505 |
ByteBinary2Bit.c \ |
|
506 |
ByteBinary4Bit.c \ |
|
507 |
ByteIndexed.c \ |
|
508 |
ByteGray.c \ |
|
509 |
Index8Gray.c \ |
|
510 |
Index12Gray.c \ |
|
511 |
AnyShort.c \ |
|
512 |
Ushort555Rgb.c \ |
|
513 |
Ushort565Rgb.c \ |
|
514 |
Ushort4444Argb.c \ |
|
515 |
Ushort555Rgbx.c \ |
|
516 |
UshortGray.c \ |
|
517 |
UshortIndexed.c \ |
|
518 |
Any3Byte.c \ |
|
519 |
ThreeByteBgr.c \ |
|
520 |
AnyInt.c \ |
|
521 |
IntArgb.c \ |
|
522 |
IntArgbPre.c \ |
|
523 |
IntArgbBm.c \ |
|
524 |
IntRgb.c \ |
|
525 |
IntBgr.c \ |
|
526 |
IntRgbx.c \ |
|
527 |
Any4Byte.c \ |
|
528 |
FourByteAbgr.c \ |
|
529 |
FourByteAbgrPre.c \ |
|
530 |
BufferedMaskBlit.c \ |
|
531 |
BufferedRenderPipe.c \ |
|
532 |
ShapeSpanIterator.c \ |
|
533 |
SpanClipRenderer.c \ |
|
534 |
awt_ImageRep.c \ |
|
535 |
awt_ImagingLib.c \ |
|
536 |
awt_Mlib.c \ |
|
537 |
awt_parseImage.c \ |
|
538 |
DataBufferNative.c \ |
|
539 |
dither.c \ |
|
540 |
debug_assert.c \ |
|
541 |
debug_mem.c \ |
|
542 |
debug_trace.c \ |
|
543 |
debug_util.c |
|
544 |
||
13702 | 545 |
ifneq (,$(filter $(OPENJDK_TARGET_OS), solaris linux)) |
13164 | 546 |
LIBAWT_FILES += awt_LoadLibrary.c initIDs.c img_colors.c |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
547 |
endif |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
548 |
|
13164 | 549 |
ifeq ($(OPENJDK_TARGET_OS),macosx) |
13702 | 550 |
LIBAWT_FILES += awt_LoadLibrary.c img_colors.c |
13164 | 551 |
LIBAWT_DIRS += $(JDK_TOPDIR)/src/macosx/native/com/apple/resources |
552 |
LIBAWT_FILES += awt_LoadLibrary.c MacOSXResourceBundle.m |
|
553 |
LIBAWT_CFLAGS += -F/System/Library/Frameworks/JavaVM.framework/Frameworks |
|
554 |
||
555 |
LIBAWT_MacOSXResourceBundle.m_CFLAGS:=-O0 |
|
12892 | 556 |
endif |
557 |
||
13164 | 558 |
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH), solaris-sparc) |
559 |
LIBAWT_CFLAGS += -DMLIB_ADD_SUFF |
|
560 |
LIBAWT_CFLAGS += -xarch=sparcvis |
|
13702 | 561 |
LIBAWT_CFLAGS += $(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib/vis_$(OPENJDK_TARGET_CPU_BITS).il |
13164 | 562 |
LIBAWT_CFLAGS += \ |
563 |
-I$(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib \ |
|
564 |
-I$(JDK_TOPDIR)/src/solaris/native/sun/java2d/medialib \ |
|
565 |
-I$(JDK_TOPDIR)/src/solaris/native/sun/java2d/loops |
|
566 |
||
567 |
LIBAWT_DIRS += $(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib \ |
|
568 |
$(JDK_TOPDIR)/src/solaris/native/sun/java2d/loops |
|
569 |
||
570 |
LIBAWT_FILES += \ |
|
571 |
vis_FuncArray.c \ |
|
572 |
java2d_Mlib.c \ |
|
573 |
mlib_ImageCreate.c \ |
|
574 |
mlib_ImageZoom_NN.c \ |
|
575 |
mlib_ImageCopy_Bit.c \ |
|
576 |
mlib_sys.c \ |
|
577 |
mlib_v_ImageClear.c \ |
|
578 |
mlib_v_ImageClear_f.c \ |
|
579 |
mlib_v_ImageConstXor.c \ |
|
580 |
mlib_v_ImageCopy.c \ |
|
581 |
mlib_v_ImageCopy_f.c \ |
|
582 |
mlib_v_ImageXor.c \ |
|
583 |
mlib_v_ImageZoom_NN_f.c \ |
|
584 |
vis_Interp.c \ |
|
585 |
vis_AlphaMacros.c \ |
|
586 |
vis_AlphaMaskBlit.c \ |
|
587 |
vis_AlphaMaskFill.c \ |
|
588 |
vis_ByteGray.c \ |
|
589 |
vis_ByteGray_FromRgb.c \ |
|
590 |
vis_ByteGray_Mask.c \ |
|
591 |
vis_ByteIndexed.c \ |
|
592 |
vis_DrawLine.c \ |
|
593 |
vis_FourByteAbgr.c \ |
|
594 |
vis_IntArgb.c \ |
|
595 |
vis_IntArgbPre.c \ |
|
596 |
vis_IntArgbPre_Mask.c \ |
|
597 |
vis_IntBgr.c \ |
|
598 |
vis_IntRgb.c \ |
|
599 |
vis_IntRgbx.c \ |
|
600 |
vis_SrcMaskFill.c \ |
|
601 |
vis_SrcOverMaskBlit.c \ |
|
602 |
vis_SrcOverMaskFill.c \ |
|
603 |
vis_FourByteAbgrPre.c \ |
|
604 |
vis_GlyphList.c \ |
|
605 |
vis_GlyphListXor.c \ |
|
606 |
vis_IntArgbBm.c \ |
|
607 |
vis_ThreeByteBgr.c \ |
|
608 |
vis_UshortGray.c \ |
|
609 |
vis_UshortGray_FromRgb.c \ |
|
610 |
vis_XorBlit.c \ |
|
611 |
mlib_v_ImageCopy_blk.s |
|
612 |
||
13702 | 613 |
ifeq ($(OPENJDK_TARGET_CPU),sparcv9) |
13164 | 614 |
LIBAWT_ASFLAGS=-P -xarch=v9a |
615 |
else |
|
616 |
LIBAWT_ASFLAGS=-P -xarch=v8plusa |
|
12892 | 617 |
endif |
618 |
else |
|
13164 | 619 |
LIBAWT_FILES += MapAccelFunc.c |
12892 | 620 |
endif |
621 |
||
13164 | 622 |
ifneq ($(OPENJDK_TARGET_OS),solaris) |
623 |
LIBAWT_CFLAGS += -DMLIB_NO_LIBSUNMATH |
|
12892 | 624 |
endif |
625 |
||
13164 | 626 |
LIBAWT_LANG:=C |
627 |
||
628 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
629 |
LIBAWT_FILES += AccelGlyphCache.c \ |
|
630 |
ShaderList.c \ |
|
631 |
CmdIDList.cpp \ |
|
632 |
Hashtable.cpp \ |
|
633 |
GDIHashtable.cpp \ |
|
634 |
Devices.cpp \ |
|
635 |
ObjectList.cpp \ |
|
636 |
GDIBlitLoops.cpp \ |
|
637 |
GDIRenderer.cpp \ |
|
638 |
GDIWindowSurfaceData.cpp \ |
|
639 |
WindowsFlags.cpp \ |
|
640 |
WPrinterJob.cpp \ |
|
641 |
awt_%.cpp \ |
|
642 |
D3DBlitLoops.cpp \ |
|
643 |
D3DBufImgOps.cpp \ |
|
644 |
D3DContext.cpp \ |
|
645 |
D3DGlyphCache.cpp \ |
|
646 |
D3DGraphicsDevice.cpp \ |
|
647 |
D3DMaskBlit.cpp \ |
|
648 |
D3DMaskCache.cpp \ |
|
649 |
D3DMaskFill.cpp \ |
|
650 |
D3DPipelineManager.cpp \ |
|
651 |
D3DPaints.cpp \ |
|
652 |
D3DRenderer.cpp \ |
|
653 |
D3DRenderQueue.cpp \ |
|
654 |
D3DResourceManager.cpp \ |
|
655 |
D3DSurfaceData.cpp \ |
|
656 |
D3DTextRenderer.cpp \ |
|
657 |
D3DVertexCacher.cpp \ |
|
658 |
ShellFolder2.cpp \ |
|
659 |
ThemeReader.cpp \ |
|
660 |
ComCtl32Util.cpp \ |
|
661 |
DllUtil.cpp \ |
|
662 |
initIDs.cpp \ |
|
663 |
MouseInfo.cpp \ |
|
14231 | 664 |
rect.c \ |
665 |
OGLBlitLoops.c \ |
|
666 |
OGLBufImgOps.c \ |
|
667 |
OGLContext.c \ |
|
668 |
OGLFuncs.c \ |
|
669 |
OGLMaskBlit.c \ |
|
670 |
OGLMaskFill.c \ |
|
671 |
OGLPaints.c \ |
|
672 |
OGLRenderQueue.c \ |
|
673 |
OGLRenderer.c \ |
|
674 |
OGLSurfaceData.c \ |
|
675 |
OGLTextRenderer.c \ |
|
676 |
OGLVertexCache.c \ |
|
677 |
WGLGraphicsConfig.c \ |
|
678 |
WGLSurfaceData.c |
|
13164 | 679 |
LIBAWT_LANG:=C++ |
13702 | 680 |
LIBAWT_CFLAGS += -EHsc -DUNICODE -D_UNICODE |
681 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64) |
|
13164 | 682 |
LIBAWT_CFLAGS += -DMLIB_OS64BIT |
683 |
endif |
|
684 |
||
685 |
ifdef OPENJDK |
|
686 |
LIBAWT_RC_FLAGS:=-i "$(JDK_TOPDIR)/src/windows/resource/icons" |
|
687 |
else |
|
688 |
LIBAWT_RC_FLAGS:=-i "$(JDK_TOPDIR)/src/closed/windows/native/sun/windows" |
|
689 |
endif |
|
690 |
LIBAWT_VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/native/sun/windows/awt.rc |
|
12892 | 691 |
endif |
692 |
||
13164 | 693 |
ifeq ($(MILESTONE), internal) |
694 |
LIBAWT_CFLAGS += -DINTERNAL_BUILD |
|
12892 | 695 |
endif |
696 |
||
13164 | 697 |
LIBAWT_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt/mapfile-vers |
698 |
ifeq ($(OPENJDK_TARGET_OS),linux) |
|
699 |
LIBAWT_MAPFILE:= |
|
12892 | 700 |
endif |
701 |
||
13164 | 702 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT,\ |
703 |
LIBRARY:=awt,\ |
|
704 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
705 |
SRC:=$(LIBAWT_DIRS),\ |
|
706 |
INCLUDE_FILES:=$(LIBAWT_FILES),\ |
|
707 |
LANG:=$(LIBAWT_LANG),\ |
|
708 |
OPTIMIZATION:=LOW, \ |
|
709 |
CFLAGS:=$(CFLAGS_JDKLIB) $(LIBAWT_CFLAGS),\ |
|
710 |
ASFLAGS:=$(LIBAWT_ASFLAGS),\ |
|
711 |
MAPFILE:=$(LIBAWT_MAPFILE), \ |
|
712 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 713 |
LDFLAGS_solaris:=-R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR),\ |
714 |
LDFLAGS_SUFFIX_linux:=-ljvm $(LIBM) $(LIBDL) -ljava,\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
715 |
LDFLAGS_SUFFIX_solaris:=-ljvm $(LIBM) $(LIBDL) -ljava -lc,\ |
13702 | 716 |
LDFLAGS_SUFFIX_macosx:=-lmlib_image -ljvm $(LIBM) \ |
717 |
-framework Cocoa \ |
|
718 |
-framework OpenGL \ |
|
719 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
720 |
-framework JavaNativeFoundation \ |
|
721 |
-framework JavaRuntimeSupport \ |
|
722 |
-framework ApplicationServices \ |
|
723 |
-framework AudioToolbox \ |
|
724 |
-ljava,\ |
|
14231 | 725 |
LDFLAGS_SUFFIX_windows:=kernel32.lib user32.lib gdi32.lib winspool.lib \ |
726 |
imm32.lib ole32.lib uuid.lib shell32.lib \ |
|
727 |
comdlg32.lib winmm.lib comctl32.lib shlwapi.lib \ |
|
728 |
delayimp.lib jvm.lib $(WIN_JAVA_LIB) advapi32.lib \ |
|
729 |
-DELAYLOAD:user32.dll -DELAYLOAD:gdi32.dll \ |
|
730 |
-DELAYLOAD:shell32.dll -DELAYLOAD:winmm.dll \ |
|
731 |
-DELAYLOAD:winspool.drv -DELAYLOAD:imm32.dll \ |
|
732 |
-DELAYLOAD:ole32.dll -DELAYLOAD:comdlg32.dll \ |
|
733 |
-DELAYLOAD:comctl32.dll -DELAYLOAD:shlwapi.dll,\ |
|
13164 | 734 |
VERSIONINFO_RESOURCE:=$(LIBAWT_VERSIONINFO_RESOURCE),\ |
735 |
RC_FLAGS:=$(RC_FLAGS) $(LIBAWT_RC_FLAGS) \ |
|
14231 | 736 |
-D "JDK_FNAME=awt.dll" \ |
737 |
-D "JDK_INTERNAL_NAME=awt" \ |
|
738 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 739 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt,\ |
740 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 741 |
|
742 |
$(BUILD_LIBAWT) : $(BUILD_LIBJAVA) |
|
743 |
||
744 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
745 |
$(BUILD_LIBAWT) : $(BUILD_LIBMLIB_IMAGE) |
|
746 |
endif |
|
747 |
||
748 |
BUILD_LIBRARIES += $(BUILD_LIBAWT) |
|
12892 | 749 |
|
750 |
########################################################################################## |
|
751 |
||
752 |
# TODO!! |
|
13164 | 753 |
# Even though this variable as a general name, it is |
754 |
# only used on macos, in fontpath.c, as prefix for where to find fonts. |
|
755 |
# |
|
756 |
# It's used for libawt_headless _and_ libawt_xawt |
|
757 |
# |
|
758 |
X11_PATH:=/usr/X11R6 |
|
759 |
||
760 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
|
12892 | 761 |
ifndef BUILD_HEADLESS_ONLY |
762 |
||
13164 | 763 |
LIBAWT_XAWT_DIRS:=\ |
12892 | 764 |
$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
765 |
$(JDK_TOPDIR)/src/share/native/sun/awt/utility \ |
|
766 |
$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
13702 | 767 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/font \ |
12892 | 768 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
13702 | 769 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \ |
770 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/opengl \ |
|
771 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/x11 \ |
|
772 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/xawt \ |
|
13164 | 773 |
|
774 |
LIBAWT_XAWT_CFLAGS:=-DXAWT -DXAWT_HACK \ |
|
12892 | 775 |
-DX11_PATH=\"$(X11_PATH)\" -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \ |
776 |
$(CUPS_CFLAGS) \ |
|
777 |
$(foreach dir,$(LIBAWT_XAWT_DIRS),-I$(dir)) \ |
|
778 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
13702 | 779 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
12892 | 780 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
781 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
782 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
783 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
784 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
13702 | 785 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga |
13164 | 786 |
|
787 |
ifeq ($(OPENJDK_TARGET_OS),solaris) |
|
12892 | 788 |
LIBAWT_XAWT_CFLAGS += -DFUNCPROTO=15 |
789 |
endif |
|
790 |
||
791 |
ifeq ($(MILESTONE),internal) |
|
792 |
LIBAWT_XAWT_CFLAGS += -DINTERNAL_BUILD |
|
793 |
endif |
|
794 |
||
13164 | 795 |
LIBAWT_XAWT_FILES:=\ |
12892 | 796 |
XlibWrapper.c \ |
797 |
XWindow.c \ |
|
798 |
XToolkit.c \ |
|
799 |
X11Color.c \ |
|
800 |
X11SurfaceData.c \ |
|
801 |
awt_GraphicsEnv.c \ |
|
802 |
awt_InputMethod.c \ |
|
803 |
robot_common.c \ |
|
804 |
awt_Robot.c \ |
|
805 |
list.c \ |
|
806 |
multiVis.c \ |
|
807 |
initIDs.c \ |
|
808 |
awt_util.c \ |
|
809 |
awt_Desktop.c \ |
|
810 |
awt_UNIXToolkit.c \ |
|
811 |
X11FontScaler_md.c \ |
|
812 |
X11TextRenderer_md.c \ |
|
813 |
fontpath.c \ |
|
814 |
awt_Insets.c \ |
|
815 |
awt_Event.c \ |
|
816 |
X11Renderer.c \ |
|
817 |
X11PMBlitLoops.c \ |
|
818 |
OGLBlitLoops.c \ |
|
819 |
OGLBufImgOps.c \ |
|
820 |
OGLContext.c \ |
|
821 |
OGLFuncs.c \ |
|
822 |
OGLMaskBlit.c \ |
|
823 |
OGLMaskFill.c \ |
|
824 |
OGLPaints.c \ |
|
825 |
OGLRenderQueue.c \ |
|
826 |
OGLRenderer.c \ |
|
827 |
OGLSurfaceData.c \ |
|
828 |
OGLTextRenderer.c \ |
|
829 |
OGLVertexCache.c \ |
|
830 |
GLXGraphicsConfig.c \ |
|
831 |
GLXSurfaceData.c \ |
|
832 |
AccelGlyphCache.c \ |
|
833 |
awt_Font.c \ |
|
834 |
multi_font.c \ |
|
835 |
awt_AWTEvent.c \ |
|
836 |
awt_DrawingSurface.c \ |
|
837 |
jawt.c \ |
|
838 |
CUPSfuncs.c \ |
|
839 |
debug_assert.c \ |
|
840 |
debug_mem.c \ |
|
841 |
debug_trace.c \ |
|
842 |
debug_util.c \ |
|
843 |
awt_Plugin.c \ |
|
844 |
gtk2_interface.c \ |
|
845 |
swing_GTKEngine.c \ |
|
846 |
swing_GTKStyle.c \ |
|
847 |
rect.c \ |
|
848 |
sun_awt_X11_GtkFileDialogPeer.c \ |
|
849 |
XRSurfaceData.c \ |
|
850 |
XRBackendNative.c |
|
851 |
||
13164 | 852 |
LIBAWT_XAWT_LDFLAGS_SUFFIX:=$(LIBM) -lawt -lXext -lX11 -lXrender $(LIBDL) -lXtst -lXi -ljava -ljvm -lc |
853 |
||
854 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
13702 | 855 |
# To match old build, add this to LDFLAGS instead of suffix. |
856 |
LIBAWT_XAWT_LDFLAGS += -lpthread |
|
12892 | 857 |
endif |
858 |
||
13164 | 859 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
12892 | 860 |
LIBAWT_XAWT_LDFLAGS_SUFFIX += -lpthread |
861 |
endif |
|
862 |
||
13702 | 863 |
# On macosx, the shared library origin is set twice for this lib. |
12892 | 864 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_XAWT,\ |
13164 | 865 |
LIBRARY:=awt_xawt,\ |
866 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 867 |
SRC:=$(LIBAWT_XAWT_DIRS),\ |
13164 | 868 |
INCLUDE_FILES:=$(LIBAWT_XAWT_FILES),\ |
12892 | 869 |
LANG:=C,\ |
13164 | 870 |
OPTIMIZATION:=LOW, \ |
871 |
CFLAGS:=$(CFLAGS_JDKLIB) $(LIBAWT_XAWT_CFLAGS) \ |
|
12892 | 872 |
$(X_CFLAGS),\ |
13164 | 873 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt_xawt/mapfile-vers, \ |
12892 | 874 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
13702 | 875 |
$(X_LIBS) $(LIBAWT_XAWT_LDFLAGS),\ |
876 |
LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
877 |
$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
|
878 |
LDFLAGS_solaris:=-L$(OPENWIN_HOME)/sfw/lib$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
879 |
-L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
880 |
-R$(OPENWIN_HOME)/sfw/lib$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
881 |
-R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
882 |
-R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
883 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
884 |
$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
|
885 |
LDFLAGS_macosx:=$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
886 |
$(call SET_SHARED_LIBRARY_ORIGIN). \ |
|
887 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
888 |
$(call SET_SHARED_LIBRARY_ORIGIN).,\ |
|
13164 | 889 |
LDFLAGS_SUFFIX:=$(LIBAWT_XAWT_LDFLAGS_SUFFIX),\ |
13702 | 890 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
891 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 892 |
-D "JDK_FNAME=xawt.dll" \ |
893 |
-D "JDK_INTERNAL_NAME=xawt" \ |
|
894 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 895 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_xawt)) |
896 |
||
897 |
$(BUILD_LIBAWT_XAWT) : $(BUILD_LIBJAVA) |
|
898 |
||
899 |
$(BUILD_LIBAWT_XAWT) : $(BUILD_LIBAWT) |
|
900 |
||
901 |
BUILD_LIBRARIES += $(BUILD_LIBAWT_XAWT) |
|
902 |
||
903 |
endif |
|
904 |
endif |
|
905 |
||
906 |
########################################################################################## |
|
907 |
||
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
908 |
BUILD_LIBZIP_EXCLUDES := |
13164 | 909 |
ifeq ($(USE_EXTERNAL_LIBZ),true) |
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
910 |
LIBZ := -lz |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
911 |
LIBZIP_EXCLUDES += zlib-1.2.5 |
13164 | 912 |
else |
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
913 |
ZLIB_CPPFLAGS := -I$(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5 |
13164 | 914 |
endif |
915 |
||
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
916 |
BUILD_LIBZIP_REORDER := |
13164 | 917 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
13702 | 918 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
919 |
BUILD_LIBZIP_REORDER := $(JDK_TOPDIR)/makefiles/mapfiles/libzip/reorder-$(OPENJDK_TARGET_CPU) |
13164 | 920 |
endif |
921 |
endif |
|
922 |
||
923 |
ifeq ($(LIBZIP_CAN_USE_MMAP), true) |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
924 |
BUILD_LIBZIP_MMAP := -DUSE_MMAP |
13164 | 925 |
endif |
926 |
||
927 |
$(eval $(call SetupNativeCompilation,BUILD_LIBZIP,\ |
|
928 |
LIBRARY:=zip,\ |
|
929 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
930 |
LANG:=C,\ |
|
931 |
OPTIMIZATION:=LOW, \ |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
932 |
SRC:=$(JDK_TOPDIR)/src/share/native/java/util/zip,\ |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
933 |
EXCLUDES:=$(LIBZIP_EXCLUDES),\ |
13164 | 934 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
935 |
$(ZLIB_CPPFLAGS) \ |
13164 | 936 |
-I$(JDK_TOPDIR)/src/share/native/java/io \ |
13702 | 937 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/io,\ |
13164 | 938 |
CFLAGS_posix:=$(BUILD_LIBZIP_MMAP) -UDEBUG,\ |
939 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libzip/mapfile-vers, \ |
|
940 |
REORDER:=$(BUILD_LIBZIP_REORDER), \ |
|
941 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
13702 | 942 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
13164 | 943 |
$(EXPORT_ZIP_FUNCS), \ |
13702 | 944 |
LDFLAGS_windows:=-export:ZIP_Open -export:ZIP_Close -export:ZIP_FindEntry \ |
13164 | 945 |
-export:ZIP_ReadEntry -export:ZIP_GetNextEntry jvm.lib \ |
946 |
$(WIN_JAVA_LIB),\ |
|
13702 | 947 |
LDFLAGS_SUFFIX_linux:=-ljvm -ljava $(LIBZ),\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
948 |
LDFLAGS_SUFFIX_solaris:=-ljvm -ljava $(LIBZ) -lc,\ |
13702 | 949 |
LDFLAGS_SUFFIX_macosx:=$(LIBZ) -ljava -ljvm,\ |
950 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
951 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 952 |
-D "JDK_FNAME=zip.dll" \ |
953 |
-D "JDK_INTERNAL_NAME=zip" \ |
|
954 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 955 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libzip,\ |
956 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 957 |
|
958 |
$(BUILD_LIBZIP) : $(BUILD_LIBJAVA) |
|
959 |
||
960 |
BUILD_LIBRARIES += $(BUILD_LIBZIP) |
|
961 |
||
962 |
########################################################################################## |
|
963 |
||
964 |
$(eval $(call SetupNativeCompilation,BUILD_LIBUNPACK,\ |
|
965 |
LIBRARY:=unpack, \ |
|
966 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
967 |
SRC:=$(JDK_TOPDIR)/src/share/native/com/sun/java/util/jar/pack,\ |
|
968 |
EXCLUDE_FILES:=main.cpp,\ |
|
969 |
LANG:=C++,\ |
|
970 |
OPTIMIZATION:=LOW, \ |
|
971 |
CFLAGS:=$(CXXFLAGS_JDKLIB) \ |
|
972 |
-DNO_ZLIB -DUNPACK_JNI -DFULL,\ |
|
973 |
CFLAGS_release:=-DPRODUCT,\ |
|
974 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libunpack/mapfile-vers, \ |
|
13702 | 975 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
13164 | 976 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
14231 | 977 |
LDFLAGS_windows:=-map:$(JDK_OUTPUTDIR)/objs/unpack.map -debug \ |
13164 | 978 |
jvm.lib $(WIN_JAVA_LIB),\ |
13702 | 979 |
LDFLAGS_SUFFIX_posix:=-ljvm $(LIBCXX) -ljava -lc,\ |
13164 | 980 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libunpack,\ |
981 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
982 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 983 |
-D "JDK_FNAME=unpack.dll" \ |
984 |
-D "JDK_INTERNAL_NAME=unpack" \ |
|
985 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 986 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
13164 | 987 |
|
988 |
$(BUILD_LIBUNPACK) : $(BUILD_LIBJAVA) |
|
989 |
||
990 |
BUILD_LIBRARIES += $(BUILD_LIBUNPACK) |
|
991 |
||
13702 | 992 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
13164 | 993 |
$(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)unpack.map: $(BUILD_LIBUNPACK) |
994 |
$(ECHO) Copying $(@F) |
|
995 |
$(CP) $(patsubst %$(SHARED_LIBRARY_SUFFIX),%.map,$<) $@ |
|
996 |
||
997 |
$(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)unpack.pdb: $(BUILD_LIBUNPACK) |
|
998 |
$(ECHO) Copying $(@F) |
|
999 |
$(CP) $(patsubst %$(SHARED_LIBRARY_SUFFIX),%.pdb,$<) $@ |
|
1000 |
endif |
|
1001 |
||
1002 |
########################################################################################## |
|
1003 |
||
1004 |
LIBATTACH_EXCLUDE_FILES:= |
|
1005 |
ifneq ($(OPENJDK_TARGET_OS),solaris) |
|
1006 |
LIBATTACH_EXCLUDE_FILES+=SolarisVirtualMachine.c |
|
1007 |
endif |
|
1008 |
ifneq ($(OPENJDK_TARGET_OS),linux) |
|
1009 |
LIBATTACH_EXCLUDE_FILES+=LinuxVirtualMachine.c |
|
1010 |
endif |
|
1011 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
|
1012 |
LIBATTACH_EXCLUDE_FILES+=BsdVirtualMachine.c |
|
1013 |
endif |
|
1014 |
||
1015 |
$(eval $(call SetupNativeCompilation,BUILD_LIBATTACH,\ |
|
1016 |
LIBRARY:=attach, \ |
|
1017 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1018 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/tools/attach,\ |
13164 | 1019 |
EXCLUDE_FILES:=$(LIBATTACH_EXCLUDE_FILES),\ |
1020 |
LANG:=C,\ |
|
1021 |
OPTIMIZATION:=LOW, \ |
|
1022 |
CFLAGS:=$(CFLAGS_JDKLIB),\ |
|
1023 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libattach/mapfile-$(OPENJDK_TARGET_OS), \ |
|
13702 | 1024 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1025 |
RC_FLAGS:=$(RC_FLAGS) \ |
|
14231 | 1026 |
-D "JDK_FNAME=attach.dll" \ |
1027 |
-D "JDK_INTERNAL_NAME=attach" \ |
|
1028 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1029 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1030 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1031 |
LDFLAGS_solaris:=-ldoor,\ |
|
1032 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
14231 | 1033 |
LDFLAGS_SUFFIX_windows:=$(WIN_JAVA_LIB) advapi32.lib psapi.lib,\ |
13164 | 1034 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libattach,\ |
1035 |
DEBUG_SYMBOLS:=true)) |
|
1036 |
||
1037 |
$(BUILD_LIBATTACH) : $(BUILD_LIBJAVA) |
|
1038 |
||
1039 |
BUILD_LIBRARIES += $(BUILD_LIBATTACH) |
|
1040 |
||
1041 |
########################################################################################## |
|
1042 |
||
1043 |
$(eval $(call SetupNativeCompilation,BUILD_LIBDT_SOCKET,\ |
|
1044 |
LIBRARY:=dt_socket,\ |
|
1045 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1046 |
SRC:=$(JDK_TOPDIR)/src/share/transport/socket \ |
|
13702 | 1047 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/socket,\ |
13164 | 1048 |
LANG:=C,\ |
1049 |
OPTIMIZATION:=LOW, \ |
|
1050 |
CFLAGS:=$(CFLAGS_JDKLIB) -DUSE_MMAP \ |
|
1051 |
-I$(INCLUDEDIR) -I$(JDK_OUTPUTDIR)/include/$(OPENJDK_TARGET_OS) \ |
|
1052 |
-I$(JDK_TOPDIR)/src/share/transport/socket \ |
|
13702 | 1053 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/socket \ |
13164 | 1054 |
-I$(JDK_TOPDIR)/src/share/back/export \ |
1055 |
-I$(JDK_TOPDIR)/src/share/back,\ |
|
1056 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libdt_socket/mapfile-vers, \ |
|
13702 | 1057 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1058 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
1059 |
LDFLAGS_SUFFIX_linux:=-lpthread,\ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
1060 |
LDFLAGS_SUFFIX_solaris:=-lnsl -lsocket -lc,\ |
13702 | 1061 |
LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX) -export:jdwpTransport_OnLoad ws2_32.lib,\ |
1062 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
1063 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1064 |
-D "JDK_FNAME=dt_socket.dll" \ |
1065 |
-D "JDK_INTERNAL_NAME=dt_socket" \ |
|
1066 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1067 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libdt_socket,\ |
1068 |
DEBUG_SYMBOLS:=true)) |
|
1069 |
||
1070 |
$(BUILD_LIBDT_SOCKET) : $(BUILD_LIBJAVA) |
|
1071 |
||
1072 |
BUILD_LIBRARIES += $(BUILD_LIBDT_SOCKET) |
|
1073 |
||
1074 |
########################################################################################## |
|
1075 |
||
13702 | 1076 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
13164 | 1077 |
|
1078 |
$(eval $(call SetupNativeCompilation,BUILD_LIBDT_SHMEM,\ |
|
1079 |
LIBRARY:=dt_shmem,\ |
|
1080 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1081 |
SRC:=$(JDK_TOPDIR)/src/share/native/com/sun/tools/jdi \ |
|
1082 |
$(JDK_TOPDIR)/src/share/transport/shmem \ |
|
13702 | 1083 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/shmem,\ |
13164 | 1084 |
LANG:=C,\ |
1085 |
OPTIMIZATION:=LOW, \ |
|
1086 |
CFLAGS:=$(CFLAGS_JDKLIB) -DUSE_MMAP\ |
|
1087 |
-I$(INCLUDEDIR) -I$(JDK_OUTPUTDIR)/include/$(OPENJDK_TARGET_OS) \ |
|
1088 |
-I$(JDK_TOPDIR)/src/share/transport/shmem \ |
|
13702 | 1089 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/shmem \ |
13164 | 1090 |
-I$(JDK_TOPDIR)/src/share/back/export, \ |
1091 |
LDFLAGS:=$(LDFLAGS_JDKLIB),\ |
|
13702 | 1092 |
LDFLAGS_windows:=-export:jdwpTransport_OnLoad,\ |
13164 | 1093 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
13702 | 1094 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1095 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1096 |
-D "JDK_FNAME=dt_shmem.dll" \ |
1097 |
-D "JDK_INTERNAL_NAME=dt_shmem" \ |
|
1098 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1099 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libdt_shmem,\ |
1100 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1101 |
|
1102 |
BUILD_LIBRARIES += $(BUILD_LIBDT_SHMEM) |
|
1103 |
||
1104 |
endif # OPENJDK_TARGET_OS |
|
1105 |
||
1106 |
########################################################################################## |
|
13702 | 1107 |
# JDWP_LOGGING causes log messages to be compiled into the library. |
13164 | 1108 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJDWP,\ |
1109 |
LIBRARY:=jdwp, \ |
|
1110 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1111 |
SRC:=$(JDK_TOPDIR)/src/share/back $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/back,\ |
13164 | 1112 |
LANG:=C,\ |
1113 |
OPTIMIZATION:=LOW, \ |
|
1114 |
CFLAGS:=$(CFLAGS_JDKLIB) -DJDWP_LOGGING\ |
|
1115 |
-I$(JDK_TOPDIR)/src/share/transport/export \ |
|
1116 |
-I$(JDK_TOPDIR)/src/share/back/export \ |
|
1117 |
-I$(JDK_TOPDIR)/src/share/npt \ |
|
13702 | 1118 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt \ |
13164 | 1119 |
-I$(JDK_TOPDIR)/src/share/back \ |
13702 | 1120 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/back \ |
13164 | 1121 |
-I$(JDK_OUTPUTDIR)/gensrc_jdwp_headers,\ |
1122 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjdwp/mapfile-vers, \ |
|
13702 | 1123 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1124 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1125 |
LDFLAGS_SUFFIX_linux:=$(LIBDL),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1126 |
LDFLAGS_SUFFIX_solaris:=$(LIBDL) -lc,\ |
13164 | 1127 |
LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
13702 | 1128 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1129 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1130 |
-D "JDK_FNAME=jdwp.dll" \ |
1131 |
-D "JDK_INTERNAL_NAME=jdwp" \ |
|
1132 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1133 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjdwp,\ |
1134 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1135 |
|
1136 |
$(BUILD_LIBJDWP) : $(BUILD_LIBJAVA) |
|
1137 |
||
1138 |
BUILD_LIBRARIES += $(BUILD_LIBJDWP) |
|
1139 |
||
1140 |
########################################################################################## |
|
1141 |
||
1142 |
LIBJAAS_MAPFILE:= |
|
1143 |
ifneq ($(OPENJDK_TARGET_OS),solaris) |
|
1144 |
LIBJAAS_EXCLUDE_FILES:=Solaris.c |
|
1145 |
else |
|
1146 |
# only on solaris...wonder why |
|
1147 |
LIBJAAS_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjaas/mapfile-vers |
|
1148 |
endif |
|
1149 |
||
1150 |
LIBJAAS_NAME:=jaas_unix |
|
1151 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
1152 |
LIBJAAS_NAME:=jaas_nt |
|
1153 |
endif |
|
1154 |
||
1155 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAAS,\ |
|
1156 |
LIBRARY:=$(LIBJAAS_NAME),\ |
|
1157 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1158 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/security/auth/module,\ |
13164 | 1159 |
LANG:=C,\ |
1160 |
OPTIMIZATION:=LOW, \ |
|
1161 |
CFLAGS:=$(CFLAGS_JDKLIB),\ |
|
1162 |
MAPFILE:=$(LIBJAAS_MAPFILE),\ |
|
1163 |
LDFLAGS:=$(filter-out -ljava,$(LDFLAGS_JDKLIB)) \ |
|
1164 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1165 |
LDFLAGS_windows:=netapi32.lib user32.lib mpr.lib advapi32.lib,\ |
13164 | 1166 |
LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1167 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13164 | 1168 |
EXCLUDE_FILES:=$(LIBJAAS_EXCLUDE_FILES),\ |
13702 | 1169 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1170 |
RC_FLAGS:=$(RC_FLAGS) \ |
|
14231 | 1171 |
-D "JDK_FNAME=$(LIBJAAS_NAME).dll" \ |
1172 |
-D "JDK_INTERNAL_NAME=$(LIBJAAS_NAME)" \ |
|
1173 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1174 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjaas,\ |
1175 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1176 |
|
1177 |
$(BUILD_LIBJAAS) : $(BUILD_LIBJAVA) |
|
1178 |
||
1179 |
BUILD_LIBRARIES += $(BUILD_LIBJAAS) |
|
1180 |
||
1181 |
########################################################################################## |
|
1182 |
||
1183 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJSDT,\ |
|
1184 |
LIBRARY:=jsdt,\ |
|
1185 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1186 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/tracing/dtrace\ |
|
13702 | 1187 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/tracing/dtrace,\ |
13164 | 1188 |
LANG:=C,\ |
1189 |
OPTIMIZATION:=LOW, \ |
|
1190 |
CFLAGS:=$(CFLAGS_JDKLIB)\ |
|
1191 |
-I$(JDK_TOPDIR)/src/share/native/sun/tracing/dtrace,\ |
|
1192 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjsdt/mapfile-vers, \ |
|
1193 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1194 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1195 |
LDFLAGS_SUFFIX_linux:=$(LIBDL),\ |
1196 |
LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX) $(LIBDL),\ |
|
13164 | 1197 |
LDFLAGS_SUFFIX_macosx:= $(LIBDL),\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1198 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 1199 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1200 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1201 |
-D "JDK_FNAME=jsdt.dll" \ |
1202 |
-D "JDK_INTERNAL_NAME=jsdt" \ |
|
1203 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1204 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsdt, \ |
13702 | 1205 |
DEBUG_SYMBOLS:=true)) |
13164 | 1206 |
|
1207 |
$(BUILD_LIBJSDT) : $(BUILD_LIBJAVA) |
|
1208 |
||
1209 |
BUILD_LIBRARIES += $(BUILD_LIBJSDT) |
|
1210 |
||
1211 |
########################################################################################## |
|
1212 |
||
1213 |
ifdef OPENJDK |
|
1214 |
# TODO: Update awt lib path when awt is converted |
|
1215 |
$(eval $(call SetupNativeCompilation,BUILD_LIBLCMS,\ |
|
1216 |
LIBRARY:=lcms,\ |
|
1217 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
1218 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/java2d/cmm/lcms,\ |
13164 | 1219 |
LANG:=C,\ |
1220 |
OPTIMIZATION:=LOW, \ |
|
1221 |
CFLAGS:=$(filter-out -xc99=%none,$(CFLAGS_JDKLIB)) \ |
|
1222 |
$(SHARED_LIBRARY_FLAGS) \ |
|
1223 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
1224 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug,\ |
|
1225 |
CFLAGS_solaris:=-xc99=no_lib,\ |
|
13702 | 1226 |
CFLAGS_windows:=-DCMS_IS_WINDOWS_,\ |
13164 | 1227 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/liblcms/mapfile-vers, \ |
13702 | 1228 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1229 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
1230 |
LDFLAGS_solaris:=/usr/lib$(OPENJDK_TARGET_CPU_ISADIR)/libm.so.2,\ |
|
1231 |
LDFLAGS_windows:=$(WIN_AWT_LIB) $(WIN_JAVA_LIB),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1232 |
LDFLAGS_SUFFIX_solaris:=-lawt -ljava -ljvm -lc,\ |
13702 | 1233 |
LDFLAGS_SUFFIX_macosx:=$(LIBM) -lawt -ljava -ljvm,\ |
1234 |
LDFLAGS_SUFFIX_linux:=-lm -lawt -ljava -ljvm,\ |
|
1235 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
1236 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1237 |
-D "JDK_FNAME=lcms.dll" \ |
1238 |
-D "JDK_INTERNAL_NAME=lcms" \ |
|
1239 |
-D "JDK_FTYPE=0x2L",\ |
|
1240 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/liblcms,\ |
|
1241 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1242 |
|
1243 |
BUILD_LIBRARIES += $(BUILD_LIBLCMS) |
|
1244 |
||
1245 |
$(BUILD_LIBLCMS) : $(BUILD_LIBAWT) |
|
1246 |
endif |
|
1247 |
||
1248 |
########################################################################################## |
|
1249 |
||
1250 |
ifdef OPENJDK |
|
1251 |
BUILD_LIBJPEG_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjpeg/mapfile-vers |
|
1252 |
else |
|
1253 |
BUILD_LIBJPEG_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjpeg/mapfile-vers-closed |
|
1254 |
BUILD_LIBJPEG_CLOSED_SRC:=$(JDK_TOPDIR)/src/closed/share/native/sun/awt/image/jpeg |
|
1255 |
BUILD_LIBJPEG_CLOSED_INCLUDES:=-I$(BUILD_LIBJPEG_CLOSED_SRC) |
|
1256 |
endif |
|
1257 |
||
1258 |
BUILD_LIBJPEG_REORDER:= |
|
1259 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 1260 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
1261 |
BUILD_LIBJPEG_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libjpeg/reorder-$(OPENJDK_TARGET_CPU) |
|
13164 | 1262 |
endif |
1263 |
endif |
|
1264 |
||
1265 |
# Suppress gcc warnings like "variable might be clobbered by 'longjmp' |
|
1266 |
# or 'vfork'": this warning indicates that some variable is placed to |
|
1267 |
# a register by optimized compiler and it's value might be lost on longjmp(). |
|
1268 |
# Recommended way to avoid such warning is to declare the variable as |
|
1269 |
# volatile to prevent the optimization. However, this approach does not |
|
1270 |
# work because we have to declare all variables as volatile in result. |
|
1271 |
#ifndef CROSS_COMPILE_ARCH |
|
1272 |
# CC_43_OR_NEWER:=\ |
|
1273 |
# $(shell $(EXPR) $(CC_MAJORVER) \> 4 \| \ |
|
1274 |
# \( $(CC_MAJORVER) = 4 \& $(CC_MINORVER) \>= 3 \) ) |
|
1275 |
# ifeq ($(CC_43_OR_NEWER),1) |
|
1276 |
# BUILD_LIBJPEG_CFLAGS_linux += -Wno-clobbered |
|
1277 |
# endif |
|
1278 |
#endif |
|
1279 |
||
1280 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJPEG,\ |
|
1281 |
LIBRARY:=jpeg, \ |
|
1282 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1283 |
SRC:=$(BUILD_LIBJPEG_CLOSED_SRC) \ |
|
1284 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg,\ |
|
1285 |
LANG:=C,\ |
|
1286 |
OPTIMIZATION:=HIGHEST, \ |
|
1287 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1288 |
$(BUILD_LIBJPEG_CLOSED_INCLUDES) \ |
|
1289 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg,\ |
|
1290 |
MAPFILE:=$(BUILD_LIBJPEG_MAPFILE), \ |
|
1291 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1292 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1293 |
LDFLAGS_windows:=$(WIN_JAVA_LIB) jvm.lib,\ |
13164 | 1294 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
13702 | 1295 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1296 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1297 |
-D "JDK_FNAME=jpeg.dll" \ |
1298 |
-D "JDK_INTERNAL_NAME=jpeg" \ |
|
1299 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1300 |
REORDER:=$(BUILD_LIBJPEG_REORDER),\ |
13702 | 1301 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjpeg,\ |
1302 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1303 |
|
1304 |
$(BUILD_LIBJPEG) : $(BUILD_LIBJAVA) |
|
1305 |
||
1306 |
BUILD_LIBRARIES += $(BUILD_LIBJPEG) |
|
1307 |
||
1308 |
########################################################################################## |
|
1309 |
||
1310 |
ifndef OPENJDK |
|
14231 | 1311 |
FONT_HEADERS:=-I$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k |
13164 | 1312 |
BUILD_LIBFONTMANAGER_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libfontmanager/mapfile-vers |
1313 |
LIBFONTMANAGER_EXCLUDE_FILES += freetypeScaler.c |
|
1314 |
else |
|
1315 |
FONT_HEADERS:=$(FREETYPE2_CFLAGS) |
|
1316 |
BUILD_LIBFONTMANAGER_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libfontmanager/mapfile-vers.openjdk |
|
1317 |
BUILD_LIBFONTMANAGER_FONTLIB:=$(FREETYPE2_LIBS) |
|
1318 |
endif |
|
1319 |
||
1320 |
LIBFONTMANAGER_OPTIMIZATION:=HIGH |
|
1321 |
||
1322 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
1323 |
LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \ |
|
1324 |
X11TextRenderer.c |
|
1325 |
LIBFONTMANAGER_OPTIMIZATION:=LOW |
|
1326 |
else |
|
1327 |
LIBFONTMANAGER_EXCLUDE_FILES += fontpath.c \ |
|
1328 |
lcdglyph.c |
|
1329 |
endif |
|
1330 |
||
1331 |
BUILD_LIBFONTMANAGER_CFLAGS_COMMON:=\ |
|
1332 |
$(X_CFLAGS) \ |
|
1333 |
-DLE_STANDALONE -DHEADLESS \ |
|
1334 |
$(FONT_HEADERS) \ |
|
1335 |
-I$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
1336 |
-I$(JDK_TOPDIR)/src/share/native/sun/font/layout \ |
|
1337 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
13702 | 1338 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \ |
13164 | 1339 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
1340 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
|
1341 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
13702 | 1342 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
13164 | 1343 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d |
1344 |
||
1345 |
# Turn off aliasing with GCC for ExtensionSubtables.cpp |
|
1346 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
1347 |
BUILD_LIBFONTMANAGER_ExtensionSubtables.cpp_CXXFLAGS:=-fno-strict-aliasing |
|
1348 |
endif |
|
1349 |
||
1350 |
$(eval $(call SetupNativeCompilation,BUILD_LIBFONTMANAGER,\ |
|
1351 |
LIBRARY:=fontmanager, \ |
|
1352 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1353 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/font\ |
|
13702 | 1354 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/font,\ |
13164 | 1355 |
EXCLUDE_FILES:=$(LIBFONTMANAGER_EXCLUDE_FILES) \ |
1356 |
AccelGlyphCache.c,\ |
|
1357 |
LANG:=C++,\ |
|
1358 |
CFLAGS:=$(CFLAGS_JDKLIB) $(BUILD_LIBFONTMANAGER_CFLAGS_COMMON),\ |
|
1359 |
CXXFLAGS:=$(CXXFLAGS_JDKLIB) $(BUILD_LIBFONTMANAGER_CFLAGS_COMMON),\ |
|
1360 |
OPTIMIZATION:=$(LIBFONTMANAGER_OPTIMIZATION), \ |
|
13702 | 1361 |
CFLAGS_windows= -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows \ |
13164 | 1362 |
-DCC_NOEX, \ |
1363 |
MAPFILE:=$(BUILD_LIBFONTMANAGER_MAPFILE), \ |
|
13702 | 1364 |
LDFLAGS:=$(subst -Xlinker -z -Xlinker defs,,$(LDFLAGS_JDKLIB)) $(LDFLAGS_CXX_JDK) \ |
13164 | 1365 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
13702 | 1366 |
LDFLAGS_SUFFIX:=$(BUILD_LIBFONTMANAGER_FONTLIB),\ |
1367 |
LDFLAGS_SUFFIX_linux:=-lawt $(LIBM) $(LIBCXX) -ljava -ljvm -lc,\ |
|
1368 |
LDFLAGS_SUFFIX_solaris:=-lawt -lawt_xawt -lc $(LIBM) $(LIBCXX) -ljava -ljvm,\ |
|
14231 | 1369 |
LDFLAGS_SUFFIX_macosx:=-lawt $(LIBM) $(LIBCXX) -undefined dynamic_lookup \ |
1370 |
-ljava -ljvm,\ |
|
1371 |
LDFLAGS_SUFFIX_windows:=$(WIN_JAVA_LIB) advapi32.lib user32.lib gdi32.lib \ |
|
1372 |
$(WIN_AWT_LIB),\ |
|
13702 | 1373 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1374 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1375 |
-D "JDK_FNAME=fontmanager.dll" \ |
1376 |
-D "JDK_INTERNAL_NAME=fontmanager" \ |
|
1377 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1378 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfontmanager,\ |
1379 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1380 |
|
1381 |
$(BUILD_LIBFONTMANAGER) : $(BUILD_LIBAWT) |
|
1382 |
||
1383 |
ifneq (,$(findstring $(OPENJDK_TARGET_OS),solaris macosx)) |
|
1384 |
$(BUILD_LIBFONTMANAGER) : $(BUILD_LIBAWT_XAWT) |
|
1385 |
endif |
|
1386 |
||
1387 |
BUILD_LIBRARIES += $(BUILD_LIBFONTMANAGER) |
|
1388 |
||
1389 |
########################################################################################## |
|
1390 |
||
1391 |
ifndef OPENJDK |
|
1392 |
||
1393 |
# ifeq ($(OPENJDK_TARGET_OS), linux) |
|
1394 |
# ifeq ("$(CC_VER_MAJOR)", "3") |
|
1395 |
# OTHER_LDLIBS += -Wl,-Bstatic -lgcc_eh -Wl,-Bdynamic |
|
1396 |
# endif |
|
1397 |
# endif |
|
1398 |
# |
|
1399 |
# The resulting size of the t2k lib file is (at least on linux) dependant on the order of |
|
1400 |
# the input .o files. Because of this the new build will differ in size to the old build. |
|
1401 |
BUILD_LIBT2K_CFLAGS_COMMON:=-I$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
1402 |
-I$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k \ |
|
1403 |
-I$(JDK_TOPDIR)/src/closed/share/native/sun/font \ |
|
1404 |
-I$(JDK_TOPDIR)/src/share/share/native/sun/font \ |
|
13702 | 1405 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/font \ |
13164 | 1406 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
1407 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
13702 | 1408 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
13164 | 1409 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d |
1410 |
||
1411 |
$(eval $(call SetupNativeCompilation,BUILD_LIBT2K,\ |
|
1412 |
LIBRARY:=t2k, \ |
|
1413 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1414 |
SRC:=$(JDK_TOPDIR)/src/closed/share/native/sun/font \ |
|
1415 |
$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k \ |
|
1416 |
$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k/ttHints,\ |
|
1417 |
EXCLUDE_FILES:=orion.c,\ |
|
1418 |
LANG:=C++,\ |
|
1419 |
OPTIMIZATION:=HIGH, \ |
|
1420 |
CFLAGS:=$(CFLAGS_JDKLIB) $(BUILD_LIBT2K_CFLAGS_COMMON),\ |
|
1421 |
CXXFLAGS:=$(CXXFLAGS_JDKLIB) $(BUILD_LIBT2K_CFLAGS_COMMON),\ |
|
1422 |
CFLAGS_windows=-DCC_NOEX, \ |
|
1423 |
CXXFLAGS_windows=-DCC_NOEX, \ |
|
1424 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libt2k/mapfile-vers, \ |
|
13702 | 1425 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
13164 | 1426 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
1427 |
LDFLAGS_windows:=user32.lib $(JDK_OUTPUTDIR)/objs/libfontmanager/fontmanager.lib,\ |
|
13702 | 1428 |
LDFLAGS_SUFFIX_posix:=$(LIBM) $(LIBCXX) -lfontmanager -ljava -ljvm -lc,\ |
1429 |
LDFLAGS_SUFFIX_solaris:=-lawt -lawt_xawt,\ |
|
1430 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
1431 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1432 |
-D "JDK_FNAME=t2k.dll" \ |
1433 |
-D "JDK_INTERNAL_NAME=t2k" \ |
|
1434 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1435 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libt2k,\ |
1436 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1437 |
|
1438 |
# t2k is linked against fontmanager |
|
1439 |
$(BUILD_LIBT2K) : $(BUILD_LIBFONTMANAGER) |
|
1440 |
||
1441 |
BUILD_LIBRARIES += $(BUILD_LIBT2K) |
|
1442 |
endif |
|
1443 |
||
1444 |
########################################################################################## |
|
1445 |
||
1446 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
13702 | 1447 |
ifeq ($(OPENJDK_TARGET_CPU), x86) |
13164 | 1448 |
KERNEL32_LIB:=kernel32.lib |
1449 |
endif |
|
1450 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAWT,\ |
|
1451 |
LIBRARY:=jawt, \ |
|
1452 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1453 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows,\ |
13164 | 1454 |
INCLUDE_FILES:=jawt.cpp,\ |
1455 |
LANG:=C++,\ |
|
1456 |
OPTIMIZATION:=LOW, \ |
|
1457 |
CFLAGS:=$(CXXFLAGS_JDKLIB) \ |
|
1458 |
-EHsc -DUNICODE -D_UNICODE \ |
|
13702 | 1459 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows \ |
13164 | 1460 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
1461 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
1462 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
13702 | 1463 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/windows, \ |
1464 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(KERNEL32_LIB) $(LDFLAGS_CXX_JDK) \ |
|
13164 | 1465 |
advapi32.lib $(WIN_AWT_LIB),\ |
1466 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
13702 | 1467 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1468 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1469 |
-D "JDK_FNAME=jawt.dll" \ |
1470 |
-D "JDK_INTERNAL_NAME=jawt" \ |
|
1471 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1472 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjawt,\ |
1473 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1474 |
|
1475 |
$(BUILD_LIBJAWT) : $(BUILD_LIBAWT) |
|
1476 |
||
1477 |
$(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX): $(BUILD_LIBJAWT) |
|
1478 |
$(ECHO) Copying $(@F) |
|
13702 | 1479 |
$(CP) $(JDK_OUTPUTDIR)/objs/libjawt/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX) $@ |
13164 | 1480 |
|
1481 |
BUILD_LIBRARIES += $(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX) |
|
1482 |
||
1483 |
else # OPENJDK_TARGET_OS not windows |
|
1484 |
||
1485 |
JAWT_LIBS:= |
|
1486 |
ifneq ($(OPENJDK_TARGET_OS), solaris) |
|
1487 |
JAWT_LIBS += -lawt |
|
1488 |
endif |
|
1489 |
||
1490 |
ifndef BUILD_HEADLESS_ONLY |
|
1491 |
JAWT_LIBS += -lawt_xawt |
|
1492 |
else |
|
1493 |
JAWT_LIBS += -lawt_headless |
|
1494 |
HEADLESS_CFLAG += -DHEADLESS |
|
1495 |
endif |
|
1496 |
||
1497 |
JAWT_FILES:=jawt.c |
|
1498 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
1499 |
JAWT_FILES:=jawt.m |
|
1500 |
JAWT_LIBS:=-lawt_lwawt |
|
1501 |
endif |
|
1502 |
||
1503 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAWT,\ |
|
1504 |
LIBRARY:=jawt, \ |
|
1505 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1506 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \ |
13164 | 1507 |
$(JDK_TOPDIR)/src/macosx/native/sun/awt,\ |
1508 |
INCLUDE_FILES:=$(JAWT_FILES),\ |
|
1509 |
LANG:=C,\ |
|
1510 |
OPTIMIZATION:=LOW, \ |
|
1511 |
CFLAGS:=$(CFLAGS_JDKLIB), \ |
|
1512 |
CFLAGS_linux:=$(HEADLESS_CFLAG),\ |
|
1513 |
CFLAGS_macosx:=-I$(JDK_TOPDIR)/src/solaris/native/sun/awt ,\ |
|
1514 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjawt/mapfile-vers, \ |
|
1515 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1516 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1517 |
LDFLAGS_solaris:=-L$(OPENWIN_HOME)/sfw/lib$(OPENJDK_TARGET_CPU_ISADIR) -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR),\ |
1518 |
LDFLAGS_SUFFIX_linux:=$(JAWT_LIBS) $(LDFLAGS_JDKLIB_SUFFIX),\ |
|
1519 |
LDFLAGS_SUFFIX_solaris:=$(JAWT_LIBS) $(LDFLAGS_JDKLIB_SUFFIX) -lXrender,\ |
|
1520 |
LDFLAGS_SUFFIX_macosx:=-Xlinker -rpath -Xlinker @loader_path $(JAWT_LIBS) \ |
|
1521 |
-framework Cocoa $(LDFLAGS_JDKLIB_SUFFIX),\ |
|
13164 | 1522 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjawt)) |
1523 |
||
1524 |
ifndef BUILD_HEADLESS_ONLY |
|
1525 |
$(BUILD_LIBJAWT) : $(BUILD_LIBAWT_XAWT) |
|
1526 |
else |
|
1527 |
$(BUILD_LIBJAWT) : $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)awt_headless$(SHARED_LIBRARY_SUFFIX) |
|
1528 |
endif |
|
1529 |
||
1530 |
ifeq ($(OPENJDK_TARGET_OS),macosx) |
|
1531 |
$(BUILD_LIBJAWT) : $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)awt_lwawt$(SHARED_LIBRARY_SUFFIX) |
|
1532 |
endif |
|
1533 |
||
1534 |
endif # OPENJDK_TARGET_OS |
|
1535 |
||
1536 |
BUILD_LIBRARIES += $(BUILD_LIBJAWT) |
|
1537 |
||
1538 |
########################################################################################## |
|
1539 |
||
13702 | 1540 |
LIBINSTRUMENT_SRC :=$(JDK_TOPDIR)/src/share/instrument \ |
1541 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/io \ |
|
1542 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/instrument |
|
1543 |
||
1544 |
LIBINSTRUMENT_FILES :=\ |
|
13164 | 1545 |
EncodingSupport.c \ |
1546 |
EncodingSupport_md.c \ |
|
1547 |
FileSystemSupport_md.c \ |
|
1548 |
InstrumentationImplNativeMethods.c \ |
|
1549 |
InvocationAdapter.c \ |
|
1550 |
JarFacade.c \ |
|
1551 |
JPLISAgent.c \ |
|
1552 |
JPLISAssert.c \ |
|
1553 |
JavaExceptions.c \ |
|
1554 |
PathCharsValidator.c \ |
|
1555 |
Reentrancy.c \ |
|
1556 |
Utilities.c \ |
|
1557 |
canonicalize_md.c |
|
1558 |
||
13702 | 1559 |
LIBINSTRUMENT_DIR :=$(JDK_OUTPUTDIR)/objs/libinstrument |
1560 |
LIBINSTRUMENT_CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1561 |
-I$(JDK_TOPDIR)/src/share/instrument \ |
|
1562 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/instrument \ |
|
1563 |
-I$(JDK_TOPDIR)/src/share/bin |
|
1564 |
||
1565 |
LIBINSTRUMENT_LDFLAGS:= |
|
1566 |
LIBINSTRUMENT_LDFLAGS_SUFFIX:= |
|
13164 | 1567 |
|
1568 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
13702 | 1569 |
LIBINSTRUMENT_LDFLAGS += $(JDK_OUTPUTDIR)/objs/jli_static.lib $(WIN_JAVA_LIB) \ |
1570 |
-export:Agent_OnAttach advapi32.lib |
|
1571 |
# Statically link the C runtime so that there are not dependencies on modules |
|
1572 |
# not on the search patch when invoked from the Windows system directory |
|
1573 |
# (or elsewhere). |
|
1574 |
LIBINSTRUMENT_CFLAGS := $(filter-out -MD,$(LIBINSTRUMENT_CFLAGS)) |
|
1575 |
# equivalent of strcasecmp is stricmp on Windows |
|
1576 |
LIBINSTRUMENT_CFLAGS += -Dstrcasecmp=stricmp |
|
13164 | 1577 |
endif |
1578 |
||
1579 |
$(eval $(call SetupNativeCompilation,BUILD_LIBINSTRUMENT,\ |
|
1580 |
LIBRARY:=instrument, \ |
|
1581 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1582 |
SRC:=$(LIBINSTRUMENT_SRC),\ |
1583 |
INCLUDE_FILES:=$(LIBINSTRUMENT_FILES),\ |
|
13164 | 1584 |
LANG:=C,\ |
1585 |
OPTIMIZATION:=LOW, \ |
|
13702 | 1586 |
CFLAGS:=$(LIBINSTRUMENT_CFLAGS),\ |
13164 | 1587 |
CFLAGS_debug:=-DJPLIS_LOGGING,\ |
1588 |
CFLAGS_release:=-DNO_JPLIS_LOGGING,\ |
|
1589 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libinstrument/mapfile-vers, \ |
|
13702 | 1590 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1591 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
1592 |
$(LIBINSTRUMENT_LDFLAGS),\ |
|
1593 |
LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN,/jli),\ |
|
1594 |
LDFLAGS_solaris:= $(call SET_SHARED_LIBRARY_ORIGIN,/jli),\ |
|
1595 |
LDFLAGS_macosx:=-Xlinker -all_load $(JDK_OUTPUTDIR)/objs/libjli_static.a \ |
|
1596 |
-framework Cocoa -framework Security -framework ApplicationServices,\ |
|
1597 |
LDFLAGS_SUFFIX:=$(LIBINSTRUMENT_LDFLAGS_SUFFIX),\ |
|
1598 |
LDFLAGS_SUFFIX_macosx:=-liconv $(LIBZ),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1599 |
LDFLAGS_SUFFIX_solaris:=$(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli $(LIBDL) -lc,\ |
13702 | 1600 |
LDFLAGS_SUFFIX_linux:=$(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli $(LIBDL),\ |
1601 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
1602 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1603 |
-D "JDK_FNAME=instrument.dll" \ |
1604 |
-D "JDK_INTERNAL_NAME=instrument" \ |
|
1605 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1606 |
OBJECT_DIR:=$(LIBINSTRUMENT_DIR),\ |
13164 | 1607 |
DEBUG_SYMBOLS:=true)) |
1608 |
||
1609 |
ifneq (,$(findstring $(OPENJDK_TARGET_OS), macosx windows)) |
|
1610 |
$(BUILD_LIBINSTRUMENT) : $(JDK_OUTPUTDIR)/objs/$(LIBRARY_PREFIX)jli_static$(STATIC_LIBRARY_SUFFIX) |
|
1611 |
else |
|
1612 |
$(BUILD_LIBINSTRUMENT) : $(INSTALL_LIBRARIES_HERE)/jli/$(LIBRARY_PREFIX)jli$(SHARED_LIBRARY_SUFFIX) |
|
1613 |
endif |
|
1614 |
$(BUILD_LIBINSTRUMENT) : $(BUILD_LIBJAVA) |
|
1615 |
||
1616 |
BUILD_LIBRARIES += $(BUILD_LIBINSTRUMENT) |
|
1617 |
||
1618 |
########################################################################################## |
|
1619 |
||
1620 |
BUILD_LIBMANAGEMENT_SRC:=$(JDK_TOPDIR)/src/share/native/sun/management \ |
|
13702 | 1621 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/management \ |
1622 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/management |
|
13164 | 1623 |
|
1624 |
BUILD_LIBMANAGEMENT_EXCLUDES:= |
|
1625 |
||
1626 |
BUILD_LIBMANAGEMENT_CFLAGS:=-I$(JDK_TOPDIR)/src/share/native/sun/management |
|
1627 |
||
1628 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
|
1629 |
BUILD_LIBMANAGEMENT_EXCLUDES += OperatingSystem_md.c |
|
1630 |
else |
|
1631 |
BUILD_LIBMANAGEMENT_EXCLUDES += UnixOperatingSystem_md.c |
|
1632 |
endif |
|
1633 |
||
1634 |
ifneq ($(OPENJDK_TARGET_OS),solaris) |
|
1635 |
BUILD_LIBMANAGEMENT_EXCLUDES += SolarisOperatingSystem.c |
|
1636 |
endif |
|
1637 |
||
1638 |
ifneq ($(OPENJDK_TARGET_OS),linux) |
|
1639 |
BUILD_LIBMANAGEMENT_EXCLUDES += LinuxOperatingSystem.c |
|
1640 |
endif |
|
1641 |
||
1642 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
|
1643 |
BUILD_LIBMANAGEMENT_EXCLUDES += MacosxOperatingSystem.c |
|
1644 |
endif |
|
1645 |
||
13702 | 1646 |
LIBMANAGEMENT_OPTIMIZATION:=HIGH |
1647 |
ifneq ($(findstring $(OPENJDK_TARGET_OS),solaris linux),) |
|
1648 |
ifeq ($(ENABLE_DEBUG_SYMBOLS), yes) |
|
1649 |
LIBMANAGEMENT_OPTIMIZATION:=LOW |
|
1650 |
endif |
|
1651 |
endif |
|
13164 | 1652 |
|
1653 |
$(eval $(call SetupNativeCompilation,BUILD_LIBMANAGEMENT,\ |
|
1654 |
LIBRARY:=management,\ |
|
1655 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1656 |
SRC:=$(BUILD_LIBMANAGEMENT_SRC),\ |
|
1657 |
EXCLUDE_FILES:=$(BUILD_LIBMANAGEMENT_EXCLUDES),\ |
|
1658 |
LANG:=C,\ |
|
13702 | 1659 |
OPTIMIZATION:=$(LIBMANAGEMENT_OPTIMIZATION), \ |
13164 | 1660 |
CFLAGS:=$(CFLAGS_JDKLIB) $(BUILD_LIBMANAGEMENT_CFLAGS),\ |
1661 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libmanagement/mapfile-vers, \ |
|
1662 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1663 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1664 |
LDFLAGS_solaris:=-lkstat,\ |
|
1665 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
14231 | 1666 |
LDFLAGS_SUFFIX_windows:=jvm.lib psapi.lib $(WIN_JAVA_LIB) advapi32.lib,\ |
13702 | 1667 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1668 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1669 |
-D "JDK_FNAME=management.dll" \ |
1670 |
-D "JDK_INTERNAL_NAME=management" \ |
|
1671 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1672 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libmanagement,\ |
1673 |
DEBUG_SYMBOLS:=true)) |
|
1674 |
||
1675 |
$(BUILD_LIBMANAGEMENT) : $(BUILD_LIBJAVA) |
|
1676 |
||
1677 |
BUILD_LIBRARIES += $(BUILD_LIBMANAGEMENT) |
|
1678 |
||
1679 |
########################################################################################## |
|
1680 |
||
13702 | 1681 |
BUILD_LIBHPROF_SRC:=$(JDK_TOPDIR)/src/share/demo/jvmti/hprof $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/demo/jvmti/hprof |
13164 | 1682 |
BUILD_LIBHPROF_CFLAGS:=-I$(JDK_TOPDIR)/src/share/demo/jvmti/hprof \ |
1683 |
-I$(JDK_TOPDIR)/src/share/npt \ |
|
13702 | 1684 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt \ |
13164 | 1685 |
-I$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo |
1686 |
||
1687 |
BUILD_LIBHPROF_LDFLAGS:= |
|
1688 |
||
13702 | 1689 |
LIBHPROF_OPTIMIZATION:=HIGHEST |
1690 |
ifneq ($(findstring $(OPENJDK_TARGET_OS),solaris linux),) |
|
1691 |
ifeq ($(ENABLE_DEBUG_SYMBOLS), yes) |
|
1692 |
LIBHPROF_OPTIMIZATION:=LOW |
|
1693 |
endif |
|
1694 |
endif |
|
1695 |
||
13164 | 1696 |
$(eval $(call SetupNativeCompilation,BUILD_LIBHPROF,\ |
1697 |
LIBRARY:=hprof, \ |
|
1698 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1699 |
SRC:=$(BUILD_LIBHPROF_SRC),\ |
|
1700 |
LANG:=C,\ |
|
13702 | 1701 |
OPTIMIZATION:=$(LIBHPROF_OPTIMIZATION), \ |
13164 | 1702 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
1703 |
$(BUILD_LIBHPROF_CFLAGS),\ |
|
1704 |
CFLAGS_debug:=-DHPROF_LOGGING,\ |
|
1705 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libhprof/mapfile-vers, \ |
|
1706 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1707 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1708 |
LDFLAGS_windows:=wsock32.lib winmm.lib advapi32.lib,\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1709 |
LDFLAGS_SUFFIX_linux:=$(LIBDL),\ |
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1710 |
LDFLAGS_SUFFIX_macosx:=$(LIBDL),\ |
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1711 |
LDFLAGS_SUFFIX_solaris:=-lsocket -lnsl $(LIBDL) -lc,\ |
13702 | 1712 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1713 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1714 |
-D "JDK_FNAME=hprof.dll" \ |
1715 |
-D "JDK_INTERNAL_NAME=hprof" \ |
|
1716 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1717 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libhprof_jvmti,\ |
1718 |
DEBUG_SYMBOLS:=true)) |
|
1719 |
||
1720 |
BUILD_LIBRARIES += $(BUILD_LIBHPROF) |
|
1721 |
||
1722 |
########################################################################################## |
|
1723 |
||
1724 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAVA_CRW_DEMO,\ |
|
1725 |
LIBRARY:=java_crw_demo, \ |
|
1726 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1727 |
SRC:=$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo,\ |
|
1728 |
LANG:=C,\ |
|
1729 |
OPTIMIZATION:=LOW, \ |
|
1730 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1731 |
-I$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo,\ |
|
1732 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjava_crw_demo/mapfile-vers, \ |
|
1733 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1734 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1735 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 1736 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1737 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1738 |
-D "JDK_FNAME=java_crw_demo.dll" \ |
1739 |
-D "JDK_INTERNAL_NAME=java_crw_demo" \ |
|
1740 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1741 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjava_crw_demo,\ |
1742 |
DEBUG_SYMBOLS:=true)) |
|
1743 |
||
1744 |
BUILD_LIBRARIES += $(BUILD_LIBJAVA_CRW_DEMO) |
|
1745 |
||
1746 |
########################################################################################## |
|
1747 |
||
1748 |
$(eval $(call SetupNativeCompilation,BUILD_LIBNPT,\ |
|
1749 |
LIBRARY:=npt, \ |
|
1750 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1751 |
SRC:=$(JDK_TOPDIR)/src/share/npt $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt,\ |
13164 | 1752 |
LANG:=C,\ |
1753 |
OPTIMIZATION:=LOW, \ |
|
1754 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1755 |
-I$(JDK_TOPDIR)/src/share/npt \ |
|
13702 | 1756 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt,\ |
13164 | 1757 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnpt/mapfile-vers, \ |
1758 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1759 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1760 |
LDFLAGS_macosx:=-liconv,\ |
|
1761 |
LDFLAGS_SUFFIX_windows:=-export:nptInitialize -export:nptTerminate,\ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
1762 |
LDFLAGS_SUFFIX_solaris:=-lc, \ |
13702 | 1763 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1764 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1765 |
-D "JDK_FNAME=npt.dll" \ |
1766 |
-D "JDK_INTERNAL_NAME=npt" \ |
|
1767 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1768 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnpt,\ |
1769 |
DEBUG_SYMBOLS:=true)) |
|
1770 |
||
1771 |
BUILD_LIBRARIES += $(BUILD_LIBNPT) |
|
1772 |
||
1773 |
########################################################################################## |
|
1774 |
||
1775 |
LIBNET_SRC_DIRS:=$(JDK_TOPDIR)/src/share/native/java/net \ |
|
13702 | 1776 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net \ |
1777 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/dns \ |
|
1778 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/spi |
|
13164 | 1779 |
|
14231 | 1780 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
1781 |
LIBNET_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/www/protocol/http/ntlm |
|
1782 |
else |
|
1783 |
LIBNET_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/sdp |
|
1784 |
endif |
|
1785 |
||
13164 | 1786 |
LIBNET_CFLAGS:=$(foreach dir,$(LIBNET_SRC_DIRS),-I$(dir)) |
1787 |
||
1788 |
LIBNET_EXCLUDE_FILES:= |
|
1789 |
ifneq ($(OPENJDK_TARGET_OS),linux) |
|
1790 |
LIBNET_EXCLUDE_FILES += linux_close.c |
|
1791 |
endif |
|
1792 |
||
1793 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
|
1794 |
LIBNET_EXCLUDE_FILES += bsd_close.c |
|
1795 |
endif |
|
1796 |
||
1797 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
1798 |
LIBNET_EXCLUDE_FILES += PlainSocketImpl.c PlainDatagramSocketImpl.c SdpSupport.c |
|
1799 |
else |
|
1800 |
LIBNET_EXCLUDE_FILES += TwoStacksPlainSocketImpl.c DualStackPlainSocketImpl.c \ |
|
1801 |
TwoStacksPlainDatagramSocketImpl.c DualStackPlainDatagramSocketImpl.c \ |
|
1802 |
NTLMAuthSequence.c NetworkInterface_winXP.c |
|
1803 |
endif |
|
1804 |
||
1805 |
$(eval $(call SetupNativeCompilation,BUILD_LIBNET,\ |
|
1806 |
LIBRARY:=net,\ |
|
1807 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1808 |
SRC:=$(LIBNET_SRC_DIRS),\ |
|
1809 |
EXCLUDE_FILES:=$(LIBNET_EXCLUDE_FILES), \ |
|
1810 |
LANG:=C,\ |
|
1811 |
OPTIMIZATION:=LOW, \ |
|
1812 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1813 |
$(LIBNET_CFLAGS),\ |
|
1814 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnet/mapfile-vers, \ |
|
1815 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1816 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1817 |
LDFLAGS_SUFFIX_macosx:=-ljvm -ljava,\ |
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
1818 |
LDFLAGS_SUFFIX_solaris:=-ljvm -ljava -lnsl -lsocket $(LIBDL) -lc ,\ |
13702 | 1819 |
LDFLAGS_SUFFIX_linux:=$(LIBDL) -ljvm -lpthread -ljava,\ |
14231 | 1820 |
LDFLAGS_SUFFIX_windows:=ws2_32.lib jvm.lib secur32.lib iphlpapi.lib \ |
1821 |
delayimp.lib $(WIN_JAVA_LIB) advapi32.lib \ |
|
1822 |
-DELAYLOAD:secur32.dll -DELAYLOAD:iphlpapi.dll, \ |
|
13702 | 1823 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1824 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1825 |
-D "JDK_FNAME=net.dll" \ |
1826 |
-D "JDK_INTERNAL_NAME=net" \ |
|
1827 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1828 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnet,\ |
1829 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1830 |
|
1831 |
$(BUILD_LIBNET) : $(BUILD_LIBJAVA) |
|
1832 |
||
1833 |
BUILD_LIBRARIES += $(BUILD_LIBNET) |
|
1834 |
||
1835 |
$(JDK_OUTPUTDIR)/lib/net.properties: $(JDK_TOPDIR)/src/share/lib/net.properties |
|
14231 | 1836 |
$(ECHO) $(LOG_INFO) Copying $(@F) |
13164 | 1837 |
$(MKDIR) -p $(@D) |
1838 |
$(CP) $< $@ |
|
1839 |
||
1840 |
COPY_FILES += $(JDK_OUTPUTDIR)/lib/net.properties |
|
1841 |
||
1842 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 1843 |
$(JDK_OUTPUTDIR)/lib/sdp/sdp.conf.template : $(JDK_TOPDIR)/src/${OPENJDK_TARGET_OS_API_DIR}/lib/sdp/sdp.conf.template |
14231 | 1844 |
$(ECHO) $(LOG_INFO) Copying $(@F) |
13164 | 1845 |
$(MKDIR) -p $(@D) |
1846 |
$(CP) $< $@ |
|
1847 |
||
1848 |
COPY_FILES += $(JDK_OUTPUTDIR)/lib/sdp/sdp.conf.template |
|
1849 |
endif |
|
1850 |
||
1851 |
########################################################################################## |
|
1852 |
||
1853 |
BUILD_LIBNIO_SRC:=\ |
|
13702 | 1854 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/nio \ |
1855 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch \ |
|
1856 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/fs |
|
13164 | 1857 |
|
1858 |
BUILD_LIBNIO_CFLAGS:=\ |
|
1859 |
-I$(JDK_TOPDIR)/src/share/native/sun/nio/ch \ |
|
1860 |
-I$(JDK_TOPDIR)/src/share/native/java/io \ |
|
1861 |
-I$(JDK_TOPDIR)/src/share/native/java/net \ |
|
13702 | 1862 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net |
13164 | 1863 |
|
1864 |
BUILD_LIBNIO_FILES:=\ |
|
1865 |
DatagramChannelImpl.c \ |
|
1866 |
DatagramDispatcher.c \ |
|
1867 |
FileChannelImpl.c \ |
|
1868 |
FileDispatcherImpl.c \ |
|
1869 |
FileKey.c \ |
|
1870 |
IOUtil.c \ |
|
1871 |
MappedByteBuffer.c \ |
|
1872 |
Net.c \ |
|
1873 |
ServerSocketChannelImpl.c \ |
|
1874 |
SocketChannelImpl.c \ |
|
1875 |
SocketDispatcher.c |
|
1876 |
||
1877 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
1878 |
BUILD_LIBNIO_FILES += \ |
|
1879 |
Iocp.c \ |
|
1880 |
RegistryFileTypeDetector.c \ |
|
1881 |
WindowsAsynchronousFileChannelImpl.c \ |
|
1882 |
WindowsAsynchronousServerSocketChannelImpl.c \ |
|
1883 |
WindowsAsynchronousSocketChannelImpl.c \ |
|
1884 |
WindowsNativeDispatcher.c \ |
|
1885 |
WindowsSelectorImpl.c |
|
1886 |
endif |
|
1887 |
||
1888 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
13702 | 1889 |
BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
13164 | 1890 |
BUILD_LIBNIO_FILES += \ |
1891 |
EPoll.c \ |
|
1892 |
EPollArrayWrapper.c \ |
|
1893 |
EPollPort.c \ |
|
1894 |
InheritedChannel.c \ |
|
1895 |
NativeThread.c \ |
|
13702 | 1896 |
PollArrayWrapper.c \ |
13164 | 1897 |
UnixAsynchronousServerSocketChannelImpl.c \ |
1898 |
UnixAsynchronousSocketChannelImpl.c \ |
|
1899 |
GnomeFileTypeDetector.c \ |
|
1900 |
LinuxNativeDispatcher.c \ |
|
1901 |
LinuxWatchService.c \ |
|
1902 |
UnixCopyFile.c \ |
|
1903 |
UnixNativeDispatcher.c |
|
1904 |
endif |
|
1905 |
||
1906 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
13702 | 1907 |
BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
13164 | 1908 |
BUILD_LIBNIO_SRC += $(JDK_TOPDIR)/src/macosx/native/sun/nio/ch |
1909 |
BUILD_LIBNIO_FILES += \ |
|
1910 |
InheritedChannel.c \ |
|
1911 |
NativeThread.c \ |
|
1912 |
PollArrayWrapper.c \ |
|
1913 |
UnixAsynchronousServerSocketChannelImpl.c \ |
|
1914 |
UnixAsynchronousSocketChannelImpl.c \ |
|
1915 |
BsdNativeDispatcher.c \ |
|
13702 | 1916 |
MacOSXNativeDispatcher.c \ |
13164 | 1917 |
UnixCopyFile.c \ |
1918 |
UnixNativeDispatcher.c \ |
|
1919 |
KQueue.c \ |
|
1920 |
KQueuePort.c \ |
|
1921 |
KQueueArrayWrapper.c |
|
1922 |
endif |
|
1923 |
||
1924 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 1925 |
BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
13164 | 1926 |
BUILD_LIBNIO_FILES += \ |
1927 |
DevPollArrayWrapper.c \ |
|
1928 |
InheritedChannel.c \ |
|
1929 |
NativeThread.c \ |
|
1930 |
PollArrayWrapper.c \ |
|
1931 |
SolarisEventPort.c \ |
|
1932 |
UnixAsynchronousServerSocketChannelImpl.c \ |
|
1933 |
UnixAsynchronousSocketChannelImpl.c \ |
|
1934 |
GnomeFileTypeDetector.c \ |
|
1935 |
SolarisNativeDispatcher.c \ |
|
1936 |
SolarisWatchService.c \ |
|
1937 |
UnixCopyFile.c \ |
|
1938 |
UnixNativeDispatcher.c |
|
1939 |
endif |
|
1940 |
||
1941 |
$(eval $(call SetupNativeCompilation,BUILD_LIBNIO,\ |
|
1942 |
LIBRARY:=nio,\ |
|
1943 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1944 |
SRC:=$(BUILD_LIBNIO_SRC),\ |
|
1945 |
INCLUDE_FILES:=$(BUILD_LIBNIO_FILES), \ |
|
1946 |
LANG:=C,\ |
|
1947 |
OPTIMIZATION:=HIGH, \ |
|
1948 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1949 |
$(BUILD_LIBNIO_CFLAGS),\ |
|
1950 |
MAPFILE:=$(BUILD_LIBNIO_MAPFILE), \ |
|
1951 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(BUILD_LIBNIO_LDFLAGS) \ |
|
1952 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1953 |
LDFLAGS_SUFFIX_linux:=-ljava -lnet -lpthread $(LIBDL),\ |
|
13702 | 1954 |
LDFLAGS_SUFFIX_solaris:=-ljvm -lsocket -lposix4 $(LIBDL) \ |
1955 |
-lsendfile -ljava -lnet -lc,\ |
|
14231 | 1956 |
LDFLAGS_SUFFIX_windows:=jvm.lib ws2_32.lib $(WIN_JAVA_LIB) \ |
1957 |
$(JDK_OUTPUTDIR)/objs/libnet/net.lib \ |
|
13164 | 1958 |
$(JDK_OUTPUTDIR)/objs/libjava/io_util.obj \ |
14231 | 1959 |
$(JDK_OUTPUTDIR)/objs/libjava/FileDescriptor_md.obj \ |
1960 |
advapi32.lib,\ |
|
13702 | 1961 |
LDFLAGS_SUFFIX_macosx:=-ljava -lnet -pthread -framework CoreFoundation,\ |
13164 | 1962 |
LDFLAGS_SUFFIX:=,\ |
13702 | 1963 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1964 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1965 |
-D "JDK_FNAME=nio.dll" \ |
1966 |
-D "JDK_INTERNAL_NAME=nio" \ |
|
1967 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1968 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnio,\ |
1969 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1970 |
|
1971 |
BUILD_LIBRARIES += $(BUILD_LIBNIO) |
|
1972 |
||
1973 |
$(BUILD_LIBNIO) : $(BUILD_LIBNET) |
|
1974 |
||
1975 |
########################################################################################## |
|
1976 |
||
1977 |
ifeq ($(OPENJDK_TARGET_OS_API),posix) |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
1978 |
|
13164 | 1979 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
1980 |
||
1981 |
SCTP_WERROR := -Werror |
|
1982 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc) |
|
1983 |
SCTP_WERROR := |
|
1984 |
endif |
|
1985 |
||
1986 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSCTP,\ |
|
1987 |
LIBRARY:=sctp,\ |
|
1988 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1989 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch/sctp,\ |
13164 | 1990 |
LANG:=C,\ |
1991 |
OPTIMIZATION:=LOW, \ |
|
1992 |
CFLAGS:=$(CFLAGS_JDKLIB)\ |
|
1993 |
-I$(JDK_TOPDIR)/src/share/native/sun/nio/ch \ |
|
1994 |
-I$(JDK_TOPDIR)/src/share/native/sun/nio/ch/sctp \ |
|
1995 |
-I$(JDK_TOPDIR)/src/share/native/java/net \ |
|
13702 | 1996 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch \ |
1997 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net,\ |
|
13164 | 1998 |
CFLAGS_linux:=$(SCTP_WERROR),\ |
1999 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libsctp/mapfile-vers, \ |
|
2000 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2001 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2002 |
LDFLAGS_SUFFIX_linux:=-lpthread $(LIBDL) -ljava -ljvm,\ |
13164 | 2003 |
LDFLAGS_SUFFIX_posix:=-lnio -lnet,\ |
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
2004 |
LDFLAGS_SUFFIX_solaris:=-lsocket -ljava -ljvm -lc,\ |
13702 | 2005 |
LDFLAGS_SUFFIX_macosx:=-ljava -ljvm,\ |
13164 | 2006 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsctp)) |
2007 |
||
2008 |
BUILD_LIBRARIES += $(BUILD_LIBSCTP) |
|
2009 |
||
2010 |
$(BUILD_LIBSCTP) : $(BUILD_LIBNIO) |
|
2011 |
endif |
|
2012 |
endif |
|
2013 |
||
2014 |
########################################################################################## |
|
2015 |
||
13702 | 2016 |
BUILD_LIBJLI_SRC_DIRS:=$(JDK_TOPDIR)/src/share/bin $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin |
2017 |
LIBJLI_CFLAGS:=$(CFLAGS_JDKLIB) $(foreach dir,$(BUILD_LIBJLI_SRC_DIRS),-I$(dir)) |
|
13164 | 2018 |
|
2019 |
BUILD_LIBJLI_FILES:=\ |
|
2020 |
java.c \ |
|
2021 |
splashscreen_stubs.c \ |
|
2022 |
parse_manifest.c \ |
|
2023 |
version_comp.c \ |
|
2024 |
wildcard.c \ |
|
2025 |
jli_util.c |
|
2026 |
||
2027 |
ifeq ($(JVM_VARIANT_ZERO), true) |
|
2028 |
ERGO_FAMILY:=zero |
|
13702 | 2029 |
else |
2030 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), x86) |
|
13164 | 2031 |
ERGO_FAMILY:=i586 |
13702 | 2032 |
else |
2033 |
ERGO_FAMILY:=$(OPENJDK_TARGET_CPU_ARCH) |
|
2034 |
endif |
|
2035 |
endif |
|
13164 | 2036 |
|
2037 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
13702 | 2038 |
LIBJLI_CFLAGS += -I$(JDK_TOPDIR)/src/macosx/bin |
13164 | 2039 |
BUILD_LIBJLI_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/bin |
2040 |
BUILD_LIBJLI_FILES += java_md_common.c java_md_macosx.c |
|
2041 |
||
2042 |
BUILD_LIBJLI_java_md_macosx.c_CFLAGS:=-x objective-c |
|
2043 |
BUILD_LIBJLI_STATIC_java_md_macosx.c_CFLAGS:=-x objective-c |
|
2044 |
endif |
|
2045 |
||
2046 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
13702 | 2047 |
BUILD_LIBJLI_FILES += java_md.c \ |
2048 |
cmdtoargs.c |
|
2049 |
# Staticically link with c runtime on windows. |
|
2050 |
LIBJLI_CFLAGS:=$(filter-out -MD,$(LIBJLI_CFLAGS)) |
|
13164 | 2051 |
else ifneq ($(OPENJDK_TARGET_OS), macosx) |
2052 |
||
2053 |
BUILD_LIBJLI_FILES += java_md_common.c |
|
2054 |
BUILD_LIBJLI_FILES += java_md_solinux.c ergo.c |
|
2055 |
||
2056 |
ERGO_ARCH_FILE = ergo_$(ERGO_FAMILY).c |
|
2057 |
||
2058 |
# if the architecture specific ergo file exists then |
|
2059 |
# use it, else use the generic definitions from ergo.c |
|
13702 | 2060 |
ifneq ($(wildcard $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/$(ERGO_ARCH_FILE)),) |
13164 | 2061 |
BUILD_LIBJLI_FILES += $(ERGO_ARCH_FILE) |
2062 |
else # !ERGO_ARCH_FILE |
|
13702 | 2063 |
LIBJLI_CFLAGS += -DUSE_GENERIC_ERGO |
13164 | 2064 |
endif # ERGO_ARCH_FILE |
2065 |
endif #WINDOWS |
|
2066 |
||
13702 | 2067 |
# Append defines depending on target platform |
2068 |
LIBJLI_CFLAGS += $(OPENJDK_TARGET_CPU_JLI_CFLAGS) |
|
13164 | 2069 |
|
2070 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
13702 | 2071 |
LIBJLI_CFLAGS += -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" |
13164 | 2072 |
endif |
2073 |
||
2074 |
ifneq ($(USE_EXTERNAL_LIBZ),true) |
|
2075 |
BUILD_LIBJLI_SRC_DIRS += $(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5 |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2076 |
LIBJLI_CFLAGS += $(ZLIB_CPPFLAGS) |
13164 | 2077 |
BUILD_LIBJLI_FILES += \ |
2078 |
inflate.c \ |
|
2079 |
inftrees.c \ |
|
2080 |
inffast.c \ |
|
2081 |
zadler32.c \ |
|
2082 |
zcrc32.c \ |
|
2083 |
zutil.c |
|
2084 |
endif |
|
2085 |
||
2086 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
2087 |
LIBJLI_OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE) |
|
2088 |
else |
|
2089 |
LIBJLI_OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE)/jli |
|
2090 |
endif |
|
2091 |
||
2092 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJLI,\ |
|
2093 |
LIBRARY:=jli,\ |
|
2094 |
OUTPUT_DIR:=$(LIBJLI_OUTPUT_DIR),\ |
|
2095 |
SRC:=$(BUILD_LIBJLI_SRC_DIRS),\ |
|
2096 |
INCLUDE_FILES:=$(BUILD_LIBJLI_FILES),\ |
|
2097 |
LANG:=C,\ |
|
2098 |
OPTIMIZATION:=HIGH, \ |
|
13702 | 2099 |
CFLAGS:=$(LIBJLI_CFLAGS),\ |
13164 | 2100 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjli/mapfile-vers, \ |
2101 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2102 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2103 |
LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
2104 |
LDFLAGS_solaris:=$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
|
2105 |
LDFLAGS_macosx:=-framework Cocoa -framework Security -framework ApplicationServices,\ |
|
2106 |
LDFLAGS_SUFFIX_solaris:=$(LIBZ) $(LIBDL) -lc,\ |
|
2107 |
LDFLAGS_SUFFIX_linux:=$(LIBZ) $(LIBDL) -lc -lpthread,\ |
|
2108 |
LDFLAGS_SUFFIX_macosx:=$(LIBZ),\ |
|
13164 | 2109 |
LDFLAGS_SUFFIX_windows:=\ |
2110 |
-export:JLI_Launch \ |
|
2111 |
-export:JLI_ManifestIterate \ |
|
2112 |
-export:JLI_SetTraceLauncher \ |
|
2113 |
-export:JLI_ReportErrorMessage \ |
|
2114 |
-export:JLI_ReportErrorMessageSys \ |
|
2115 |
-export:JLI_ReportMessage \ |
|
2116 |
-export:JLI_ReportExceptionDescription \ |
|
13702 | 2117 |
-export:JLI_MemAlloc \ |
2118 |
-export:JLI_CmdToArgs \ |
|
2119 |
-export:JLI_GetStdArgc \ |
|
2120 |
-export:JLI_GetStdArgs \ |
|
13164 | 2121 |
advapi32.lib \ |
2122 |
comctl32.lib \ |
|
2123 |
user32.lib,\ |
|
13702 | 2124 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2125 |
RC_FLAGS:=$(RC_FLAGS) \ |
|
14231 | 2126 |
-D "JDK_FNAME=jli.dll" \ |
2127 |
-D "JDK_INTERNAL_NAME=jli" \ |
|
2128 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2129 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli,\ |
2130 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2131 |
|
2132 |
BUILD_LIBRARIES += $(BUILD_LIBJLI) |
|
2133 |
||
2134 |
# On windows, the static library has the same suffix as the import library created by |
|
2135 |
# with the shared library, so the static library is given a different name. No harm |
|
2136 |
# in doing it for all platform to reduce complexity. |
|
2137 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
2138 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJLI_STATIC,\ |
|
2139 |
STATIC_LIBRARY:=jli_static,\ |
|
2140 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs,\ |
|
2141 |
SRC:=$(BUILD_LIBJLI_SRC_DIRS),\ |
|
2142 |
INCLUDE_FILES:=$(BUILD_LIBJLI_FILES),\ |
|
2143 |
LANG:=C,\ |
|
2144 |
OPTIMIZATION:=HIGH, \ |
|
13702 | 2145 |
CFLAGS:=$(STATIC_LIBRARY_FLAGS) $(LIBJLI_CFLAGS),\ |
13164 | 2146 |
ARFLAGS:=$(ARFLAGS),\ |
2147 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli_static)) |
|
2148 |
||
2149 |
BUILD_LIBRARIES += $(BUILD_LIBJLI_STATIC) |
|
2150 |
||
2151 |
else ifeq ($(OPENJDK_TARGET_OS),macosx) |
|
2152 |
# |
|
2153 |
# On macosx they do partial (incremental) linking of libjli_static.a |
|
2154 |
# code it here...rather than add support to NativeCompilation |
|
2155 |
# as this is first time I see it |
|
2156 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJLI_STATIC,\ |
|
2157 |
LIBRARY:=jli_static, \ |
|
2158 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs,\ |
|
2159 |
SRC:=$(BUILD_LIBJLI_SRC_DIRS),\ |
|
2160 |
INCLUDE_FILES:=$(BUILD_LIBJLI_FILES),\ |
|
2161 |
LANG:=C,\ |
|
2162 |
OPTIMIZATION:=HIGH, \ |
|
13702 | 2163 |
CFLAGS:=$(CFLAGS_JDKLIB) $(LIBJLI_CFLAGS),\ |
13164 | 2164 |
LDFLAGS:=-nostdlib -r,\ |
2165 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli_static)) |
|
2166 |
||
2167 |
$(JDK_OUTPUTDIR)/objs/libjli_static.a : $(BUILD_LIBJLI_STATIC) |
|
2168 |
$(CP) -a $< $@ |
|
2169 |
||
2170 |
BUILD_LIBRARIES += $(JDK_OUTPUTDIR)/objs/libjli_static.a |
|
2171 |
endif |
|
2172 |
||
2173 |
########################################################################################## |
|
2174 |
||
14231 | 2175 |
ifndef OPENJDK |
13164 | 2176 |
ifeq ($(ENABLE_JFR), true) |
2177 |
||
2178 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJFR,\ |
|
2179 |
LIBRARY:=jfr,\ |
|
2180 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2181 |
SRC:=$(JDK_TOPDIR)/src/closed/share/native/oracle/jfr,\ |
|
2182 |
LANG:=C,\ |
|
2183 |
OPTIMIZATION:=LOW, \ |
|
2184 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
2185 |
-I$(JDK_TOPDIR)/src/closed/share/javavm/export, \ |
|
2186 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjfr/mapfile-vers, \ |
|
2187 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2188 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2189 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2190 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2191 |
-D "JDK_FNAME=jfr.dll" \ |
2192 |
-D "JDK_INTERNAL_NAME=jfr" \ |
|
2193 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2194 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjfr,\ |
2195 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2196 |
|
2197 |
BUILD_LIBRARIES += $(BUILD_LIBJFR) |
|
2198 |
||
2199 |
endif |
|
14231 | 2200 |
endif |
13164 | 2201 |
|
2202 |
########################################################################################## |
|
2203 |
||
2204 |
ifndef OPENJDK |
|
2205 |
||
2206 |
BUILD_LIBKCMS_EXCLUDE_FILES:= |
|
2207 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
2208 |
BUILD_LIBKCMS_EXCLUDE_FILES += ukcpmgr.c unixmem.c |
|
2209 |
else |
|
2210 |
BUILD_LIBKCMS_EXCLUDE_FILES += cmmdll.c registry.c spxffile.c sysinfo.c winmem.c wkcpmgr.c |
|
2211 |
endif |
|
2212 |
||
2213 |
BUILD_LIBKCMS_FLAGS:=$(CFLAGS_JDKLIB) |
|
2214 |
||
2215 |
ifeq ($(OPENJDK_TARGET_OS),solaris) |
|
2216 |
# This particular library uses a feature called PIC_CODE_SMALL (on solaris) |
|
2217 |
# implement it like this...since it's only used here |
|
2218 |
BUILD_LIBKCMS_FLAGS:=$(patsubst -KPIC,-Kpic,$(BUILD_LIBKCMS_FLAGS)) |
|
2219 |
else ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc) |
|
2220 |
BUILD_LIBKCMS_FLAGS:=$(patsubst -fPIC,-fpic,$(BUILD_LIBKCMS_FLAGS)) |
|
2221 |
endif |
|
2222 |
||
2223 |
$(eval $(call SetupNativeCompilation,BUILD_LIBKCMS,\ |
|
2224 |
LIBRARY:=kcms,\ |
|
2225 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2226 |
SRC:=$(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms,\ |
|
2227 |
LANG:=C,\ |
|
2228 |
EXCLUDE_FILES:=$(BUILD_LIBKCMS_EXCLUDE_FILES),\ |
|
2229 |
OPTIMIZATION:=LOW, \ |
|
2230 |
CFLAGS:=$(BUILD_LIBKCMS_FLAGS) \ |
|
2231 |
-DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST,\ |
|
2232 |
CFLAGS_linux:=-Wno-missing-field-initializers,\ |
|
2233 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libkcms/mapfile-vers, \ |
|
2234 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2235 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2236 |
LDFLAGS_SUFFIX_linux:=-lc -lpthread,\ |
13164 | 2237 |
LDFLAGS_SUFFIX_windows:=$(WIN_JAVA_LIB) advapi32.lib user32.lib version.lib, \ |
2238 |
LDFLAGS_SUFFIX:=-lm $(LDFLAGS_JDKLIB_SUFFIX),\ |
|
2239 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms/cmm.rc,\ |
|
13702 | 2240 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms/cmm.rc,\ |
2241 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2242 |
-D "JDK_FNAME=kcms.dll" \ |
2243 |
-D "JDK_INTERNAL_NAME=kcms" \ |
|
2244 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2245 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libkcms,\ |
2246 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2247 |
|
2248 |
$(BUILD_LIBKCMS) : $(BUILD_LIBJAVA) |
|
2249 |
||
2250 |
BUILD_LIBRARIES += $(BUILD_LIBKCMS) |
|
2251 |
||
2252 |
endif |
|
2253 |
||
2254 |
########################################################################################## |
|
2255 |
||
2256 |
ifndef OPENJDK |
|
2257 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 2258 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
13164 | 2259 |
|
2260 |
ifeq ($(shell if test "$(OS_VERSION_MAJOR)" -eq 5 -a "$(OS_VERSION_MINOR)" -le 10; then $(ECHO) ok; fi), ok) |
|
2261 |
||
2262 |
SUNWJDGA_MAPFILE:= |
|
13702 | 2263 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc) |
13164 | 2264 |
SUNWJDGA_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjdga/mapfile-vers |
2265 |
endif |
|
2266 |
||
2267 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNWJDGA, \ |
|
2268 |
LIBRARY:=sunwjdga,\ |
|
2269 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2270 |
SRC:=$(JDK_TOPDIR)/src/solaris/native/sun/jdga, \ |
|
2271 |
LANG:=C, \ |
|
2272 |
OPTIMIZATION:=LOW, \ |
|
2273 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
2274 |
-I$(JDK_TOPDIR)/src/share/javavm/export \ |
|
13702 | 2275 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/javavm/export \ |
13164 | 2276 |
-I$(OPENWIN_HOME)/include, \ |
2277 |
MAPFILE:=$(SUNWJDGA_MAPFILE), \ |
|
2278 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2279 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13702 | 2280 |
LDFLAGS_SUFFIX:=-L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -ldga -lX11 $(LIBDL) -lc, \ |
13164 | 2281 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunwjdga)) |
2282 |
||
2283 |
BUILD_LIBRARIES += $(BUILD_LIBSUNWJDGA) |
|
2284 |
||
2285 |
endif |
|
2286 |
endif |
|
2287 |
endif |
|
2288 |
endif |
|
2289 |
||
2290 |
########################################################################################## |
|
2291 |
||
2292 |
ifeq ($(BUILD_HEADLESS), true) |
|
2293 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
|
2294 |
||
2295 |
LIBAWT_HEADLESS_DIRS:=$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
2296 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
|
2297 |
$(JDK_TOPDIR)/src/solaris/native/sun/font \ |
|
2298 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt \ |
|
2299 |
$(JDK_TOPDIR)/src/solaris/native/sun/java2d/opengl \ |
|
2300 |
$(JDK_TOPDIR)/src/solaris/native/sun/java2d/x11 |
|
2301 |
||
2302 |
LIBAWT_HEADLESS_CFLAGS:=-DHEADLESS=true \ |
|
2303 |
-DX11_PATH=\"$(X11_PATH)\" -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \ |
|
2304 |
$(CUPS_CFLAGS) \ |
|
2305 |
$(X_CFLAGS) \ |
|
2306 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
13702 | 2307 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
13164 | 2308 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
2309 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
2310 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
2311 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
2312 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
13702 | 2313 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga \ |
13164 | 2314 |
$(foreach dir,$(LIBAWT_HEADLESS_DIRS),-I$(dir)) |
2315 |
||
2316 |
LIBAWT_HEADLESS_FILES:=\ |
|
2317 |
awt_Font.c \ |
|
2318 |
HeadlessToolkit.c \ |
|
2319 |
fontpath.c \ |
|
2320 |
VDrawingArea.c \ |
|
2321 |
X11Color.c \ |
|
2322 |
X11Renderer.c \ |
|
2323 |
X11PMBlitLoops.c \ |
|
2324 |
X11SurfaceData.c \ |
|
2325 |
X11FontScaler_md.c \ |
|
2326 |
X11TextRenderer_md.c \ |
|
2327 |
OGLBlitLoops.c \ |
|
2328 |
OGLBufImgOps.c \ |
|
2329 |
OGLContext.c \ |
|
2330 |
OGLFuncs.c \ |
|
2331 |
OGLMaskBlit.c \ |
|
2332 |
OGLMaskFill.c \ |
|
2333 |
OGLPaints.c \ |
|
2334 |
OGLRenderQueue.c \ |
|
2335 |
OGLRenderer.c \ |
|
2336 |
OGLSurfaceData.c \ |
|
2337 |
OGLTextRenderer.c \ |
|
2338 |
OGLVertexCache.c \ |
|
2339 |
GLXGraphicsConfig.c \ |
|
2340 |
GLXSurfaceData.c \ |
|
2341 |
AccelGlyphCache.c \ |
|
2342 |
CUPSfuncs.c |
|
2343 |
||
2344 |
LIBAWT_HEADLESS_REORDER:= |
|
2345 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 2346 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
2347 |
LIBAWT_HEADLESS_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt_headless/reorder-$(OPENJDK_TARGET_CPU) |
|
13164 | 2348 |
endif |
2349 |
endif |
|
2350 |
||
2351 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_HEADLESS,\ |
|
2352 |
LIBRARY:=awt_headless,\ |
|
2353 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2354 |
SRC:=$(LIBAWT_HEADLESS_DIRS),\ |
|
2355 |
INCLUDE_FILES:=$(LIBAWT_HEADLESS_FILES),\ |
|
2356 |
LANG:=C,\ |
|
2357 |
OPTIMIZATION:=LOW, \ |
|
2358 |
CFLAGS:=$(CFLAGS_JDKLIB) $(LIBAWT_HEADLESS_CFLAGS),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2359 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt_headless/mapfile-vers,\ |
13164 | 2360 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2361 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2362 |
LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
2363 |
LDFLAGS_solaris:=$(call SET_SHARED_LIBRARY_ORIGIN,/..) \ |
|
2364 |
-R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
2365 |
-R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR),\ |
|
2366 |
LDFLAGS_macosx:=$(call SET_SHARED_LIBRARY_ORIGIN).,\ |
|
13164 | 2367 |
REORDER:=$(LIBAWT_HEADLESS_REORDER), \ |
13702 | 2368 |
LDFLAGS_SUFFIX_linux:=-ljvm -lawt -lm $(LIBDL) -ljava,\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2369 |
LDFLAGS_SUFFIX_solaris:=$(LIBDL) -ljvm -lawt -lm -ljava $(LIBCXX) -lc,\ |
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2370 |
LDFLAGS_SUFFIX_macosx:=-ljvm $(LIBCXX) -lawt $(LIBDL) -ljava,\ |
13164 | 2371 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_headless)) |
2372 |
||
2373 |
$(BUILD_LIBAWT_HEADLESS) : $(BUILD_LIBAWT) |
|
2374 |
||
2375 |
BUILD_LIBRARIES += $(BUILD_LIBAWT_HEADLESS) |
|
12892 | 2376 |
|
2377 |
endif |
|
2378 |
endif |
|
2379 |
||
2380 |
########################################################################################## |
|
2381 |
||
2382 |
ifndef BUILD_HEADLESS_ONLY |
|
13164 | 2383 |
LIBSPLASHSCREEN_DIRS:=\ |
12892 | 2384 |
$(JDK_TOPDIR)/src/share/native/sun/awt/giflib \ |
2385 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg \ |
|
2386 |
$(JDK_TOPDIR)/src/share/native/sun/awt/libpng \ |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2387 |
$(JDK_TOPDIR)/src/share/native/sun/awt/splashscreen |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2388 |
|
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2389 |
ifneq ($(OPENJDK_TARGET_OS), macosx) |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2390 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2391 |
else |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2392 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2393 |
endif |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2394 |
|
13164 | 2395 |
|
2396 |
LIBSPLASHSCREEN_CFLAGS:=-DSPLASHSCREEN -DPNG_NO_MMX_CODE \ |
|
12892 | 2397 |
$(foreach dir,$(LIBSPLASHSCREEN_DIRS),-I$(dir)) |
2398 |
||
13164 | 2399 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
2400 |
LIBSPLASHSCREEN_CFLAGS:=-I$(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen \ |
|
12892 | 2401 |
$(LIBSPLASHSCREEN_CFLAGS) \ |
2402 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks |
|
2403 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX |
|
2404 |
LIBSPLASHSCREEN_CFLAGS += -I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp |
|
2405 |
||
13164 | 2406 |
LIBSPLASHSCREEN_java_awt_SplashScreen.c_CFLAGS:=-x objective-c -O0 |
2407 |
LIBSPLASHSCREEN_splashscreen_gfx_impl.c_CFLAGS:=-x objective-c -O0 |
|
2408 |
LIBSPLASHSCREEN_splashscreen_gif.c_CFLAGS:=-x objective-c -O0 |
|
2409 |
LIBSPLASHSCREEN_splashscreen_impl.c_CFLAGS:=-x objective-c -O0 |
|
2410 |
LIBSPLASHSCREEN_splashscreen_jpeg.c_CFLAGS:=-x objective-c -O0 |
|
2411 |
LIBSPLASHSCREEN_splashscreen_png.c_CFLAGS:=-x objective-c -O0 |
|
2412 |
LIBSPLASHSCREEN_splashscreen_sys.m_CFLAGS:=-O0 |
|
2413 |
||
2414 |
else ifneq ($(OPENJDK_TARGET_OS), windows) |
|
12892 | 2415 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_X11 -I$(OPENWIN_HOME)/include -I$(OPENWIN_HOME)/include/X11/extensions |
2416 |
else |
|
2417 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_WIN32 |
|
2418 |
endif |
|
2419 |
||
13164 | 2420 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX:= |
12892 | 2421 |
|
2422 |
ifneq ($(USE_EXTERNAL_LIBZ),true) |
|
2423 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5 |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2424 |
LIBSPLASHSCREEN_CFLAGS += $(ZLIB_CPPFLAGS) |
12892 | 2425 |
endif |
2426 |
||
13164 | 2427 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
12892 | 2428 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += $(LIBM) -lpthread -liconv -losxapp \ |
2429 |
-framework ApplicationServices \ |
|
2430 |
-framework Foundation \ |
|
2431 |
-framework Cocoa \ |
|
2432 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
2433 |
-framework JavaNativeFoundation |
|
13164 | 2434 |
else ifneq ($(OPENJDK_TARGET_OS), windows) |
13702 | 2435 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -lX11 -lXext $(LIBM) -lpthread |
13164 | 2436 |
else # OPENJDK_TARGET_OS |
14231 | 2437 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += kernel32.lib user32.lib gdi32.lib delayimp.lib -DELAYLOAD:user32.dll |
13164 | 2438 |
endif # OPENJDK_TARGET_OS |
12892 | 2439 |
|
2440 |
$(eval $(call SetupNativeCompilation,LIBSPLASHSCREEN,\ |
|
13164 | 2441 |
LIBRARY:=splashscreen,\ |
2442 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2443 |
SRC:=$(LIBSPLASHSCREEN_DIRS),\ |
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2444 |
EXCLUDE_FILES:=imageioJPEG.c jpegdecoder.c pngtest.c,\ |
12892 | 2445 |
LANG:=C,\ |
13164 | 2446 |
OPTIMIZATION:=LOW, \ |
2447 |
CFLAGS:=$(LIBSPLASHSCREEN_CFLAGS) $(CFLAGS_JDKLIB),\ |
|
2448 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libsplashscreen/mapfile-vers, \ |
|
2449 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
12892 | 2450 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
13164 | 2451 |
LDFLAGS_SUFFIX:=$(LIBSPLASHSCREEN_LDFLAGS_SUFFIX) $(LIBZ),\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2452 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 2453 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2454 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2455 |
-D "JDK_FNAME=splashscreen.dll" \ |
2456 |
-D "JDK_INTERNAL_NAME=splashscreen" \ |
|
2457 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2458 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsplashscreen,\ |
2459 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2460 |
|
2461 |
BUILD_LIBRARIES += $(LIBSPLASHSCREEN) |
|
2462 |
||
2463 |
ifeq ($(OPENJDK_TARGET_OS),macosx) |
|
2464 |
$(LIBSPLASHSCREEN) : $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)osxapp$(SHARED_LIBRARY_SUFFIX) |
|
12892 | 2465 |
endif |
2466 |
||
2467 |
endif |
|
2468 |
||
2469 |
########################################################################################## |
|
2470 |
||
2471 |
ifndef OPENJDK |
|
2472 |
||
13164 | 2473 |
LIBDCPR_SRC_DIRS:=\ |
12892 | 2474 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/doe \ |
2475 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/path \ |
|
2476 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/pr \ |
|
2477 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/util |
|
2478 |
||
13164 | 2479 |
LIBDCPR_CFLAGS:=$(foreach dir,$(LIBDCPR_SRC_DIRS),-I$(dir)) \ |
12892 | 2480 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe |
2481 |
||
2482 |
$(eval $(call SetupNativeCompilation,BUILD_LIBDCPR,\ |
|
13164 | 2483 |
LIBRARY:=dcpr,\ |
2484 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2485 |
SRC:=$(LIBDCPR_SRC_DIRS),\ |
2486 |
LANG:=C,\ |
|
13164 | 2487 |
OPTIMIZATION:=LOW, \ |
2488 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2489 |
$(LIBDCPR_CFLAGS), \ |
13164 | 2490 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libdcpr/mapfile-vers, \ |
13702 | 2491 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
12892 | 2492 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
13702 | 2493 |
LDFLAGS_SUFFIX:=$(LIBM) $(LDFLAGS_JDKLIB_SUFFIX),\ |
13164 | 2494 |
LDFLAGS_SUFFIX_posix:=-lm,\ |
13702 | 2495 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2496 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2497 |
-D "JDK_FNAME=dcpr.dll" \ |
2498 |
-D "JDK_INTERNAL_NAME=dcpr" \ |
|
2499 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2500 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libdcpr,\ |
2501 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2502 |
|
2503 |
$(BUILD_LIBDCPR) : $(BUILD_LIBJAVA) |
|
2504 |
||
2505 |
BUILD_LIBRARIES += $(BUILD_LIBDCPR) |
|
12892 | 2506 |
|
2507 |
endif |
|
2508 |
||
2509 |
########################################################################################## |
|
2510 |
||
2511 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2PCSC,\ |
|
13164 | 2512 |
LIBRARY:=j2pcsc,\ |
2513 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2514 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/smartcardio \ |
13702 | 2515 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio,\ |
12892 | 2516 |
LANG:=C,\ |
13164 | 2517 |
CFLAGS_posix:=-D__sun_jdk,\ |
2518 |
OPTIMIZATION:=LOW, \ |
|
2519 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2520 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/smartcardio \ |
13702 | 2521 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio\ |
2522 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio/MUSCLE,\ |
|
13164 | 2523 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2pcsc/mapfile-vers, \ |
12892 | 2524 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2525 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13164 | 2526 |
LDFLAGS_SUFFIX_posix:=$(LIBDL), \ |
2527 |
LDFLAGS_SUFFIX_windows:=winscard.lib,\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2528 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 2529 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2530 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2531 |
-D "JDK_FNAME=j2pcsc.dll" \ |
2532 |
-D "JDK_INTERNAL_NAME=j2pcsc" \ |
|
2533 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2534 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2pcsc,\ |
2535 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2536 |
|
2537 |
BUILD_LIBRARIES += $(BUILD_LIBJ2PCSC) |
|
12892 | 2538 |
|
2539 |
########################################################################################## |
|
2540 |
||
13164 | 2541 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
12892 | 2542 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2GSS,\ |
13164 | 2543 |
LIBRARY:=j2gss,\ |
2544 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2545 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \ |
13702 | 2546 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper,\ |
12892 | 2547 |
LANG:=C,\ |
13164 | 2548 |
OPTIMIZATION:=LOW, \ |
2549 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2550 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \ |
13702 | 2551 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper,\ |
13164 | 2552 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2gss/mapfile-vers, \ |
12892 | 2553 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2554 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2555 |
LDFLAGS_SUFFIX:=$(LIBDL),\ |
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2556 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13164 | 2557 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2gss)) |
2558 |
||
2559 |
BUILD_LIBRARIES += $(BUILD_LIBJ2GSS) |
|
12892 | 2560 |
endif |
2561 |
||
2562 |
########################################################################################## |
|
2563 |
||
13164 | 2564 |
BUILD_LIBKRB5_NAME:= |
2565 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
2566 |
BUILD_LIBKRB5_NAME:=w2k_lsa_auth |
|
13702 | 2567 |
BUILD_LIBKRB5_SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/krb5 |
14231 | 2568 |
BUILD_LIBKRB5_LIBS:=advapi32.lib Secur32.lib netapi32.lib kernel32.lib user32.lib \ |
2569 |
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib \ |
|
2570 |
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib |
|
13164 | 2571 |
else ifeq ($(OPENJDK_TARGET_OS), macosx) |
2572 |
BUILD_LIBKRB5_NAME:=osxkrb5 |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2573 |
BUILD_LIBKRB5_SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/krb5 |
13164 | 2574 |
BUILD_LIBKRB5_LIBS:=-framework Kerberos |
12892 | 2575 |
endif |
2576 |
||
2577 |
ifneq ($(BUILD_LIBKRB5_NAME),) |
|
2578 |
$(eval $(call SetupNativeCompilation,BUILD_LIBKRB5,\ |
|
13164 | 2579 |
LIBRARY:=$(BUILD_LIBKRB5_NAME),\ |
2580 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2581 |
SRC:=$(BUILD_LIBKRB5_SRC),\ |
12892 | 2582 |
LANG:=C,\ |
13164 | 2583 |
OPTIMIZATION:=LOW, \ |
2584 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2585 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/krb5 \ |
13702 | 2586 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/krb5 ,\ |
12892 | 2587 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2588 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13164 | 2589 |
LDFLAGS_SUFFIX:=$(BUILD_LIBKRB5_LIBS) ,\ |
13702 | 2590 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2591 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2592 |
-D "JDK_FNAME=$(BUILD_LIBKRB5_NAME).dll" \ |
2593 |
-D "JDK_INTERNAL_NAME=$(BUILD_LIBKRB5_NAME)" \ |
|
2594 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2595 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libkrb5,\ |
2596 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2597 |
|
2598 |
BUILD_LIBRARIES += $(BUILD_LIBKRB5) |
|
12892 | 2599 |
endif |
2600 |
||
2601 |
########################################################################################## |
|
2602 |
||
13164 | 2603 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
12892 | 2604 |
|
2605 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNMSCAPI,\ |
|
13164 | 2606 |
LIBRARY:=sunmscapi,\ |
2607 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
14231 | 2608 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/mscapi,\ |
13164 | 2609 |
INCLUDE_FILES:=security.cpp, \ |
12892 | 2610 |
LANG:=C++,\ |
13164 | 2611 |
OPTIMIZATION:=LOW, \ |
2612 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
13702 | 2613 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/mscapi ,\ |
2614 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
|
12892 | 2615 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
13164 | 2616 |
LDFLAGS_SUFFIX:=Crypt32.Lib advapi32.lib,\ |
13702 | 2617 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2618 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2619 |
-D "JDK_FNAME=sunmscapi.dll" \ |
2620 |
-D "JDK_INTERNAL_NAME=sunmscapi" \ |
|
2621 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2622 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunmscapi,\ |
2623 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2624 |
|
2625 |
BUILD_LIBRARIES += $(BUILD_LIBSUNMSCAPI) |
|
12892 | 2626 |
endif |
2627 |
||
2628 |
########################################################################################## |
|
2629 |
||
2630 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2PKCS11,\ |
|
13164 | 2631 |
LIBRARY:=j2pkcs11,\ |
2632 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2633 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11 \ |
13702 | 2634 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11 \ |
12892 | 2635 |
$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11/wrapper \ |
13702 | 2636 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11/wrapper,\ |
12892 | 2637 |
LANG:=C,\ |
13164 | 2638 |
OPTIMIZATION:=LOW, \ |
2639 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2640 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11 \ |
13702 | 2641 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11 \ |
12892 | 2642 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11/wrapper \ |
13702 | 2643 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11/wrapper,\ |
13164 | 2644 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2pkcs11/mapfile-vers, \ |
12892 | 2645 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2646 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2647 |
LDFLAGS_SUFFIX_posix:=$(LIBDL),\ |
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2648 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 2649 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2650 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2651 |
-D "JDK_FNAME=j2pkcs11.dll" \ |
2652 |
-D "JDK_INTERNAL_NAME=j2pkcs11" \ |
|
2653 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2654 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2pkcs11,\ |
2655 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2656 |
|
2657 |
BUILD_LIBRARIES += $(BUILD_LIBJ2PKCS11) |
|
12892 | 2658 |
|
2659 |
########################################################################################## |
|
2660 |
||
2661 |
ifndef DISABLE_INTREE_EC |
|
2662 |
# |
|
2663 |
# TODO Set DISABLE_INTREE_EC in configure if src/share/native/sun/security/ec/impl |
|
2664 |
# is not present |
|
2665 |
# |
|
13164 | 2666 |
BUILD_LIBSUNEC_FLAGS:= -I$(JDK_TOPDIR)/src/share/native/sun/security/ec \ |
2667 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/ec/impl |
|
2668 |
||
2669 |
# |
|
2670 |
# On sol-sparc...all libraries are compiled with -xregs=no%appl |
|
2671 |
# (set in CFLAGS_REQUIRED_sparc) |
|
2672 |
# |
|
2673 |
# except!!! libsunec.so |
|
2674 |
# |
|
2675 |
ECC_JNI_SOLSPARC_FILTER:= |
|
2676 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc) |
|
2677 |
ECC_JNI_SOLSPARC_FILTER:=-xregs=no%appl |
|
2678 |
endif |
|
12892 | 2679 |
|
2680 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNEC,\ |
|
13164 | 2681 |
LIBRARY:=sunec,\ |
2682 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2683 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/ec \ |
2684 |
$(JDK_TOPDIR)/src/share/native/sun/security/ec/impl, \ |
|
13164 | 2685 |
LANG:=C++, \ |
2686 |
OPTIMIZATION:=LOW, \ |
|
2687 |
CFLAGS:=$(filter-out $(ECC_JNI_SOLSPARC_FILTER), $(CFLAGS_JDKLIB))\ |
|
2688 |
$(BUILD_LIBSUNEC_FLAGS) \ |
|
2689 |
-DMP_API_COMPATIBLE -DNSS_ECC_MORE_THAN_SUITE_B,\ |
|
2690 |
CXXFLAGS:=$(filter-out $(ECC_JNI_SOLSPARC_FILTER), $(CXXFLAGS_JDKLIB)) \ |
|
2691 |
$(BUILD_LIBSUNEC_FLAGS),\ |
|
2692 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libsunec/mapfile-vers, \ |
|
13702 | 2693 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK),\ |
2694 |
LDFLAGS_macosx:=$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13164 | 2695 |
LDFLAGS_SUFFIX:=$(LIBCXX),\ |
13702 | 2696 |
LDFLAGS_SUFFIX_linux:=-lc ,\ |
13164 | 2697 |
LDFLAGS_SUFFIX_solaris:=-lc ,\ |
13702 | 2698 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2699 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2700 |
-D "JDK_FNAME=sunec.dll" \ |
2701 |
-D "JDK_INTERNAL_NAME=sunec" \ |
|
2702 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2703 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunec,\ |
2704 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2705 |
|
2706 |
BUILD_LIBRARIES += $(BUILD_LIBSUNEC) |
|
12892 | 2707 |
endif |
2708 |
||
2709 |
########################################################################################## |
|
2710 |
||
13164 | 2711 |
LIBJSOUND_SRC_DIRS:=\ |
12892 | 2712 |
$(JDK_TOPDIR)/src/share/native/com/sun/media/sound \ |
13702 | 2713 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/media/sound |
13164 | 2714 |
|
2715 |
LIBJSOUND_SRC_FILES:=Utilities.c Platform.c |
|
2716 |
||
2717 |
LIBJSOUND_LANG:=C |
|
2718 |
LIBJSOUND_CFLAGS:=$(foreach dir,$(LIBJSOUND_SRC_DIRS),-I$(dir)) |
|
2719 |
||
2720 |
EXTRA_SOUND_JNI_LIBS:= |
|
2721 |
||
2722 |
LIBJSOUND_MIDIFILES:=\ |
|
12892 | 2723 |
MidiInDevice.c \ |
2724 |
MidiInDeviceProvider.c \ |
|
2725 |
MidiOutDevice.c \ |
|
2726 |
MidiOutDeviceProvider.c \ |
|
2727 |
PlatformMidi.c |
|
2728 |
||
2729 |
# files needed for ports |
|
13164 | 2730 |
LIBJSOUND_PORTFILES:=\ |
12892 | 2731 |
PortMixerProvider.c \ |
2732 |
PortMixer.c |
|
2733 |
||
2734 |
# files needed for direct audio |
|
13164 | 2735 |
LIBJSOUND_DAUDIOFILES:=\ |
12892 | 2736 |
DirectAudioDeviceProvider.c \ |
2737 |
DirectAudioDevice.c |
|
2738 |
||
13164 | 2739 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
12892 | 2740 |
EXTRA_SOUND_JNI_LIBS += jsoundds |
2741 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_WINDOWS \ |
|
2742 |
-DUSE_PLATFORM_MIDI_OUT=TRUE \ |
|
2743 |
-DUSE_PLATFORM_MIDI_IN=TRUE \ |
|
2744 |
-DUSE_PORTS=TRUE |
|
2745 |
LIBJSOUND_SRC_FILES += \ |
|
2746 |
PLATFORM_API_WinOS_MidiIn.cpp \ |
|
2747 |
PLATFORM_API_WinOS_MidiOut.c \ |
|
2748 |
PLATFORM_API_WinOS_Util.c \ |
|
2749 |
PLATFORM_API_WinOS_Ports.c |
|
2750 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES) |
|
2751 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES) |
|
13164 | 2752 |
endif # OPENJDK_TARGET_OS windows |
2753 |
||
2754 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
12892 | 2755 |
EXTRA_SOUND_JNI_LIBS += jsoundalsa |
2756 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_LINUX |
|
13164 | 2757 |
endif # OPENJDK_TARGET_OS linux |
2758 |
||
2759 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
2760 |
LIBJSOUND_LANG:=C++ |
|
12892 | 2761 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_MACOSX \ |
2762 |
-DUSE_PORTS=TRUE \ |
|
2763 |
-DUSE_DAUDIO=TRUE \ |
|
2764 |
-DUSE_PLATFORM_MIDI_OUT=TRUE \ |
|
2765 |
-DUSE_PLATFORM_MIDI_IN=TRUE |
|
2766 |
LIBJSOUND_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/native/com/sun/media/sound |
|
2767 |
LIBJSOUND_SRC_FILES += \ |
|
2768 |
PLATFORM_API_MacOSX_Utils.cpp \ |
|
2769 |
PLATFORM_API_MacOSX_PCM.cpp \ |
|
2770 |
PLATFORM_API_MacOSX_Ports.cpp \ |
|
2771 |
PLATFORM_API_MacOSX_MidiIn.c \ |
|
2772 |
PLATFORM_API_MacOSX_MidiOut.c \ |
|
2773 |
PLATFORM_API_MacOSX_MidiUtils.c |
|
2774 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES) |
|
2775 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES) |
|
2776 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES) |
|
13164 | 2777 |
endif # OPENJDK_TARGET_OS macosx |
2778 |
||
2779 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
12892 | 2780 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_SOLARIS \ |
2781 |
-DUSE_PORTS=TRUE \ |
|
2782 |
-DUSE_DAUDIO=TRUE |
|
2783 |
LIBJSOUND_SRC_FILES += \ |
|
2784 |
PLATFORM_API_SolarisOS_Utils.c \ |
|
2785 |
PLATFORM_API_SolarisOS_Ports.c \ |
|
2786 |
PLATFORM_API_SolarisOS_PCM.c |
|
2787 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES) |
|
2788 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES) |
|
2789 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES) |
|
13164 | 2790 |
endif # OPENJDK_TARGET_OS solaris |
12892 | 2791 |
|
2792 |
||
2793 |
ifeq ($(JVM_VARIANT_ZERO), true) |
|
2794 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_ZERO |
|
2795 |
else |
|
13702 | 2796 |
ifeq ($(OPENJDK_TARGET_CPU), x86) |
12892 | 2797 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_I586 |
13702 | 2798 |
endif |
2799 |
||
2800 |
ifeq ($(OPENJDK_TARGET_CPU), sparc) |
|
12892 | 2801 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_SPARC |
13702 | 2802 |
endif |
2803 |
||
2804 |
ifeq ($(OPENJDK_TARGET_CPU), sparcv9) |
|
12892 | 2805 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_SPARCV9 |
13702 | 2806 |
endif |
2807 |
||
2808 |
ifeq ($(OPENJDK_TARGET_CPU), x86_64) |
|
12892 | 2809 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_AMD64 |
13702 | 2810 |
endif |
2811 |
||
2812 |
ifeq ($(OPENJDK_TARGET_CPU), arm) |
|
12892 | 2813 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_ARM |
13702 | 2814 |
endif |
2815 |
||
2816 |
ifeq ($(OPENJDK_TARGET_CPU), ppc) |
|
12892 | 2817 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_PPC |
13702 | 2818 |
endif |
12892 | 2819 |
endif |
2820 |
||
2821 |
LIBJSOUND_CFLAGS += -DEXTRA_SOUND_JNI_LIBS='"$(EXTRA_SOUND_JNI_LIBS)"' |
|
2822 |
||
2823 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUND,\ |
|
13164 | 2824 |
LIBRARY:=jsound,\ |
2825 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2826 |
SRC:=$(LIBJSOUND_SRC_DIRS),\ |
13164 | 2827 |
INCLUDE_FILES:=$(LIBJSOUND_SRC_FILES),\ |
12892 | 2828 |
LANG:=$(LIBJSOUND_LANG),\ |
13164 | 2829 |
OPTIMIZATION:=LOW, \ |
13702 | 2830 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
2831 |
$(LIBJSOUND_CFLAGS), \ |
|
13164 | 2832 |
CXXFLAGS:=$(CXXFLAGS_JDKLIB) $(LIBJSOUND_CFLAGS), \ |
2833 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjsound/mapfile-vers, \ |
|
12892 | 2834 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
2835 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2836 |
LDFLAGS_macosx:=-framework CoreAudio -framework CoreFoundation \ |
2837 |
-framework CoreServices -framework AudioUnit $(LIBCXX) \ |
|
2838 |
-framework CoreMIDI -framework AudioToolbox,\ |
|
13164 | 2839 |
LDFLAGS_windows:=$(WIN_JAVA_LIB) advapi32.lib winmm.lib,\ |
14231 | 2840 |
LDFLAGS_SUFFIX_posix:=-ljava -ljvm,\ |
12892 | 2841 |
LDFLAGS_SUFFIX_solaris:=-lc ,\ |
13702 | 2842 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2843 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2844 |
-D "JDK_FNAME=jsound.dll" \ |
2845 |
-D "JDK_INTERNAL_NAME=jsound" \ |
|
2846 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2847 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsound,\ |
2848 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2849 |
|
2850 |
$(BUILD_LIBJSOUND) : $(BUILD_LIBJAVA) |
|
2851 |
||
2852 |
BUILD_LIBRARIES += $(BUILD_LIBJSOUND) |
|
12892 | 2853 |
|
2854 |
########################################################################################## |
|
2855 |
||
2856 |
ifneq ($(filter jsoundalsa, $(EXTRA_SOUND_JNI_LIBS)),) |
|
2857 |
||
2858 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDALSA,\ |
|
13164 | 2859 |
LIBRARY:=jsoundalsa,\ |
2860 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2861 |
SRC:=$(LIBJSOUND_SRC_DIRS),\ |
13164 | 2862 |
INCLUDE_FILES:=Utilities.c $(LIBJSOUND_MIDIFILES) $(LIBJSOUND_PORTFILES) \ |
12892 | 2863 |
$(LIBJSOUND_DAUDIOFILES) \ |
2864 |
PLATFORM_API_LinuxOS_ALSA_CommonUtils.c \ |
|
2865 |
PLATFORM_API_LinuxOS_ALSA_PCM.c \ |
|
2866 |
PLATFORM_API_LinuxOS_ALSA_PCMUtils.c \ |
|
2867 |
PLATFORM_API_LinuxOS_ALSA_MidiIn.c \ |
|
2868 |
PLATFORM_API_LinuxOS_ALSA_MidiOut.c \ |
|
2869 |
PLATFORM_API_LinuxOS_ALSA_MidiUtils.c \ |
|
2870 |
PLATFORM_API_LinuxOS_ALSA_Ports.c,\ |
|
13164 | 2871 |
LANG:=C,\ |
2872 |
OPTIMIZATION:=LOW, \ |
|
2873 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2874 |
$(LIBJSOUND_CFLAGS) \ |
2875 |
-DUSE_DAUDIO=TRUE \ |
|
2876 |
-DUSE_PORTS=TRUE \ |
|
2877 |
-DUSE_PLATFORM_MIDI_OUT=TRUE \ |
|
2878 |
-DUSE_PLATFORM_MIDI_IN=TRUE, \ |
|
13164 | 2879 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjsoundalsa/mapfile-vers, \ |
12892 | 2880 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
2881 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2882 |
LDFLAGS_SUFFIX:=-lasound -ljava -ljvm,\ |
13164 | 2883 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsoundalsa)) |
2884 |
||
2885 |
$(BUILD_LIBJSOUNDALSA) : $(BUILD_LIBJAVA) |
|
2886 |
||
2887 |
BUILD_LIBRARIES += $(BUILD_LIBJSOUNDALSA) |
|
12892 | 2888 |
|
2889 |
endif |
|
2890 |
||
2891 |
########################################################################################## |
|
2892 |
||
2893 |
ifneq ($(filter jsoundds, $(EXTRA_SOUND_JNI_LIBS)),) |
|
2894 |
||
2895 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDDS,\ |
|
13164 | 2896 |
LIBRARY:=jsoundds,\ |
2897 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2898 |
SRC:=$(LIBJSOUND_SRC_DIRS),\ |
13164 | 2899 |
INCLUDE_FILES:=Utilities.c $(LIBJSOUND_DAUDIOFILES) \ |
12892 | 2900 |
PLATFORM_API_WinOS_DirectSound.cpp, \ |
13164 | 2901 |
LANG:=C++,\ |
2902 |
OPTIMIZATION:=LOW, \ |
|
2903 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2904 |
$(LIBJSOUND_CFLAGS) \ |
2905 |
-DUSE_DAUDIO=TRUE, \ |
|
13702 | 2906 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
12892 | 2907 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
2908 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX) dsound.lib winmm.lib user32.lib ole32.lib,\ |
|
13702 | 2909 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2910 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2911 |
-D "JDK_FNAME=jsoundds.dll" \ |
2912 |
-D "JDK_INTERNAL_NAME=jsoundds" \ |
|
2913 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2914 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsoundds,\ |
2915 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2916 |
|
2917 |
$(BUILD_LIBJSOUNDDS) : $(BUILD_LIBJAVA) |
|
2918 |
||
2919 |
BUILD_LIBRARIES += $(BUILD_LIBJSOUNDDS) |
|
12892 | 2920 |
|
2921 |
endif |
|
2922 |
||
2923 |
########################################################################################## |
|
2924 |
||
13164 | 2925 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
12892 | 2926 |
ifndef OPENJDK |
2927 |
||
2928 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2UCRYPTO,\ |
|
13164 | 2929 |
LIBRARY:=j2ucrypto,\ |
2930 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2931 |
SRC:=$(JDK_TOPDIR)/src/closed/solaris/native/com/oracle/security/ucrypto,\ |
13164 | 2932 |
LANG:=C,\ |
2933 |
OPTIMIZATION:=LOW, \ |
|
2934 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2935 |
-I$(JDK_TOPDIR)/src/closed/solaris/native/com/oracle/security/ucrypto ,\ |
13164 | 2936 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2ucrypto/mapfile-vers, \ |
13702 | 2937 |
LDFLAGS:=$(LDFLAGS_JDKLIB),\ |
12892 | 2938 |
LDFLAGS_SUFFIX:=$(LIBDL),\ |
13164 | 2939 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2ucrypto)) |
2940 |
||
2941 |
$(BUILD_LIBJ2UCRYPTO) : $(BUILD_LIBJAVA) |
|
2942 |
||
2943 |
BUILD_LIBRARIES += $(BUILD_LIBJ2UCRYPTO) |
|
12892 | 2944 |
|
2945 |
endif |
|
2946 |
endif |
|
2947 |
||
2948 |
########################################################################################## |
|
2949 |
||
13164 | 2950 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
2951 |
||
12892 | 2952 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAPPLESCRIPTENGINE,\ |
13164 | 2953 |
LIBRARY:=AppleScriptEngine,\ |
2954 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2955 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/apple/applescript,\ |
13164 | 2956 |
LANG:=C,\ |
2957 |
OPTIMIZATION:=LOW, \ |
|
2958 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2959 |
-I$(JDK_TOPDIR)/src/macosx/native/apple/applescript \ |
2960 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
2961 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks, \ |
|
2962 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
2963 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13702 | 2964 |
LDFLAGS_SUFFIX:=-framework Cocoa \ |
2965 |
-framework Carbon \ |
|
2966 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
2967 |
-framework JavaNativeFoundation \ |
|
2968 |
$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
13164 | 2969 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libAppleScriptEngine)) |
2970 |
||
2971 |
$(BUILD_LIBAPPLESCRIPTENGINE) : $(BUILD_LIBJAVA) |
|
2972 |
||
2973 |
BUILD_LIBRARIES += $(BUILD_LIBAPPLESCRIPTENGINE) |
|
12892 | 2974 |
|
2975 |
endif |
|
2976 |
||
2977 |
########################################################################################## |
|
2978 |
||
13164 | 2979 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
2980 |
||
12892 | 2981 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSXAPP,\ |
13164 | 2982 |
LIBRARY:=osxapp,\ |
2983 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2984 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/sun/osxapp,\ |
13164 | 2985 |
LANG:=C,\ |
2986 |
OPTIMIZATION:=LOW, \ |
|
2987 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2988 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
14231 | 2989 |
-I$(JDK_OUTPUTDIR)/gensrc/sun/osxapp \ |
12892 | 2990 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
2991 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks,\ |
|
2992 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
2993 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13164 | 2994 |
LDFLAGS_SUFFIX_macosx:=\ |
12892 | 2995 |
-framework Accelerate \ |
2996 |
-framework ApplicationServices \ |
|
2997 |
-framework AudioToolbox \ |
|
2998 |
-framework Carbon \ |
|
2999 |
-framework Cocoa \ |
|
3000 |
-framework Security \ |
|
3001 |
-framework ExceptionHandling \ |
|
3002 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3003 |
-framework JavaNativeFoundation \ |
|
3004 |
-framework JavaRuntimeSupport \ |
|
3005 |
-framework OpenGL \ |
|
3006 |
-framework IOSurface \ |
|
3007 |
-framework QuartzCore, \ |
|
13164 | 3008 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosxapp)) |
3009 |
||
3010 |
BUILD_LIBRARIES += $(BUILD_LIBOSXAPP) |
|
12892 | 3011 |
|
3012 |
endif |
|
3013 |
||
3014 |
########################################################################################## |
|
3015 |
||
13164 | 3016 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
3017 |
||
3018 |
LIBOSX_DIRS:=\ |
|
12892 | 3019 |
$(JDK_TOPDIR)/src/macosx/native/com/apple/concurrent \ |
3020 |
$(JDK_TOPDIR)/src/macosx/native/java/util \ |
|
3021 |
$(JDK_TOPDIR)/src/macosx/native/com/apple/eio \ |
|
3022 |
$(JDK_TOPDIR)/src/macosx/native/apple/security \ |
|
3023 |
$(JDK_TOPDIR)/src/macosx/native/apple/launcher |
|
3024 |
||
3025 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSX,\ |
|
13164 | 3026 |
LIBRARY:=osx,\ |
3027 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3028 |
SRC:=$(LIBOSX_DIRS),\ |
13164 | 3029 |
LANG:=C,\ |
3030 |
OPTIMIZATION:=LOW, \ |
|
3031 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 3032 |
$(foreach dir,$(LIBOSX_DIRS),-I$(dir)) \ |
3033 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
|
3034 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3035 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks,\ |
|
3036 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
3037 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13164 | 3038 |
LDFLAGS_SUFFIX_macosx:=\ |
12892 | 3039 |
-losxapp \ |
3040 |
-framework Cocoa \ |
|
3041 |
-framework ApplicationServices \ |
|
3042 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3043 |
-framework JavaNativeFoundation \ |
|
3044 |
-framework JavaRuntimeSupport \ |
|
3045 |
-framework Security \ |
|
3046 |
-framework SystemConfiguration \ |
|
3047 |
$(LDFLAGS_JDKLIB_SUFFIX), \ |
|
13164 | 3048 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosx)) |
3049 |
||
3050 |
BUILD_LIBRARIES += $(BUILD_LIBOSX) |
|
3051 |
||
3052 |
$(BUILD_LIBOSX) : $(BUILD_LIBOSXAPP) |
|
3053 |
||
3054 |
$(BUILD_LIBOSX) : $(BUILD_LIBJAVA) |
|
12892 | 3055 |
|
3056 |
endif |
|
3057 |
||
3058 |
########################################################################################## |
|
3059 |
||
13164 | 3060 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
3061 |
||
3062 |
LIBAWT_LWAWT_FILES:=\ |
|
12892 | 3063 |
awt.m \ |
3064 |
ApplicationDelegate.m \ |
|
3065 |
CFRetainedResource.m \ |
|
3066 |
CGLGraphicsConfig.m \ |
|
3067 |
CGLSurfaceData.m \ |
|
3068 |
CGLLayer.m \ |
|
3069 |
CGraphicsConfig.m \ |
|
3070 |
CGraphicsDevice.m \ |
|
3071 |
CGraphicsEnv.m \ |
|
3072 |
CCharToGlyphMapper.m \ |
|
3073 |
CSystemColors.m \ |
|
3074 |
AWTFont.m \ |
|
3075 |
CGGlyphOutlines.m \ |
|
3076 |
CGGlyphImages.m \ |
|
3077 |
CoreTextSupport.m \ |
|
3078 |
AWTStrike.m \ |
|
3079 |
InitIDs.m \ |
|
3080 |
AWTEvent.m \ |
|
3081 |
AWTView.m \ |
|
3082 |
AWTWindow.m \ |
|
3083 |
AWTSurfaceLayers.m \ |
|
3084 |
CCursorManager.m \ |
|
3085 |
CClipboard.m \ |
|
3086 |
CDataTransferer.m \ |
|
3087 |
CDragSource.m \ |
|
3088 |
CDragSourceContextPeer.m \ |
|
3089 |
CDropTarget.m \ |
|
3090 |
CDropTargetContextPeer.m \ |
|
3091 |
CInputMethod.m \ |
|
3092 |
CDesktopPeer.m \ |
|
3093 |
OSVersion.m \ |
|
3094 |
DnDUtilities.m \ |
|
3095 |
CFileDialog.m \ |
|
3096 |
CImage.m \ |
|
3097 |
CMenu.m \ |
|
3098 |
CMenuBar.m \ |
|
3099 |
CMenuComponent.m \ |
|
3100 |
CMenuItem.m \ |
|
3101 |
CPopupMenu.m \ |
|
3102 |
CRobot.m \ |
|
3103 |
CTrayIcon.m \ |
|
3104 |
CWrapper.m \ |
|
3105 |
JavaAccessibilityAction.m \ |
|
3106 |
JavaAccessibilityUtilities.m \ |
|
3107 |
JavaComponentAccessibility.m \ |
|
3108 |
JavaTextAccessibility.m \ |
|
3109 |
LWCToolkit.m \ |
|
3110 |
GeomUtilities.m \ |
|
3111 |
CPrinterJob.m \ |
|
3112 |
PrintModel.m \ |
|
3113 |
PrinterSurfaceData.m \ |
|
3114 |
PrinterView.m \ |
|
3115 |
QuartzSurfaceData.m \ |
|
3116 |
QuartzRenderer.m \ |
|
3117 |
CTextPipe.m \ |
|
3118 |
ImageSurfaceData.m \ |
|
3119 |
awt_DrawingSurface.m \ |
|
3120 |
\ |
|
3121 |
OGLBlitLoops.c \ |
|
3122 |
OGLBufImgOps.c \ |
|
3123 |
OGLContext.c \ |
|
3124 |
OGLFuncs.c \ |
|
3125 |
OGLMaskBlit.c \ |
|
3126 |
OGLMaskFill.c \ |
|
3127 |
OGLPaints.c \ |
|
3128 |
OGLRenderQueue.c \ |
|
3129 |
OGLRenderer.c \ |
|
3130 |
OGLSurfaceData.c \ |
|
3131 |
OGLTextRenderer.c \ |
|
3132 |
OGLVertexCache.c \ |
|
3133 |
AccelGlyphCache.c \ |
|
3134 |
CUPSfuncs.c |
|
3135 |
||
3136 |
||
13164 | 3137 |
LIBAWT_LWAWT_DIRS:=\ |
12892 | 3138 |
$(JDK_TOPDIR)/src/macosx/native/sun/awt \ |
3139 |
$(JDK_TOPDIR)/src/macosx/native/sun/font \ |
|
3140 |
$(JDK_TOPDIR)/src/macosx/native/sun/java2d/opengl \ |
|
3141 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt \ |
|
3142 |
$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
3143 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
|
3144 |
||
3145 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_LWAWT,\ |
|
13164 | 3146 |
LIBRARY:=awt_lwawt,\ |
3147 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3148 |
SRC:=$(LIBAWT_LWAWT_DIRS),\ |
13164 | 3149 |
LANG:=C,\ |
12892 | 3150 |
INCLUDE_FILES:=$(LIBAWT_LWAWT_FILES),\ |
13164 | 3151 |
OPTIMIZATION:=LOW, \ |
3152 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
14233
18fda1299ea9
8001891: build-infra: Adding X_CFLAGS and X_LIBS to lwawt and sizer compilation
ohrstrom
parents:
14231
diff
changeset
|
3153 |
$(X_CFLAGS) \ |
18fda1299ea9
8001891: build-infra: Adding X_CFLAGS and X_LIBS to lwawt and sizer compilation
ohrstrom
parents:
14231
diff
changeset
|
3154 |
$(X_LIBS) \ |
12892 | 3155 |
$(foreach dir,$(LIBAWT_LWAWT_DIRS),-I$(dir)) \ |
3156 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
|
3157 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
3158 |
-I$(JDK_TOPDIR)/src/solaris/native/sun/java2d \ |
|
3159 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
3160 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
3161 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
|
3162 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
3163 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
3164 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3165 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks,\ |
|
3166 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
3167 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13702 | 3168 |
LDFLAGS_SUFFIX_macosx:=-lawt -lmlib_image -losxapp -ljvm $(LIBM) \ |
3169 |
-framework Accelerate \ |
|
3170 |
-framework ApplicationServices \ |
|
3171 |
-framework AudioToolbox \ |
|
3172 |
-framework Carbon \ |
|
3173 |
-framework Cocoa \ |
|
3174 |
-framework Security \ |
|
3175 |
-framework ExceptionHandling \ |
|
3176 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3177 |
-framework JavaNativeFoundation \ |
|
3178 |
-framework JavaRuntimeSupport \ |
|
3179 |
-framework OpenGL \ |
|
3180 |
-framework QuartzCore -ljava,\ |
|
13164 | 3181 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_lwawt)) |
3182 |
||
3183 |
BUILD_LIBRARIES += $(BUILD_LIBAWT_LWAWT) |
|
3184 |
||
3185 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBAWT) |
|
3186 |
||
3187 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBMLIB_IMAGE) |
|
3188 |
||
3189 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBOSXAPP) |
|
3190 |
||
3191 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBJAVA) |
|
12892 | 3192 |
|
3193 |
endif |
|
3194 |
||
3195 |
########################################################################################## |
|
3196 |
||
13164 | 3197 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
3198 |
||
12892 | 3199 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSXUI,\ |
13164 | 3200 |
LIBRARY:=osxui,\ |
3201 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3202 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/com/apple/laf,\ |
13164 | 3203 |
LANG:=C,\ |
3204 |
OPTIMIZATION:=LOW, \ |
|
3205 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 3206 |
-I$(JDK_TOPDIR)/src/macosx/native/com/apple/laf \ |
3207 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
|
3208 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/awt \ |
|
3209 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks, \ |
|
3210 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
13702 | 3211 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
3212 |
-Xlinker -rpath -Xlinker @loader_path,\ |
|
3213 |
LDFLAGS_SUFFIX_macosx:=-lawt -losxapp -lawt_lwawt \ |
|
3214 |
-framework Cocoa \ |
|
3215 |
-framework Carbon \ |
|
3216 |
-framework ApplicationServices \ |
|
3217 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3218 |
-framework JavaNativeFoundation \ |
|
3219 |
-framework JavaRuntimeSupport \ |
|
3220 |
-ljava -ljvm,\ |
|
13164 | 3221 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosxui)) |
3222 |
||
3223 |
BUILD_LIBRARIES += $(BUILD_LIBOSXUI) |
|
3224 |
||
3225 |
$(BUILD_LIBOSXUI) : $(BUILD_LIBAWT) |
|
3226 |
||
3227 |
$(BUILD_LIBOSXUI) : $(BUILD_LIBOSXAPP) |
|
3228 |
||
3229 |
$(BUILD_LIBOSXUI) : $(BUILD_LIBAWT_LWAWT) |
|
3230 |
||
3231 |
#$(BUILD_LIBOSXUI) : $(BUILD_LIBJAVA) |
|
3232 |
||
3233 |
endif |
|
3234 |
||
3235 |
########################################################################################## |
|
3236 |
||
3237 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
3238 |
||
13702 | 3239 |
# Ugly hack to mimic behaviour in old build where this is built as an xcode project. |
3240 |
SET_SHARED_LIBRARY_NAME=-Xlinker -install_name -Xlinker /usr/local/lib/libJObjC.dylib |
|
3241 |
||
3242 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJOBJC32,\ |
|
13164 | 3243 |
LIBRARY:=JObjC,\ |
13702 | 3244 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc32,\ |
3245 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/native \ |
|
3246 |
$(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/native ,\ |
|
3247 |
LANG:=C,\ |
|
3248 |
OPTIMIZATION:=LOW, \ |
|
3249 |
CFLAGS:=-fpascal-strings \ |
|
3250 |
-fobjc-gc \ |
|
3251 |
-gdwarf-2 \ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
3252 |
$(CFLAGS_JDKLIB) -I$(JDK_OUTPUTDIR)/gensrc_headers_jobjc \ |
13702 | 3253 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
3254 |
-m32,\ |
|
3255 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
3256 |
-m32, \ |
|
3257 |
LDFLAGS_SUFFIX:=-framework Foundation -framework JavaVM \ |
|
3258 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3259 |
-framework JavaNativeFoundation \ |
|
3260 |
-lffi, \ |
|
3261 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc32)) |
|
3262 |
||
3263 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJOBJC64,\ |
|
3264 |
LIBRARY:=JObjC,\ |
|
3265 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc64,\ |
|
13164 | 3266 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/native \ |
3267 |
$(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/native ,\ |
|
3268 |
LANG:=C,\ |
|
3269 |
OPTIMIZATION:=LOW, \ |
|
3270 |
CFLAGS:=-fpascal-strings \ |
|
3271 |
-fobjc-gc \ |
|
3272 |
-gdwarf-2 \ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
3273 |
$(CFLAGS_JDKLIB) -I$(JDK_OUTPUTDIR)/gensrc_headers_jobjc \ |
13164 | 3274 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
3275 |
, \ |
|
3276 |
LDFLAGS:=-fpascal-strings \ |
|
3277 |
-fobjc-gc \ |
|
3278 |
-gdwarf-2 \ |
|
3279 |
$(LDFLAGS_JDKLIB)\ |
|
3280 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
3281 |
LDFLAGS_SUFFIX:=-framework Foundation -framework JavaVM \ |
|
3282 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3283 |
-framework JavaNativeFoundation \ |
|
3284 |
-lffi, \ |
|
13702 | 3285 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc64)) |
3286 |
||
3287 |
$(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)JObjC$(SHARED_LIBRARY_SUFFIX): $(BUILD_LIBJOBJC32) $(BUILD_LIBJOBJC64) |
|
3288 |
$(LIPO) -create -output $@ $(BUILD_LIBJOBJC32) $(BUILD_LIBJOBJC64) |
|
3289 |
||
3290 |
BUILD_LIBRARIES += $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)JObjC$(SHARED_LIBRARY_SUFFIX) |
|
12892 | 3291 |
|
3292 |
endif |
|
3293 |
||
3294 |
########################################################################################## |
|
3295 |
||
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3296 |
all: $(COPY_FILES) $(BUILD_LIBRARIES) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3297 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3298 |
.PHONY: all |