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