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