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