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