author | erikj |
Sat, 03 Nov 2012 16:27:01 -0700 | |
changeset 14344 | a5537423264b |
parent 14235 | 540a11e15fbb |
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,\ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
1081 |
LDFLAGS_SUFFIX_solaris:=-lnsl -lsocket -lc,\ |
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 |
||
1570 |
ifndef OPENJDK |
|
1571 |
ifneq ($(OPENJDK_TARGET_OS), macosx) |
|
1572 |
||
1573 |
LIBJDBCODBC_DIR :=$(JDK_OUTPUTDIR)/objs/libjdbcodbc |
|
1574 |
LIBJDBCODBC_NAME :=$(LIBRARY_PREFIX)JdbcOdbc$(SHARED_LIBRARY_SUFFIX) |
|
1575 |
LIBJDBCODBC_CFLAGS:= |
|
1576 |
LIBJDBCODBC_LIBS := |
|
1577 |
LIBJDBCODBC_LDFLAGS:= |
|
1578 |
||
1579 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
1580 |
LIBJDBCODBC_LDFLAGS:=$(LDFLAGS_JDKLIB) |
|
1581 |
LIBJDBCODBC_LIBS += odbc32.lib odbccp32.lib $(WIN_JAVA_LIB) advapi32.lib |
|
1582 |
else |
|
1583 |
LIBJDBCODBC_CFLAGS:=-DUNIX |
|
1584 |
||
1585 |
# |
|
1586 |
# This mimics "current" build system exactly. Link against fake -lodbcinst -lodbc |
|
1587 |
# but...those are linked with the -soname, causing the dependency to be dropped on linux (gnu ld) |
|
1588 |
# but kept with other linker (solaris) |
|
1589 |
# |
|
1590 |
# IMO very weird behaviour...very weird |
|
1591 |
# |
|
1592 |
LIBJDBCODBC_LDFLAGS:=$(patsubst defs,nodefs,$(LDFLAGS_JDKLIB)) \ |
|
1593 |
-Xlinker -z -Xlinker nodefs |
|
1594 |
LIBJDBCODBC_LIBS += -L$(LIBJDBCODBC_DIR) -lodbcinst -lodbc |
|
1595 |
LIBJDBCODBC_SONAME:=$(call SET_SHARED_LIBRARY_NAME,$(LIBJDBCODBC_NAME)) |
|
1596 |
endif |
|
1597 |
||
1598 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJDBCODBC,\ |
|
1599 |
LIBRARY:=JdbcOdbc,\ |
|
1600 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1601 |
SRC:=$(JDK_TOPDIR)/src/closed/share/classes/sun/jdbc/odbc,\ |
|
1602 |
EXCLUDE_FILES:=dummyodbc.c,\ |
|
1603 |
LANG:=C,\ |
|
1604 |
OPTIMIZATION:=LOW, \ |
|
1605 |
CFLAGS:=$(LIBJDBCODBC_CFLAGS) $(CFLAGS_JDKLIB) \ |
|
1606 |
$(SHARED_LIBRARY_FLAGS),\ |
|
1607 |
LDFLAGS:=$(LIBJDBCODBC_LDFLAGS) \ |
|
1608 |
$(call SET_SHARED_LIBRARY_ORIGIN) $(LIBJDBCODBC_LIBS),\ |
|
1609 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX) $(LIBJDBCODBC_SONAME),\ |
|
13702 | 1610 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1611 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1612 |
-D "JDK_FNAME=JdbcOdbc.dll" \ |
1613 |
-D "JDK_INTERNAL_NAME=JdbcOdbc" \ |
|
1614 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1615 |
OBJECT_DIR:=$(LIBJDBCODBC_DIR),\ |
1616 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1617 |
|
1618 |
$(BUILD_LIBJDBCODBC) : $(BUILD_LIBJAVA) |
|
1619 |
||
1620 |
BUILD_LIBRARIES += $(BUILD_LIBJDBCODBC) |
|
1621 |
||
1622 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
|
1623 |
||
1624 |
$(eval $(call SetupNativeCompilation,BUILD_FAKEODBCINST,\ |
|
1625 |
LIBRARY:=odbcinst,\ |
|
1626 |
OUTPUT_DIR:=$(LIBJDBCODBC_DIR),\ |
|
1627 |
SRC:=$(JDK_OUTPUTDIR)/gensrc_c/libjdbcodbc,\ |
|
1628 |
INCLUDE_FILES:=dummyodbc1.c,\ |
|
1629 |
LANG:=C,\ |
|
1630 |
OPTIMIZATION:=LOW, \ |
|
1631 |
CFLAGS:=$(CFLAGS_JDKLIB),\ |
|
1632 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(call SET_SHARED_LIBRARY_ORIGIN) $(LIBJDBCODBC_LDFLAGS),\ |
|
1633 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX) $(LIBJDBCODBC_SONAME),\ |
|
1634 |
OBJECT_DIR:=$(LIBJDBCODBC_DIR))) |
|
1635 |
||
1636 |
$(eval $(call SetupNativeCompilation,BUILD_FAKEODBC,\ |
|
1637 |
LIBRARY:=odbc,\ |
|
1638 |
OUTPUT_DIR:=$(LIBJDBCODBC_DIR),\ |
|
1639 |
SRC:=$(JDK_OUTPUTDIR)/gensrc_c/libjdbcodbc,\ |
|
1640 |
INCLUDE_FILES:=dummyodbc2.c,\ |
|
1641 |
LANG:=C,\ |
|
1642 |
OPTIMIZATION:=LOW, \ |
|
1643 |
CFLAGS:=$(LIBJDBCODBC_CFLAGS) $(CFLAGS_JDKLIB),\ |
|
1644 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(call SET_SHARED_LIBRARY_ORIGIN) $(LIBJDBCODBC_LDFLAGS),\ |
|
1645 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX) $(LIBJDBCODBC_SONAME),\ |
|
1646 |
OBJECT_DIR:=$(LIBJDBCODBC_DIR))) |
|
1647 |
||
1648 |
$(BUILD_FAKEODBCINST) $(BUILD_FAKEODBC) : \ |
|
1649 |
$(BUILD_LIBJAVA) |
|
1650 |
||
1651 |
$(BUILD_LIBJDBCODBC) : $(BUILD_FAKEODBCINST) $(BUILD_FAKEODBC) |
|
1652 |
||
1653 |
endif |
|
1654 |
||
1655 |
endif |
|
1656 |
endif |
|
1657 |
||
1658 |
########################################################################################## |
|
1659 |
||
13702 | 1660 |
LIBINSTRUMENT_SRC :=$(JDK_TOPDIR)/src/share/instrument \ |
1661 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/io \ |
|
1662 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/instrument |
|
1663 |
||
1664 |
LIBINSTRUMENT_FILES :=\ |
|
13164 | 1665 |
EncodingSupport.c \ |
1666 |
EncodingSupport_md.c \ |
|
1667 |
FileSystemSupport_md.c \ |
|
1668 |
InstrumentationImplNativeMethods.c \ |
|
1669 |
InvocationAdapter.c \ |
|
1670 |
JarFacade.c \ |
|
1671 |
JPLISAgent.c \ |
|
1672 |
JPLISAssert.c \ |
|
1673 |
JavaExceptions.c \ |
|
1674 |
PathCharsValidator.c \ |
|
1675 |
Reentrancy.c \ |
|
1676 |
Utilities.c \ |
|
1677 |
canonicalize_md.c |
|
1678 |
||
13702 | 1679 |
LIBINSTRUMENT_DIR :=$(JDK_OUTPUTDIR)/objs/libinstrument |
1680 |
LIBINSTRUMENT_CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1681 |
-I$(JDK_TOPDIR)/src/share/instrument \ |
|
1682 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/instrument \ |
|
1683 |
-I$(JDK_TOPDIR)/src/share/bin |
|
1684 |
||
1685 |
LIBINSTRUMENT_LDFLAGS:= |
|
1686 |
LIBINSTRUMENT_LDFLAGS_SUFFIX:= |
|
13164 | 1687 |
|
1688 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
13702 | 1689 |
LIBINSTRUMENT_LDFLAGS += $(JDK_OUTPUTDIR)/objs/jli_static.lib $(WIN_JAVA_LIB) \ |
1690 |
-export:Agent_OnAttach advapi32.lib |
|
1691 |
# Statically link the C runtime so that there are not dependencies on modules |
|
1692 |
# not on the search patch when invoked from the Windows system directory |
|
1693 |
# (or elsewhere). |
|
1694 |
LIBINSTRUMENT_CFLAGS := $(filter-out -MD,$(LIBINSTRUMENT_CFLAGS)) |
|
1695 |
# equivalent of strcasecmp is stricmp on Windows |
|
1696 |
LIBINSTRUMENT_CFLAGS += -Dstrcasecmp=stricmp |
|
13164 | 1697 |
endif |
1698 |
||
1699 |
$(eval $(call SetupNativeCompilation,BUILD_LIBINSTRUMENT,\ |
|
1700 |
LIBRARY:=instrument, \ |
|
1701 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1702 |
SRC:=$(LIBINSTRUMENT_SRC),\ |
1703 |
INCLUDE_FILES:=$(LIBINSTRUMENT_FILES),\ |
|
13164 | 1704 |
LANG:=C,\ |
1705 |
OPTIMIZATION:=LOW, \ |
|
13702 | 1706 |
CFLAGS:=$(LIBINSTRUMENT_CFLAGS),\ |
13164 | 1707 |
CFLAGS_debug:=-DJPLIS_LOGGING,\ |
1708 |
CFLAGS_release:=-DNO_JPLIS_LOGGING,\ |
|
1709 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libinstrument/mapfile-vers, \ |
|
13702 | 1710 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1711 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
1712 |
$(LIBINSTRUMENT_LDFLAGS),\ |
|
1713 |
LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN,/jli),\ |
|
1714 |
LDFLAGS_solaris:= $(call SET_SHARED_LIBRARY_ORIGIN,/jli),\ |
|
1715 |
LDFLAGS_macosx:=-Xlinker -all_load $(JDK_OUTPUTDIR)/objs/libjli_static.a \ |
|
1716 |
-framework Cocoa -framework Security -framework ApplicationServices,\ |
|
1717 |
LDFLAGS_SUFFIX:=$(LIBINSTRUMENT_LDFLAGS_SUFFIX),\ |
|
1718 |
LDFLAGS_SUFFIX_macosx:=-liconv $(LIBZ),\ |
|
1719 |
LDFLAGS_SUFFIX_solaris:=$(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli $(LIBDL),\ |
|
1720 |
LDFLAGS_SUFFIX_linux:=$(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli $(LIBDL),\ |
|
1721 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
1722 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1723 |
-D "JDK_FNAME=instrument.dll" \ |
1724 |
-D "JDK_INTERNAL_NAME=instrument" \ |
|
1725 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1726 |
OBJECT_DIR:=$(LIBINSTRUMENT_DIR),\ |
13164 | 1727 |
DEBUG_SYMBOLS:=true)) |
1728 |
||
1729 |
ifneq (,$(findstring $(OPENJDK_TARGET_OS), macosx windows)) |
|
1730 |
$(BUILD_LIBINSTRUMENT) : $(JDK_OUTPUTDIR)/objs/$(LIBRARY_PREFIX)jli_static$(STATIC_LIBRARY_SUFFIX) |
|
1731 |
else |
|
1732 |
$(BUILD_LIBINSTRUMENT) : $(INSTALL_LIBRARIES_HERE)/jli/$(LIBRARY_PREFIX)jli$(SHARED_LIBRARY_SUFFIX) |
|
1733 |
endif |
|
1734 |
$(BUILD_LIBINSTRUMENT) : $(BUILD_LIBJAVA) |
|
1735 |
||
1736 |
BUILD_LIBRARIES += $(BUILD_LIBINSTRUMENT) |
|
1737 |
||
1738 |
########################################################################################## |
|
1739 |
||
1740 |
BUILD_LIBMANAGEMENT_SRC:=$(JDK_TOPDIR)/src/share/native/sun/management \ |
|
13702 | 1741 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/management \ |
1742 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/management |
|
13164 | 1743 |
|
1744 |
BUILD_LIBMANAGEMENT_EXCLUDES:= |
|
1745 |
||
1746 |
BUILD_LIBMANAGEMENT_CFLAGS:=-I$(JDK_TOPDIR)/src/share/native/sun/management |
|
1747 |
||
1748 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
|
1749 |
BUILD_LIBMANAGEMENT_EXCLUDES += OperatingSystem_md.c |
|
1750 |
else |
|
1751 |
BUILD_LIBMANAGEMENT_EXCLUDES += UnixOperatingSystem_md.c |
|
1752 |
endif |
|
1753 |
||
1754 |
ifneq ($(OPENJDK_TARGET_OS),solaris) |
|
1755 |
BUILD_LIBMANAGEMENT_EXCLUDES += SolarisOperatingSystem.c |
|
1756 |
endif |
|
1757 |
||
1758 |
ifneq ($(OPENJDK_TARGET_OS),linux) |
|
1759 |
BUILD_LIBMANAGEMENT_EXCLUDES += LinuxOperatingSystem.c |
|
1760 |
endif |
|
1761 |
||
1762 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
|
1763 |
BUILD_LIBMANAGEMENT_EXCLUDES += MacosxOperatingSystem.c |
|
1764 |
endif |
|
1765 |
||
13702 | 1766 |
LIBMANAGEMENT_OPTIMIZATION:=HIGH |
1767 |
ifneq ($(findstring $(OPENJDK_TARGET_OS),solaris linux),) |
|
1768 |
ifeq ($(ENABLE_DEBUG_SYMBOLS), yes) |
|
1769 |
LIBMANAGEMENT_OPTIMIZATION:=LOW |
|
1770 |
endif |
|
1771 |
endif |
|
13164 | 1772 |
|
1773 |
$(eval $(call SetupNativeCompilation,BUILD_LIBMANAGEMENT,\ |
|
1774 |
LIBRARY:=management,\ |
|
1775 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1776 |
SRC:=$(BUILD_LIBMANAGEMENT_SRC),\ |
|
1777 |
EXCLUDE_FILES:=$(BUILD_LIBMANAGEMENT_EXCLUDES),\ |
|
1778 |
LANG:=C,\ |
|
13702 | 1779 |
OPTIMIZATION:=$(LIBMANAGEMENT_OPTIMIZATION), \ |
13164 | 1780 |
CFLAGS:=$(CFLAGS_JDKLIB) $(BUILD_LIBMANAGEMENT_CFLAGS),\ |
1781 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libmanagement/mapfile-vers, \ |
|
1782 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1783 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1784 |
LDFLAGS_solaris:=-lkstat,\ |
|
1785 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
14231 | 1786 |
LDFLAGS_SUFFIX_windows:=jvm.lib psapi.lib $(WIN_JAVA_LIB) advapi32.lib,\ |
13702 | 1787 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1788 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1789 |
-D "JDK_FNAME=management.dll" \ |
1790 |
-D "JDK_INTERNAL_NAME=management" \ |
|
1791 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1792 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libmanagement,\ |
1793 |
DEBUG_SYMBOLS:=true)) |
|
1794 |
||
1795 |
$(BUILD_LIBMANAGEMENT) : $(BUILD_LIBJAVA) |
|
1796 |
||
1797 |
BUILD_LIBRARIES += $(BUILD_LIBMANAGEMENT) |
|
1798 |
||
1799 |
########################################################################################## |
|
1800 |
||
13702 | 1801 |
BUILD_LIBHPROF_SRC:=$(JDK_TOPDIR)/src/share/demo/jvmti/hprof $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/demo/jvmti/hprof |
13164 | 1802 |
BUILD_LIBHPROF_CFLAGS:=-I$(JDK_TOPDIR)/src/share/demo/jvmti/hprof \ |
1803 |
-I$(JDK_TOPDIR)/src/share/npt \ |
|
13702 | 1804 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt \ |
13164 | 1805 |
-I$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo |
1806 |
||
1807 |
BUILD_LIBHPROF_LDFLAGS:= |
|
1808 |
||
1809 |
ifeq ($(OPENJDK_TARGET_OS),solaris) |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
1810 |
BUILD_LIBHPROF_LDFLAGS += -lsocket -lnsl -lc |
13164 | 1811 |
endif |
1812 |
||
13702 | 1813 |
LIBHPROF_OPTIMIZATION:=HIGHEST |
1814 |
ifneq ($(findstring $(OPENJDK_TARGET_OS),solaris linux),) |
|
1815 |
ifeq ($(ENABLE_DEBUG_SYMBOLS), yes) |
|
1816 |
LIBHPROF_OPTIMIZATION:=LOW |
|
1817 |
endif |
|
1818 |
endif |
|
1819 |
||
13164 | 1820 |
ifneq ($(OPENJDK_TARGET_OS),windows) |
1821 |
BUILD_LIBHPROF_LDFLAGS += $(LIBDL) |
|
1822 |
endif |
|
1823 |
||
1824 |
$(eval $(call SetupNativeCompilation,BUILD_LIBHPROF,\ |
|
1825 |
LIBRARY:=hprof, \ |
|
1826 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1827 |
SRC:=$(BUILD_LIBHPROF_SRC),\ |
|
1828 |
LANG:=C,\ |
|
13702 | 1829 |
OPTIMIZATION:=$(LIBHPROF_OPTIMIZATION), \ |
13164 | 1830 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
1831 |
$(BUILD_LIBHPROF_CFLAGS),\ |
|
1832 |
CFLAGS_debug:=-DHPROF_LOGGING,\ |
|
1833 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libhprof/mapfile-vers, \ |
|
1834 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1835 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1836 |
LDFLAGS_windows:=wsock32.lib winmm.lib advapi32.lib,\ |
|
1837 |
LDFLAGS_SUFFIX:=$(BUILD_LIBHPROF_LDFLAGS),\ |
|
13702 | 1838 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1839 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1840 |
-D "JDK_FNAME=hprof.dll" \ |
1841 |
-D "JDK_INTERNAL_NAME=hprof" \ |
|
1842 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1843 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libhprof_jvmti,\ |
1844 |
DEBUG_SYMBOLS:=true)) |
|
1845 |
||
1846 |
BUILD_LIBRARIES += $(BUILD_LIBHPROF) |
|
1847 |
||
1848 |
########################################################################################## |
|
1849 |
||
1850 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAVA_CRW_DEMO,\ |
|
1851 |
LIBRARY:=java_crw_demo, \ |
|
1852 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1853 |
SRC:=$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo,\ |
|
1854 |
LANG:=C,\ |
|
1855 |
OPTIMIZATION:=LOW, \ |
|
1856 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1857 |
-I$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo,\ |
|
1858 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjava_crw_demo/mapfile-vers, \ |
|
1859 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1860 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1861 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1862 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1863 |
-D "JDK_FNAME=java_crw_demo.dll" \ |
1864 |
-D "JDK_INTERNAL_NAME=java_crw_demo" \ |
|
1865 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1866 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjava_crw_demo,\ |
1867 |
DEBUG_SYMBOLS:=true)) |
|
1868 |
||
1869 |
BUILD_LIBRARIES += $(BUILD_LIBJAVA_CRW_DEMO) |
|
1870 |
||
1871 |
########################################################################################## |
|
1872 |
||
1873 |
$(eval $(call SetupNativeCompilation,BUILD_LIBNPT,\ |
|
1874 |
LIBRARY:=npt, \ |
|
1875 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1876 |
SRC:=$(JDK_TOPDIR)/src/share/npt $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt,\ |
13164 | 1877 |
LANG:=C,\ |
1878 |
OPTIMIZATION:=LOW, \ |
|
1879 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1880 |
-I$(JDK_TOPDIR)/src/share/npt \ |
|
13702 | 1881 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt,\ |
13164 | 1882 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnpt/mapfile-vers, \ |
1883 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1884 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1885 |
LDFLAGS_macosx:=-liconv,\ |
|
1886 |
LDFLAGS_SUFFIX_windows:=-export:nptInitialize -export:nptTerminate,\ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
1887 |
LDFLAGS_SUFFIX_solaris:=-lc, \ |
13702 | 1888 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1889 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1890 |
-D "JDK_FNAME=npt.dll" \ |
1891 |
-D "JDK_INTERNAL_NAME=npt" \ |
|
1892 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1893 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnpt,\ |
1894 |
DEBUG_SYMBOLS:=true)) |
|
1895 |
||
1896 |
BUILD_LIBRARIES += $(BUILD_LIBNPT) |
|
1897 |
||
1898 |
########################################################################################## |
|
1899 |
||
1900 |
LIBNET_SRC_DIRS:=$(JDK_TOPDIR)/src/share/native/java/net \ |
|
13702 | 1901 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net \ |
1902 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/dns \ |
|
1903 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/spi |
|
13164 | 1904 |
|
14231 | 1905 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
1906 |
LIBNET_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/www/protocol/http/ntlm |
|
1907 |
else |
|
1908 |
LIBNET_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/sdp |
|
1909 |
endif |
|
1910 |
||
13164 | 1911 |
LIBNET_CFLAGS:=$(foreach dir,$(LIBNET_SRC_DIRS),-I$(dir)) |
1912 |
||
1913 |
LIBNET_EXCLUDE_FILES:= |
|
1914 |
ifneq ($(OPENJDK_TARGET_OS),linux) |
|
1915 |
LIBNET_EXCLUDE_FILES += linux_close.c |
|
1916 |
endif |
|
1917 |
||
1918 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
|
1919 |
LIBNET_EXCLUDE_FILES += bsd_close.c |
|
1920 |
endif |
|
1921 |
||
1922 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
1923 |
LIBNET_EXCLUDE_FILES += PlainSocketImpl.c PlainDatagramSocketImpl.c SdpSupport.c |
|
1924 |
else |
|
1925 |
LIBNET_EXCLUDE_FILES += TwoStacksPlainSocketImpl.c DualStackPlainSocketImpl.c \ |
|
1926 |
TwoStacksPlainDatagramSocketImpl.c DualStackPlainDatagramSocketImpl.c \ |
|
1927 |
NTLMAuthSequence.c NetworkInterface_winXP.c |
|
1928 |
endif |
|
1929 |
||
1930 |
$(eval $(call SetupNativeCompilation,BUILD_LIBNET,\ |
|
1931 |
LIBRARY:=net,\ |
|
1932 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1933 |
SRC:=$(LIBNET_SRC_DIRS),\ |
|
1934 |
EXCLUDE_FILES:=$(LIBNET_EXCLUDE_FILES), \ |
|
1935 |
LANG:=C,\ |
|
1936 |
OPTIMIZATION:=LOW, \ |
|
1937 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1938 |
$(LIBNET_CFLAGS),\ |
|
1939 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnet/mapfile-vers, \ |
|
1940 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1941 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1942 |
LDFLAGS_SUFFIX_macosx:=-ljvm -ljava,\ |
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
1943 |
LDFLAGS_SUFFIX_solaris:=-ljvm -ljava -lnsl -lsocket $(LIBDL) -lc ,\ |
13702 | 1944 |
LDFLAGS_SUFFIX_linux:=$(LIBDL) -ljvm -lpthread -ljava,\ |
14231 | 1945 |
LDFLAGS_SUFFIX_windows:=ws2_32.lib jvm.lib secur32.lib iphlpapi.lib \ |
1946 |
delayimp.lib $(WIN_JAVA_LIB) advapi32.lib \ |
|
1947 |
-DELAYLOAD:secur32.dll -DELAYLOAD:iphlpapi.dll, \ |
|
13702 | 1948 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1949 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1950 |
-D "JDK_FNAME=net.dll" \ |
1951 |
-D "JDK_INTERNAL_NAME=net" \ |
|
1952 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1953 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnet,\ |
1954 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1955 |
|
1956 |
$(BUILD_LIBNET) : $(BUILD_LIBJAVA) |
|
1957 |
||
1958 |
BUILD_LIBRARIES += $(BUILD_LIBNET) |
|
1959 |
||
1960 |
$(JDK_OUTPUTDIR)/lib/net.properties: $(JDK_TOPDIR)/src/share/lib/net.properties |
|
14231 | 1961 |
$(ECHO) $(LOG_INFO) Copying $(@F) |
13164 | 1962 |
$(MKDIR) -p $(@D) |
1963 |
$(CP) $< $@ |
|
1964 |
||
1965 |
COPY_FILES += $(JDK_OUTPUTDIR)/lib/net.properties |
|
1966 |
||
1967 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 1968 |
$(JDK_OUTPUTDIR)/lib/sdp/sdp.conf.template : $(JDK_TOPDIR)/src/${OPENJDK_TARGET_OS_API_DIR}/lib/sdp/sdp.conf.template |
14231 | 1969 |
$(ECHO) $(LOG_INFO) Copying $(@F) |
13164 | 1970 |
$(MKDIR) -p $(@D) |
1971 |
$(CP) $< $@ |
|
1972 |
||
1973 |
COPY_FILES += $(JDK_OUTPUTDIR)/lib/sdp/sdp.conf.template |
|
1974 |
endif |
|
1975 |
||
1976 |
########################################################################################## |
|
1977 |
||
1978 |
BUILD_LIBNIO_SRC:=\ |
|
13702 | 1979 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/nio \ |
1980 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch \ |
|
1981 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/fs |
|
13164 | 1982 |
|
1983 |
BUILD_LIBNIO_CFLAGS:=\ |
|
1984 |
-I$(JDK_TOPDIR)/src/share/native/sun/nio/ch \ |
|
1985 |
-I$(JDK_TOPDIR)/src/share/native/java/io \ |
|
1986 |
-I$(JDK_TOPDIR)/src/share/native/java/net \ |
|
13702 | 1987 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net |
13164 | 1988 |
|
1989 |
BUILD_LIBNIO_FILES:=\ |
|
1990 |
DatagramChannelImpl.c \ |
|
1991 |
DatagramDispatcher.c \ |
|
1992 |
FileChannelImpl.c \ |
|
1993 |
FileDispatcherImpl.c \ |
|
1994 |
FileKey.c \ |
|
1995 |
IOUtil.c \ |
|
1996 |
MappedByteBuffer.c \ |
|
1997 |
Net.c \ |
|
1998 |
ServerSocketChannelImpl.c \ |
|
1999 |
SocketChannelImpl.c \ |
|
2000 |
SocketDispatcher.c |
|
2001 |
||
2002 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
2003 |
BUILD_LIBNIO_FILES += \ |
|
2004 |
Iocp.c \ |
|
2005 |
RegistryFileTypeDetector.c \ |
|
2006 |
WindowsAsynchronousFileChannelImpl.c \ |
|
2007 |
WindowsAsynchronousServerSocketChannelImpl.c \ |
|
2008 |
WindowsAsynchronousSocketChannelImpl.c \ |
|
2009 |
WindowsNativeDispatcher.c \ |
|
2010 |
WindowsSelectorImpl.c |
|
2011 |
endif |
|
2012 |
||
2013 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
13702 | 2014 |
BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
13164 | 2015 |
BUILD_LIBNIO_FILES += \ |
2016 |
EPoll.c \ |
|
2017 |
EPollArrayWrapper.c \ |
|
2018 |
EPollPort.c \ |
|
2019 |
InheritedChannel.c \ |
|
2020 |
NativeThread.c \ |
|
13702 | 2021 |
PollArrayWrapper.c \ |
13164 | 2022 |
UnixAsynchronousServerSocketChannelImpl.c \ |
2023 |
UnixAsynchronousSocketChannelImpl.c \ |
|
2024 |
GnomeFileTypeDetector.c \ |
|
2025 |
LinuxNativeDispatcher.c \ |
|
2026 |
LinuxWatchService.c \ |
|
2027 |
UnixCopyFile.c \ |
|
2028 |
UnixNativeDispatcher.c |
|
2029 |
endif |
|
2030 |
||
2031 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
13702 | 2032 |
BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
13164 | 2033 |
BUILD_LIBNIO_SRC += $(JDK_TOPDIR)/src/macosx/native/sun/nio/ch |
2034 |
BUILD_LIBNIO_FILES += \ |
|
2035 |
InheritedChannel.c \ |
|
2036 |
NativeThread.c \ |
|
2037 |
PollArrayWrapper.c \ |
|
2038 |
UnixAsynchronousServerSocketChannelImpl.c \ |
|
2039 |
UnixAsynchronousSocketChannelImpl.c \ |
|
2040 |
BsdNativeDispatcher.c \ |
|
13702 | 2041 |
MacOSXNativeDispatcher.c \ |
13164 | 2042 |
UnixCopyFile.c \ |
2043 |
UnixNativeDispatcher.c \ |
|
2044 |
KQueue.c \ |
|
2045 |
KQueuePort.c \ |
|
2046 |
KQueueArrayWrapper.c |
|
2047 |
endif |
|
2048 |
||
2049 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 2050 |
BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
13164 | 2051 |
BUILD_LIBNIO_FILES += \ |
2052 |
DevPollArrayWrapper.c \ |
|
2053 |
InheritedChannel.c \ |
|
2054 |
NativeThread.c \ |
|
2055 |
PollArrayWrapper.c \ |
|
2056 |
SolarisEventPort.c \ |
|
2057 |
UnixAsynchronousServerSocketChannelImpl.c \ |
|
2058 |
UnixAsynchronousSocketChannelImpl.c \ |
|
2059 |
GnomeFileTypeDetector.c \ |
|
2060 |
SolarisNativeDispatcher.c \ |
|
2061 |
SolarisWatchService.c \ |
|
2062 |
UnixCopyFile.c \ |
|
2063 |
UnixNativeDispatcher.c |
|
2064 |
endif |
|
2065 |
||
2066 |
$(eval $(call SetupNativeCompilation,BUILD_LIBNIO,\ |
|
2067 |
LIBRARY:=nio,\ |
|
2068 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2069 |
SRC:=$(BUILD_LIBNIO_SRC),\ |
|
2070 |
INCLUDE_FILES:=$(BUILD_LIBNIO_FILES), \ |
|
2071 |
LANG:=C,\ |
|
2072 |
OPTIMIZATION:=HIGH, \ |
|
2073 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
2074 |
$(BUILD_LIBNIO_CFLAGS),\ |
|
2075 |
MAPFILE:=$(BUILD_LIBNIO_MAPFILE), \ |
|
2076 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(BUILD_LIBNIO_LDFLAGS) \ |
|
2077 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
2078 |
LDFLAGS_SUFFIX_linux:=-ljava -lnet -lpthread $(LIBDL),\ |
|
13702 | 2079 |
LDFLAGS_SUFFIX_solaris:=-ljvm -lsocket -lposix4 $(LIBDL) \ |
2080 |
-lsendfile -ljava -lnet -lc,\ |
|
14231 | 2081 |
LDFLAGS_SUFFIX_windows:=jvm.lib ws2_32.lib $(WIN_JAVA_LIB) \ |
2082 |
$(JDK_OUTPUTDIR)/objs/libnet/net.lib \ |
|
13164 | 2083 |
$(JDK_OUTPUTDIR)/objs/libjava/io_util.obj \ |
14231 | 2084 |
$(JDK_OUTPUTDIR)/objs/libjava/FileDescriptor_md.obj \ |
2085 |
advapi32.lib,\ |
|
13702 | 2086 |
LDFLAGS_SUFFIX_macosx:=-ljava -lnet -pthread -framework CoreFoundation,\ |
13164 | 2087 |
LDFLAGS_SUFFIX:=,\ |
13702 | 2088 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2089 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2090 |
-D "JDK_FNAME=nio.dll" \ |
2091 |
-D "JDK_INTERNAL_NAME=nio" \ |
|
2092 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2093 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnio,\ |
2094 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2095 |
|
2096 |
BUILD_LIBRARIES += $(BUILD_LIBNIO) |
|
2097 |
||
2098 |
$(BUILD_LIBNIO) : $(BUILD_LIBNET) |
|
2099 |
||
2100 |
########################################################################################## |
|
2101 |
||
2102 |
ifeq ($(OPENJDK_TARGET_OS_API),posix) |
|
2103 |
# TODO make this work on macosx |
|
2104 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
|
2105 |
||
2106 |
SCTP_WERROR := -Werror |
|
2107 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc) |
|
2108 |
SCTP_WERROR := |
|
2109 |
endif |
|
2110 |
||
2111 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSCTP,\ |
|
2112 |
LIBRARY:=sctp,\ |
|
2113 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 2114 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch/sctp,\ |
13164 | 2115 |
LANG:=C,\ |
2116 |
OPTIMIZATION:=LOW, \ |
|
2117 |
CFLAGS:=$(CFLAGS_JDKLIB)\ |
|
2118 |
-I$(JDK_TOPDIR)/src/share/native/sun/nio/ch \ |
|
2119 |
-I$(JDK_TOPDIR)/src/share/native/sun/nio/ch/sctp \ |
|
2120 |
-I$(JDK_TOPDIR)/src/share/native/java/net \ |
|
13702 | 2121 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch \ |
2122 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net,\ |
|
13164 | 2123 |
CFLAGS_linux:=$(SCTP_WERROR),\ |
2124 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libsctp/mapfile-vers, \ |
|
2125 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2126 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2127 |
LDFLAGS_SUFFIX_linux:=-lpthread $(LIBDL) -ljava -ljvm,\ |
13164 | 2128 |
LDFLAGS_SUFFIX_posix:=-lnio -lnet,\ |
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
2129 |
LDFLAGS_SUFFIX_solaris:=-lsocket -ljava -ljvm -lc,\ |
13702 | 2130 |
LDFLAGS_SUFFIX_macosx:=-ljava -ljvm,\ |
13164 | 2131 |
INCLUDE_FILES:=SctpNet.c SctpChannelImpl.c SctpServerChannelImpl.c,\ |
2132 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsctp)) |
|
2133 |
||
2134 |
BUILD_LIBRARIES += $(BUILD_LIBSCTP) |
|
2135 |
||
2136 |
$(BUILD_LIBSCTP) : $(BUILD_LIBNIO) |
|
2137 |
endif |
|
2138 |
endif |
|
2139 |
||
2140 |
########################################################################################## |
|
2141 |
||
13702 | 2142 |
BUILD_LIBJLI_SRC_DIRS:=$(JDK_TOPDIR)/src/share/bin $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin |
2143 |
LIBJLI_CFLAGS:=$(CFLAGS_JDKLIB) $(foreach dir,$(BUILD_LIBJLI_SRC_DIRS),-I$(dir)) |
|
13164 | 2144 |
|
2145 |
BUILD_LIBJLI_FILES:=\ |
|
2146 |
java.c \ |
|
2147 |
splashscreen_stubs.c \ |
|
2148 |
parse_manifest.c \ |
|
2149 |
version_comp.c \ |
|
2150 |
wildcard.c \ |
|
2151 |
jli_util.c |
|
2152 |
||
2153 |
ifeq ($(JVM_VARIANT_ZERO), true) |
|
2154 |
ERGO_FAMILY:=zero |
|
13702 | 2155 |
else |
2156 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), x86) |
|
13164 | 2157 |
ERGO_FAMILY:=i586 |
13702 | 2158 |
else |
2159 |
ERGO_FAMILY:=$(OPENJDK_TARGET_CPU_ARCH) |
|
2160 |
endif |
|
2161 |
endif |
|
13164 | 2162 |
|
2163 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
13702 | 2164 |
LIBJLI_CFLAGS += -I$(JDK_TOPDIR)/src/macosx/bin |
13164 | 2165 |
BUILD_LIBJLI_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/bin |
2166 |
BUILD_LIBJLI_FILES += java_md_common.c java_md_macosx.c |
|
2167 |
||
2168 |
BUILD_LIBJLI_java_md_macosx.c_CFLAGS:=-x objective-c |
|
2169 |
BUILD_LIBJLI_STATIC_java_md_macosx.c_CFLAGS:=-x objective-c |
|
2170 |
endif |
|
2171 |
||
2172 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
13702 | 2173 |
BUILD_LIBJLI_FILES += java_md.c \ |
2174 |
cmdtoargs.c |
|
2175 |
# Staticically link with c runtime on windows. |
|
2176 |
LIBJLI_CFLAGS:=$(filter-out -MD,$(LIBJLI_CFLAGS)) |
|
13164 | 2177 |
else ifneq ($(OPENJDK_TARGET_OS), macosx) |
2178 |
||
2179 |
BUILD_LIBJLI_FILES += java_md_common.c |
|
2180 |
BUILD_LIBJLI_FILES += java_md_solinux.c ergo.c |
|
2181 |
||
2182 |
ERGO_ARCH_FILE = ergo_$(ERGO_FAMILY).c |
|
2183 |
||
2184 |
# if the architecture specific ergo file exists then |
|
2185 |
# use it, else use the generic definitions from ergo.c |
|
13702 | 2186 |
ifneq ($(wildcard $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/$(ERGO_ARCH_FILE)),) |
13164 | 2187 |
BUILD_LIBJLI_FILES += $(ERGO_ARCH_FILE) |
2188 |
else # !ERGO_ARCH_FILE |
|
13702 | 2189 |
LIBJLI_CFLAGS += -DUSE_GENERIC_ERGO |
13164 | 2190 |
endif # ERGO_ARCH_FILE |
2191 |
endif #WINDOWS |
|
2192 |
||
13702 | 2193 |
# Append defines depending on target platform |
2194 |
LIBJLI_CFLAGS += $(OPENJDK_TARGET_CPU_JLI_CFLAGS) |
|
13164 | 2195 |
|
2196 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
13702 | 2197 |
LIBJLI_CFLAGS += -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" |
13164 | 2198 |
endif |
2199 |
||
2200 |
ifneq ($(USE_EXTERNAL_LIBZ),true) |
|
2201 |
BUILD_LIBJLI_SRC_DIRS += $(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5 |
|
13702 | 2202 |
LIBJLI_CFLAGS += $(LIBZ_INCLUDE) |
13164 | 2203 |
BUILD_LIBJLI_FILES += \ |
2204 |
inflate.c \ |
|
2205 |
inftrees.c \ |
|
2206 |
inffast.c \ |
|
2207 |
zadler32.c \ |
|
2208 |
zcrc32.c \ |
|
2209 |
zutil.c |
|
2210 |
endif |
|
2211 |
||
2212 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
2213 |
LIBJLI_OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE) |
|
2214 |
else |
|
2215 |
LIBJLI_OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE)/jli |
|
2216 |
endif |
|
2217 |
||
2218 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJLI,\ |
|
2219 |
LIBRARY:=jli,\ |
|
2220 |
OUTPUT_DIR:=$(LIBJLI_OUTPUT_DIR),\ |
|
2221 |
SRC:=$(BUILD_LIBJLI_SRC_DIRS),\ |
|
2222 |
INCLUDE_FILES:=$(BUILD_LIBJLI_FILES),\ |
|
2223 |
LANG:=C,\ |
|
2224 |
OPTIMIZATION:=HIGH, \ |
|
13702 | 2225 |
CFLAGS:=$(LIBJLI_CFLAGS),\ |
13164 | 2226 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjli/mapfile-vers, \ |
2227 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2228 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2229 |
LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
2230 |
LDFLAGS_solaris:=$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
|
2231 |
LDFLAGS_macosx:=-framework Cocoa -framework Security -framework ApplicationServices,\ |
|
2232 |
LDFLAGS_SUFFIX_solaris:=$(LIBZ) $(LIBDL) -lc,\ |
|
2233 |
LDFLAGS_SUFFIX_linux:=$(LIBZ) $(LIBDL) -lc -lpthread,\ |
|
2234 |
LDFLAGS_SUFFIX_macosx:=$(LIBZ),\ |
|
13164 | 2235 |
LDFLAGS_SUFFIX_windows:=\ |
2236 |
-export:JLI_Launch \ |
|
2237 |
-export:JLI_ManifestIterate \ |
|
2238 |
-export:JLI_SetTraceLauncher \ |
|
2239 |
-export:JLI_ReportErrorMessage \ |
|
2240 |
-export:JLI_ReportErrorMessageSys \ |
|
2241 |
-export:JLI_ReportMessage \ |
|
2242 |
-export:JLI_ReportExceptionDescription \ |
|
13702 | 2243 |
-export:JLI_MemAlloc \ |
2244 |
-export:JLI_CmdToArgs \ |
|
2245 |
-export:JLI_GetStdArgc \ |
|
2246 |
-export:JLI_GetStdArgs \ |
|
13164 | 2247 |
advapi32.lib \ |
2248 |
comctl32.lib \ |
|
2249 |
user32.lib,\ |
|
13702 | 2250 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2251 |
RC_FLAGS:=$(RC_FLAGS) \ |
|
14231 | 2252 |
-D "JDK_FNAME=jli.dll" \ |
2253 |
-D "JDK_INTERNAL_NAME=jli" \ |
|
2254 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2255 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli,\ |
2256 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2257 |
|
2258 |
BUILD_LIBRARIES += $(BUILD_LIBJLI) |
|
2259 |
||
2260 |
# On windows, the static library has the same suffix as the import library created by |
|
2261 |
# with the shared library, so the static library is given a different name. No harm |
|
2262 |
# in doing it for all platform to reduce complexity. |
|
2263 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
2264 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJLI_STATIC,\ |
|
2265 |
STATIC_LIBRARY:=jli_static,\ |
|
2266 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs,\ |
|
2267 |
SRC:=$(BUILD_LIBJLI_SRC_DIRS),\ |
|
2268 |
INCLUDE_FILES:=$(BUILD_LIBJLI_FILES),\ |
|
2269 |
LANG:=C,\ |
|
2270 |
OPTIMIZATION:=HIGH, \ |
|
13702 | 2271 |
CFLAGS:=$(STATIC_LIBRARY_FLAGS) $(LIBJLI_CFLAGS),\ |
13164 | 2272 |
ARFLAGS:=$(ARFLAGS),\ |
2273 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli_static)) |
|
2274 |
||
2275 |
BUILD_LIBRARIES += $(BUILD_LIBJLI_STATIC) |
|
2276 |
||
2277 |
else ifeq ($(OPENJDK_TARGET_OS),macosx) |
|
2278 |
# |
|
2279 |
# On macosx they do partial (incremental) linking of libjli_static.a |
|
2280 |
# code it here...rather than add support to NativeCompilation |
|
2281 |
# as this is first time I see it |
|
2282 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJLI_STATIC,\ |
|
2283 |
LIBRARY:=jli_static, \ |
|
2284 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs,\ |
|
2285 |
SRC:=$(BUILD_LIBJLI_SRC_DIRS),\ |
|
2286 |
INCLUDE_FILES:=$(BUILD_LIBJLI_FILES),\ |
|
2287 |
LANG:=C,\ |
|
2288 |
OPTIMIZATION:=HIGH, \ |
|
13702 | 2289 |
CFLAGS:=$(CFLAGS_JDKLIB) $(LIBJLI_CFLAGS),\ |
13164 | 2290 |
LDFLAGS:=-nostdlib -r,\ |
2291 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli_static)) |
|
2292 |
||
2293 |
$(JDK_OUTPUTDIR)/objs/libjli_static.a : $(BUILD_LIBJLI_STATIC) |
|
2294 |
$(CP) -a $< $@ |
|
2295 |
||
2296 |
BUILD_LIBRARIES += $(JDK_OUTPUTDIR)/objs/libjli_static.a |
|
2297 |
endif |
|
2298 |
||
2299 |
########################################################################################## |
|
2300 |
||
14231 | 2301 |
ifndef OPENJDK |
13164 | 2302 |
ifeq ($(ENABLE_JFR), true) |
2303 |
||
2304 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJFR,\ |
|
2305 |
LIBRARY:=jfr,\ |
|
2306 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2307 |
SRC:=$(JDK_TOPDIR)/src/closed/share/native/oracle/jfr,\ |
|
2308 |
LANG:=C,\ |
|
2309 |
OPTIMIZATION:=LOW, \ |
|
2310 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
2311 |
-I$(JDK_TOPDIR)/src/closed/share/javavm/export, \ |
|
2312 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjfr/mapfile-vers, \ |
|
2313 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2314 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2315 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2316 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2317 |
-D "JDK_FNAME=jfr.dll" \ |
2318 |
-D "JDK_INTERNAL_NAME=jfr" \ |
|
2319 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2320 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjfr,\ |
2321 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2322 |
|
2323 |
BUILD_LIBRARIES += $(BUILD_LIBJFR) |
|
2324 |
||
2325 |
endif |
|
14231 | 2326 |
endif |
13164 | 2327 |
|
2328 |
########################################################################################## |
|
2329 |
||
2330 |
ifndef OPENJDK |
|
2331 |
||
2332 |
BUILD_LIBKCMS_EXCLUDE_FILES:= |
|
2333 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
2334 |
BUILD_LIBKCMS_EXCLUDE_FILES += ukcpmgr.c unixmem.c |
|
2335 |
else |
|
2336 |
BUILD_LIBKCMS_EXCLUDE_FILES += cmmdll.c registry.c spxffile.c sysinfo.c winmem.c wkcpmgr.c |
|
2337 |
endif |
|
2338 |
||
2339 |
BUILD_LIBKCMS_FLAGS:=$(CFLAGS_JDKLIB) |
|
2340 |
||
2341 |
ifeq ($(OPENJDK_TARGET_OS),solaris) |
|
2342 |
# This particular library uses a feature called PIC_CODE_SMALL (on solaris) |
|
2343 |
# implement it like this...since it's only used here |
|
2344 |
BUILD_LIBKCMS_FLAGS:=$(patsubst -KPIC,-Kpic,$(BUILD_LIBKCMS_FLAGS)) |
|
2345 |
else ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc) |
|
2346 |
BUILD_LIBKCMS_FLAGS:=$(patsubst -fPIC,-fpic,$(BUILD_LIBKCMS_FLAGS)) |
|
2347 |
endif |
|
2348 |
||
2349 |
$(eval $(call SetupNativeCompilation,BUILD_LIBKCMS,\ |
|
2350 |
LIBRARY:=kcms,\ |
|
2351 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2352 |
SRC:=$(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms,\ |
|
2353 |
LANG:=C,\ |
|
2354 |
EXCLUDE_FILES:=$(BUILD_LIBKCMS_EXCLUDE_FILES),\ |
|
2355 |
OPTIMIZATION:=LOW, \ |
|
2356 |
CFLAGS:=$(BUILD_LIBKCMS_FLAGS) \ |
|
2357 |
-DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST,\ |
|
2358 |
CFLAGS_linux:=-Wno-missing-field-initializers,\ |
|
2359 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libkcms/mapfile-vers, \ |
|
2360 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2361 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2362 |
LDFLAGS_SUFFIX_linux:=-lc -lpthread,\ |
13164 | 2363 |
LDFLAGS_SUFFIX_windows:=$(WIN_JAVA_LIB) advapi32.lib user32.lib version.lib, \ |
2364 |
LDFLAGS_SUFFIX:=-lm $(LDFLAGS_JDKLIB_SUFFIX),\ |
|
2365 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms/cmm.rc,\ |
|
13702 | 2366 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms/cmm.rc,\ |
2367 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2368 |
-D "JDK_FNAME=kcms.dll" \ |
2369 |
-D "JDK_INTERNAL_NAME=kcms" \ |
|
2370 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2371 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libkcms,\ |
2372 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2373 |
|
2374 |
$(BUILD_LIBKCMS) : $(BUILD_LIBJAVA) |
|
2375 |
||
2376 |
BUILD_LIBRARIES += $(BUILD_LIBKCMS) |
|
2377 |
||
2378 |
endif |
|
2379 |
||
2380 |
########################################################################################## |
|
2381 |
||
2382 |
ifndef OPENJDK |
|
2383 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 2384 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
13164 | 2385 |
|
2386 |
ifeq ($(shell if test "$(OS_VERSION_MAJOR)" -eq 5 -a "$(OS_VERSION_MINOR)" -le 10; then $(ECHO) ok; fi), ok) |
|
2387 |
||
2388 |
SUNWJDGA_MAPFILE:= |
|
13702 | 2389 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc) |
13164 | 2390 |
SUNWJDGA_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjdga/mapfile-vers |
2391 |
endif |
|
2392 |
||
2393 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNWJDGA, \ |
|
2394 |
LIBRARY:=sunwjdga,\ |
|
2395 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2396 |
SRC:=$(JDK_TOPDIR)/src/solaris/native/sun/jdga, \ |
|
2397 |
LANG:=C, \ |
|
2398 |
OPTIMIZATION:=LOW, \ |
|
2399 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
2400 |
-I$(JDK_TOPDIR)/src/share/javavm/export \ |
|
13702 | 2401 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/javavm/export \ |
13164 | 2402 |
-I$(OPENWIN_HOME)/include, \ |
2403 |
MAPFILE:=$(SUNWJDGA_MAPFILE), \ |
|
2404 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2405 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13702 | 2406 |
LDFLAGS_SUFFIX:=-L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -ldga -lX11 $(LIBDL) -lc, \ |
13164 | 2407 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunwjdga)) |
2408 |
||
2409 |
BUILD_LIBRARIES += $(BUILD_LIBSUNWJDGA) |
|
2410 |
||
2411 |
endif |
|
2412 |
endif |
|
2413 |
endif |
|
2414 |
endif |
|
2415 |
||
2416 |
########################################################################################## |
|
2417 |
||
2418 |
ifeq ($(BUILD_HEADLESS), true) |
|
2419 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
|
2420 |
||
2421 |
LIBAWT_HEADLESS_DIRS:=$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
2422 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
|
2423 |
$(JDK_TOPDIR)/src/solaris/native/sun/font \ |
|
2424 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt \ |
|
2425 |
$(JDK_TOPDIR)/src/solaris/native/sun/java2d/opengl \ |
|
2426 |
$(JDK_TOPDIR)/src/solaris/native/sun/java2d/x11 |
|
2427 |
||
2428 |
LIBAWT_HEADLESS_CFLAGS:=-DHEADLESS=true \ |
|
2429 |
-DX11_PATH=\"$(X11_PATH)\" -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \ |
|
2430 |
$(CUPS_CFLAGS) \ |
|
2431 |
$(X_CFLAGS) \ |
|
2432 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
13702 | 2433 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
13164 | 2434 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
2435 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
2436 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
2437 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
2438 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
13702 | 2439 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga \ |
13164 | 2440 |
$(foreach dir,$(LIBAWT_HEADLESS_DIRS),-I$(dir)) |
2441 |
||
2442 |
LIBAWT_HEADLESS_FILES:=\ |
|
2443 |
awt_Font.c \ |
|
2444 |
HeadlessToolkit.c \ |
|
2445 |
fontpath.c \ |
|
2446 |
VDrawingArea.c \ |
|
2447 |
X11Color.c \ |
|
2448 |
X11Renderer.c \ |
|
2449 |
X11PMBlitLoops.c \ |
|
2450 |
X11SurfaceData.c \ |
|
2451 |
X11FontScaler_md.c \ |
|
2452 |
X11TextRenderer_md.c \ |
|
2453 |
OGLBlitLoops.c \ |
|
2454 |
OGLBufImgOps.c \ |
|
2455 |
OGLContext.c \ |
|
2456 |
OGLFuncs.c \ |
|
2457 |
OGLMaskBlit.c \ |
|
2458 |
OGLMaskFill.c \ |
|
2459 |
OGLPaints.c \ |
|
2460 |
OGLRenderQueue.c \ |
|
2461 |
OGLRenderer.c \ |
|
2462 |
OGLSurfaceData.c \ |
|
2463 |
OGLTextRenderer.c \ |
|
2464 |
OGLVertexCache.c \ |
|
2465 |
GLXGraphicsConfig.c \ |
|
2466 |
GLXSurfaceData.c \ |
|
2467 |
AccelGlyphCache.c \ |
|
2468 |
CUPSfuncs.c |
|
2469 |
||
2470 |
LIBAWT_HEADLESS_REORDER:= |
|
2471 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 2472 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
2473 |
LIBAWT_HEADLESS_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt_headless/reorder-$(OPENJDK_TARGET_CPU) |
|
13164 | 2474 |
endif |
2475 |
endif |
|
2476 |
||
2477 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_HEADLESS,\ |
|
2478 |
LIBRARY:=awt_headless,\ |
|
2479 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2480 |
SRC:=$(LIBAWT_HEADLESS_DIRS),\ |
|
2481 |
INCLUDE_FILES:=$(LIBAWT_HEADLESS_FILES),\ |
|
2482 |
LANG:=C,\ |
|
2483 |
OPTIMIZATION:=LOW, \ |
|
2484 |
CFLAGS:=$(CFLAGS_JDKLIB) $(LIBAWT_HEADLESS_CFLAGS),\ |
|
2485 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt_headless/mapfile-vers, \ |
|
2486 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2487 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2488 |
LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
2489 |
LDFLAGS_solaris:=$(call SET_SHARED_LIBRARY_ORIGIN,/..) \ |
|
2490 |
-R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
2491 |
-R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR),\ |
|
2492 |
LDFLAGS_macosx:=$(call SET_SHARED_LIBRARY_ORIGIN).,\ |
|
13164 | 2493 |
REORDER:=$(LIBAWT_HEADLESS_REORDER), \ |
13702 | 2494 |
LDFLAGS_SUFFIX_linux:=-ljvm -lawt -lm $(LIBDL) -ljava,\ |
2495 |
LDFLAGS_SUFFIX_solaris:=$(LIBDL) -ljvm -lawt -lm -ljava $(LIBCXX), \ |
|
2496 |
LDFLAGS_SUFFIX_macosx:=-ljvm $(LIBCXX) -lawt $(LIBDL) -ljava, \ |
|
13164 | 2497 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_headless)) |
2498 |
||
2499 |
$(BUILD_LIBAWT_HEADLESS) : $(BUILD_LIBAWT) |
|
2500 |
||
2501 |
BUILD_LIBRARIES += $(BUILD_LIBAWT_HEADLESS) |
|
12892 | 2502 |
|
2503 |
endif |
|
2504 |
endif |
|
2505 |
||
2506 |
########################################################################################## |
|
2507 |
||
2508 |
ifndef BUILD_HEADLESS_ONLY |
|
13164 | 2509 |
LIBSPLASHSCREEN_DIRS:=\ |
12892 | 2510 |
$(JDK_TOPDIR)/src/share/native/sun/awt/giflib \ |
2511 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg \ |
|
2512 |
$(JDK_TOPDIR)/src/share/native/sun/awt/libpng \ |
|
2513 |
$(JDK_TOPDIR)/src/share/native/sun/awt/splashscreen \ |
|
13702 | 2514 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen |
13164 | 2515 |
|
2516 |
LIBSPLASHSCREEN_CFLAGS:=-DSPLASHSCREEN -DPNG_NO_MMX_CODE \ |
|
12892 | 2517 |
$(foreach dir,$(LIBSPLASHSCREEN_DIRS),-I$(dir)) |
2518 |
||
13164 | 2519 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
2520 |
LIBSPLASHSCREEN_CFLAGS:=-I$(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen \ |
|
12892 | 2521 |
$(LIBSPLASHSCREEN_CFLAGS) \ |
2522 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks |
|
2523 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX |
|
2524 |
LIBSPLASHSCREEN_CFLAGS += -I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp |
|
2525 |
||
13164 | 2526 |
LIBSPLASHSCREEN_java_awt_SplashScreen.c_CFLAGS:=-x objective-c -O0 |
2527 |
LIBSPLASHSCREEN_splashscreen_gfx_impl.c_CFLAGS:=-x objective-c -O0 |
|
2528 |
LIBSPLASHSCREEN_splashscreen_gif.c_CFLAGS:=-x objective-c -O0 |
|
2529 |
LIBSPLASHSCREEN_splashscreen_impl.c_CFLAGS:=-x objective-c -O0 |
|
2530 |
LIBSPLASHSCREEN_splashscreen_jpeg.c_CFLAGS:=-x objective-c -O0 |
|
2531 |
LIBSPLASHSCREEN_splashscreen_png.c_CFLAGS:=-x objective-c -O0 |
|
2532 |
LIBSPLASHSCREEN_splashscreen_sys.m_CFLAGS:=-O0 |
|
2533 |
||
2534 |
else ifneq ($(OPENJDK_TARGET_OS), windows) |
|
12892 | 2535 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_X11 -I$(OPENWIN_HOME)/include -I$(OPENWIN_HOME)/include/X11/extensions |
2536 |
else |
|
2537 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_WIN32 |
|
2538 |
endif |
|
2539 |
||
13164 | 2540 |
LIBSPLASHSCREEN_FILES:=\ |
12892 | 2541 |
java_awt_SplashScreen.c \ |
2542 |
splashscreen_gfx_impl.c \ |
|
2543 |
splashscreen_gif.c \ |
|
2544 |
splashscreen_impl.c \ |
|
2545 |
splashscreen_jpeg.c \ |
|
2546 |
splashscreen_png.c \ |
|
2547 |
png.c \ |
|
2548 |
pngerror.c \ |
|
2549 |
pngget.c \ |
|
2550 |
pngmem.c \ |
|
2551 |
pngpread.c \ |
|
2552 |
pngread.c \ |
|
2553 |
pngrio.c \ |
|
2554 |
pngrtran.c \ |
|
2555 |
pngrutil.c \ |
|
2556 |
pngset.c \ |
|
2557 |
pngtrans.c \ |
|
2558 |
pngwio.c \ |
|
2559 |
pngwrite.c \ |
|
2560 |
pngwtran.c \ |
|
2561 |
pngwutil.c \ |
|
2562 |
dgif_lib.c \ |
|
2563 |
gif_err.c \ |
|
2564 |
gifalloc.c \ |
|
2565 |
jcomapi.c \ |
|
2566 |
jdapimin.c \ |
|
2567 |
jdapistd.c \ |
|
2568 |
jdcoefct.c \ |
|
2569 |
jdcolor.c \ |
|
2570 |
jddctmgr.c \ |
|
2571 |
jdhuff.c \ |
|
2572 |
jdinput.c \ |
|
2573 |
jdmainct.c \ |
|
2574 |
jdmarker.c \ |
|
2575 |
jdmaster.c \ |
|
2576 |
jdmerge.c \ |
|
2577 |
jdphuff.c \ |
|
2578 |
jdpostct.c \ |
|
2579 |
jdsample.c \ |
|
2580 |
jerror.c \ |
|
2581 |
jidctflt.c \ |
|
2582 |
jidctfst.c \ |
|
2583 |
jidctint.c \ |
|
2584 |
jidctred.c \ |
|
2585 |
jmemmgr.c \ |
|
2586 |
jmemnobs.c \ |
|
2587 |
jquant1.c \ |
|
2588 |
jquant2.c \ |
|
2589 |
jutils.c \ |
|
2590 |
jcapimin.c \ |
|
2591 |
jcapistd.c \ |
|
2592 |
jccoefct.c \ |
|
2593 |
jccolor.c \ |
|
2594 |
jcdctmgr.c \ |
|
2595 |
jchuff.c \ |
|
2596 |
jcinit.c \ |
|
2597 |
jcmainct.c \ |
|
2598 |
jcmarker.c \ |
|
2599 |
jcmaster.c \ |
|
2600 |
jcparam.c \ |
|
2601 |
jcphuff.c \ |
|
2602 |
jcprepct.c \ |
|
2603 |
jcsample.c \ |
|
2604 |
jctrans.c \ |
|
2605 |
jdtrans.c \ |
|
2606 |
jfdctflt.c \ |
|
2607 |
jfdctfst.c \ |
|
2608 |
jfdctint.c |
|
2609 |
||
13164 | 2610 |
ifneq ($(OPENJDK_TARGET_OS), macosx) |
12892 | 2611 |
LIBSPLASHSCREEN_FILES += splashscreen_sys.c |
2612 |
else |
|
2613 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen |
|
2614 |
LIBSPLASHSCREEN_FILES += splashscreen_sys.m |
|
2615 |
endif |
|
2616 |
||
13164 | 2617 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX:= |
12892 | 2618 |
|
2619 |
ifneq ($(USE_EXTERNAL_LIBZ),true) |
|
2620 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5 |
|
2621 |
LIBSPLASHSCREEN_CFLAGS += $(LIBZ_INCLUDE) |
|
2622 |
LIBSPLASHSCREEN_FILES += \ |
|
2623 |
compress.c \ |
|
2624 |
deflate.c \ |
|
2625 |
gzclose.c \ |
|
2626 |
gzlib.c \ |
|
2627 |
gzread.c \ |
|
2628 |
gzwrite.c \ |
|
2629 |
infback.c \ |
|
2630 |
inffast.c \ |
|
2631 |
inflate.c \ |
|
2632 |
inftrees.c \ |
|
2633 |
trees.c \ |
|
2634 |
uncompr.c \ |
|
2635 |
zadler32.c \ |
|
2636 |
zcrc32.c \ |
|
2637 |
zutil.c |
|
2638 |
endif |
|
2639 |
||
13164 | 2640 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
12892 | 2641 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += $(LIBM) -lpthread -liconv -losxapp \ |
2642 |
-framework ApplicationServices \ |
|
2643 |
-framework Foundation \ |
|
2644 |
-framework Cocoa \ |
|
2645 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
2646 |
-framework JavaNativeFoundation |
|
13164 | 2647 |
else ifneq ($(OPENJDK_TARGET_OS), windows) |
13702 | 2648 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -lX11 -lXext $(LIBM) -lpthread |
13164 | 2649 |
else # OPENJDK_TARGET_OS |
14231 | 2650 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += kernel32.lib user32.lib gdi32.lib delayimp.lib -DELAYLOAD:user32.dll |
13164 | 2651 |
endif # OPENJDK_TARGET_OS |
12892 | 2652 |
|
2653 |
$(eval $(call SetupNativeCompilation,LIBSPLASHSCREEN,\ |
|
13164 | 2654 |
LIBRARY:=splashscreen,\ |
2655 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2656 |
SRC:=$(LIBSPLASHSCREEN_DIRS),\ |
13164 | 2657 |
INCLUDE_FILES:=$(LIBSPLASHSCREEN_FILES),\ |
12892 | 2658 |
LANG:=C,\ |
13164 | 2659 |
OPTIMIZATION:=LOW, \ |
2660 |
CFLAGS:=$(LIBSPLASHSCREEN_CFLAGS) $(CFLAGS_JDKLIB),\ |
|
2661 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libsplashscreen/mapfile-vers, \ |
|
2662 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
12892 | 2663 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
13164 | 2664 |
LDFLAGS_SUFFIX:=$(LIBSPLASHSCREEN_LDFLAGS_SUFFIX) $(LIBZ),\ |
13702 | 2665 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2666 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2667 |
-D "JDK_FNAME=splashscreen.dll" \ |
2668 |
-D "JDK_INTERNAL_NAME=splashscreen" \ |
|
2669 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2670 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsplashscreen,\ |
2671 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2672 |
|
2673 |
BUILD_LIBRARIES += $(LIBSPLASHSCREEN) |
|
2674 |
||
2675 |
ifeq ($(OPENJDK_TARGET_OS),macosx) |
|
2676 |
$(LIBSPLASHSCREEN) : $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)osxapp$(SHARED_LIBRARY_SUFFIX) |
|
12892 | 2677 |
endif |
2678 |
||
2679 |
endif |
|
2680 |
||
2681 |
########################################################################################## |
|
2682 |
||
2683 |
ifndef OPENJDK |
|
2684 |
||
13164 | 2685 |
LIBDCPR_SRC_DIRS:=\ |
12892 | 2686 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/doe \ |
2687 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/path \ |
|
2688 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/pr \ |
|
2689 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/util |
|
2690 |
||
13164 | 2691 |
LIBDCPR_CFLAGS:=$(foreach dir,$(LIBDCPR_SRC_DIRS),-I$(dir)) \ |
12892 | 2692 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe |
2693 |
||
2694 |
$(eval $(call SetupNativeCompilation,BUILD_LIBDCPR,\ |
|
13164 | 2695 |
LIBRARY:=dcpr,\ |
2696 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2697 |
SRC:=$(LIBDCPR_SRC_DIRS),\ |
2698 |
LANG:=C,\ |
|
13164 | 2699 |
OPTIMIZATION:=LOW, \ |
2700 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2701 |
$(LIBDCPR_CFLAGS), \ |
13164 | 2702 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libdcpr/mapfile-vers, \ |
13702 | 2703 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
12892 | 2704 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
13702 | 2705 |
LDFLAGS_SUFFIX:=$(LIBM) $(LDFLAGS_JDKLIB_SUFFIX),\ |
13164 | 2706 |
LDFLAGS_SUFFIX_posix:=-lm,\ |
13702 | 2707 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2708 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2709 |
-D "JDK_FNAME=dcpr.dll" \ |
2710 |
-D "JDK_INTERNAL_NAME=dcpr" \ |
|
2711 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2712 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libdcpr,\ |
2713 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2714 |
|
2715 |
$(BUILD_LIBDCPR) : $(BUILD_LIBJAVA) |
|
2716 |
||
2717 |
BUILD_LIBRARIES += $(BUILD_LIBDCPR) |
|
12892 | 2718 |
|
2719 |
endif |
|
2720 |
||
2721 |
########################################################################################## |
|
2722 |
||
2723 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2PCSC,\ |
|
13164 | 2724 |
LIBRARY:=j2pcsc,\ |
2725 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2726 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/smartcardio \ |
13702 | 2727 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio,\ |
12892 | 2728 |
LANG:=C,\ |
13164 | 2729 |
CFLAGS_posix:=-D__sun_jdk,\ |
2730 |
OPTIMIZATION:=LOW, \ |
|
2731 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2732 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/smartcardio \ |
13702 | 2733 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio\ |
2734 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio/MUSCLE,\ |
|
13164 | 2735 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2pcsc/mapfile-vers, \ |
12892 | 2736 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2737 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13164 | 2738 |
LDFLAGS_SUFFIX_posix:=$(LIBDL), \ |
2739 |
LDFLAGS_SUFFIX_windows:=winscard.lib,\ |
|
13702 | 2740 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2741 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2742 |
-D "JDK_FNAME=j2pcsc.dll" \ |
2743 |
-D "JDK_INTERNAL_NAME=j2pcsc" \ |
|
2744 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2745 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2pcsc,\ |
2746 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2747 |
|
2748 |
BUILD_LIBRARIES += $(BUILD_LIBJ2PCSC) |
|
12892 | 2749 |
|
2750 |
########################################################################################## |
|
2751 |
||
13164 | 2752 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
12892 | 2753 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2GSS,\ |
13164 | 2754 |
LIBRARY:=j2gss,\ |
2755 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2756 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \ |
13702 | 2757 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper,\ |
12892 | 2758 |
LANG:=C,\ |
13164 | 2759 |
OPTIMIZATION:=LOW, \ |
2760 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2761 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \ |
13702 | 2762 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper,\ |
13164 | 2763 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2gss/mapfile-vers, \ |
12892 | 2764 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2765 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13164 | 2766 |
LDFLAGS_SUFFIX:=$(LIBDL), \ |
2767 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2gss)) |
|
2768 |
||
2769 |
BUILD_LIBRARIES += $(BUILD_LIBJ2GSS) |
|
12892 | 2770 |
endif |
2771 |
||
2772 |
########################################################################################## |
|
2773 |
||
13164 | 2774 |
BUILD_LIBKRB5_NAME:= |
2775 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
2776 |
BUILD_LIBKRB5_NAME:=w2k_lsa_auth |
|
2777 |
BUILD_LIBKRB5_FILES:=NativeCreds.c WindowsDirectory.c |
|
13702 | 2778 |
BUILD_LIBKRB5_SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/krb5 |
14231 | 2779 |
BUILD_LIBKRB5_LIBS:=advapi32.lib Secur32.lib netapi32.lib kernel32.lib user32.lib \ |
2780 |
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib \ |
|
2781 |
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib |
|
13164 | 2782 |
else ifeq ($(OPENJDK_TARGET_OS), macosx) |
2783 |
BUILD_LIBKRB5_NAME:=osxkrb5 |
|
2784 |
BUILD_LIBKRB5_FILES:=nativeccache.c |
|
2785 |
BUILD_LIBKRB5_LIBS:=-framework Kerberos |
|
12892 | 2786 |
endif |
2787 |
||
2788 |
ifneq ($(BUILD_LIBKRB5_NAME),) |
|
2789 |
$(eval $(call SetupNativeCompilation,BUILD_LIBKRB5,\ |
|
13164 | 2790 |
LIBRARY:=$(BUILD_LIBKRB5_NAME),\ |
2791 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2792 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/krb5 \ |
2793 |
$(BUILD_LIBKRB5_SRC) ,\ |
|
13164 | 2794 |
INCLUDE_FILES:=$(BUILD_LIBKRB5_FILES),\ |
12892 | 2795 |
LANG:=C,\ |
13164 | 2796 |
OPTIMIZATION:=LOW, \ |
2797 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2798 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/krb5 \ |
13702 | 2799 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/krb5 ,\ |
12892 | 2800 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2801 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13164 | 2802 |
LDFLAGS_SUFFIX:=$(BUILD_LIBKRB5_LIBS) ,\ |
13702 | 2803 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2804 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2805 |
-D "JDK_FNAME=$(BUILD_LIBKRB5_NAME).dll" \ |
2806 |
-D "JDK_INTERNAL_NAME=$(BUILD_LIBKRB5_NAME)" \ |
|
2807 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2808 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libkrb5,\ |
2809 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2810 |
|
2811 |
BUILD_LIBRARIES += $(BUILD_LIBKRB5) |
|
12892 | 2812 |
endif |
2813 |
||
2814 |
########################################################################################## |
|
2815 |
||
13164 | 2816 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
12892 | 2817 |
|
2818 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNMSCAPI,\ |
|
13164 | 2819 |
LIBRARY:=sunmscapi,\ |
2820 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
14231 | 2821 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/mscapi,\ |
13164 | 2822 |
INCLUDE_FILES:=security.cpp, \ |
12892 | 2823 |
LANG:=C++,\ |
13164 | 2824 |
OPTIMIZATION:=LOW, \ |
2825 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
13702 | 2826 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/mscapi ,\ |
2827 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
|
12892 | 2828 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
13164 | 2829 |
LDFLAGS_SUFFIX:=Crypt32.Lib advapi32.lib,\ |
13702 | 2830 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2831 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2832 |
-D "JDK_FNAME=sunmscapi.dll" \ |
2833 |
-D "JDK_INTERNAL_NAME=sunmscapi" \ |
|
2834 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2835 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunmscapi,\ |
2836 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2837 |
|
2838 |
BUILD_LIBRARIES += $(BUILD_LIBSUNMSCAPI) |
|
12892 | 2839 |
endif |
2840 |
||
2841 |
########################################################################################## |
|
2842 |
||
2843 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2PKCS11,\ |
|
13164 | 2844 |
LIBRARY:=j2pkcs11,\ |
2845 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2846 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11 \ |
13702 | 2847 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11 \ |
12892 | 2848 |
$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11/wrapper \ |
13702 | 2849 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11/wrapper,\ |
12892 | 2850 |
LANG:=C,\ |
13164 | 2851 |
OPTIMIZATION:=LOW, \ |
2852 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2853 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11 \ |
13702 | 2854 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11 \ |
12892 | 2855 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11/wrapper \ |
13702 | 2856 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11/wrapper,\ |
13164 | 2857 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2pkcs11/mapfile-vers, \ |
12892 | 2858 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2859 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13164 | 2860 |
LDFLAGS_SUFFIX_posix:=$(LIBDL), \ |
13702 | 2861 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2862 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2863 |
-D "JDK_FNAME=j2pkcs11.dll" \ |
2864 |
-D "JDK_INTERNAL_NAME=j2pkcs11" \ |
|
2865 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2866 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2pkcs11,\ |
2867 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2868 |
|
2869 |
BUILD_LIBRARIES += $(BUILD_LIBJ2PKCS11) |
|
12892 | 2870 |
|
2871 |
########################################################################################## |
|
2872 |
||
2873 |
ifndef DISABLE_INTREE_EC |
|
2874 |
# |
|
2875 |
# TODO Set DISABLE_INTREE_EC in configure if src/share/native/sun/security/ec/impl |
|
2876 |
# is not present |
|
2877 |
# |
|
13164 | 2878 |
BUILD_LIBSUNEC_FLAGS:= -I$(JDK_TOPDIR)/src/share/native/sun/security/ec \ |
2879 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/ec/impl |
|
2880 |
||
2881 |
# |
|
2882 |
# On sol-sparc...all libraries are compiled with -xregs=no%appl |
|
2883 |
# (set in CFLAGS_REQUIRED_sparc) |
|
2884 |
# |
|
2885 |
# except!!! libsunec.so |
|
2886 |
# |
|
2887 |
ECC_JNI_SOLSPARC_FILTER:= |
|
2888 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc) |
|
2889 |
ECC_JNI_SOLSPARC_FILTER:=-xregs=no%appl |
|
2890 |
endif |
|
12892 | 2891 |
|
2892 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNEC,\ |
|
13164 | 2893 |
LIBRARY:=sunec,\ |
2894 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2895 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/ec \ |
2896 |
$(JDK_TOPDIR)/src/share/native/sun/security/ec/impl, \ |
|
13164 | 2897 |
LANG:=C++, \ |
2898 |
OPTIMIZATION:=LOW, \ |
|
2899 |
CFLAGS:=$(filter-out $(ECC_JNI_SOLSPARC_FILTER), $(CFLAGS_JDKLIB))\ |
|
2900 |
$(BUILD_LIBSUNEC_FLAGS) \ |
|
2901 |
-DMP_API_COMPATIBLE -DNSS_ECC_MORE_THAN_SUITE_B,\ |
|
2902 |
CXXFLAGS:=$(filter-out $(ECC_JNI_SOLSPARC_FILTER), $(CXXFLAGS_JDKLIB)) \ |
|
2903 |
$(BUILD_LIBSUNEC_FLAGS),\ |
|
2904 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libsunec/mapfile-vers, \ |
|
13702 | 2905 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK),\ |
2906 |
LDFLAGS_macosx:=$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13164 | 2907 |
LDFLAGS_SUFFIX:=$(LIBCXX),\ |
13702 | 2908 |
LDFLAGS_SUFFIX_linux:=-lc ,\ |
13164 | 2909 |
LDFLAGS_SUFFIX_solaris:=-lc ,\ |
13702 | 2910 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2911 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2912 |
-D "JDK_FNAME=sunec.dll" \ |
2913 |
-D "JDK_INTERNAL_NAME=sunec" \ |
|
2914 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2915 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunec,\ |
2916 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2917 |
|
2918 |
BUILD_LIBRARIES += $(BUILD_LIBSUNEC) |
|
12892 | 2919 |
endif |
2920 |
||
2921 |
########################################################################################## |
|
2922 |
||
13164 | 2923 |
LIBJSOUND_SRC_DIRS:=\ |
12892 | 2924 |
$(JDK_TOPDIR)/src/share/native/com/sun/media/sound \ |
13702 | 2925 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/media/sound |
13164 | 2926 |
|
2927 |
LIBJSOUND_SRC_FILES:=Utilities.c Platform.c |
|
2928 |
||
2929 |
LIBJSOUND_LANG:=C |
|
2930 |
LIBJSOUND_CFLAGS:=$(foreach dir,$(LIBJSOUND_SRC_DIRS),-I$(dir)) |
|
2931 |
||
2932 |
EXTRA_SOUND_JNI_LIBS:= |
|
2933 |
||
2934 |
LIBJSOUND_MIDIFILES:=\ |
|
12892 | 2935 |
MidiInDevice.c \ |
2936 |
MidiInDeviceProvider.c \ |
|
2937 |
MidiOutDevice.c \ |
|
2938 |
MidiOutDeviceProvider.c \ |
|
2939 |
PlatformMidi.c |
|
2940 |
||
2941 |
# files needed for ports |
|
13164 | 2942 |
LIBJSOUND_PORTFILES:=\ |
12892 | 2943 |
PortMixerProvider.c \ |
2944 |
PortMixer.c |
|
2945 |
||
2946 |
# files needed for direct audio |
|
13164 | 2947 |
LIBJSOUND_DAUDIOFILES:=\ |
12892 | 2948 |
DirectAudioDeviceProvider.c \ |
2949 |
DirectAudioDevice.c |
|
2950 |
||
13164 | 2951 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
12892 | 2952 |
EXTRA_SOUND_JNI_LIBS += jsoundds |
2953 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_WINDOWS \ |
|
2954 |
-DUSE_PLATFORM_MIDI_OUT=TRUE \ |
|
2955 |
-DUSE_PLATFORM_MIDI_IN=TRUE \ |
|
2956 |
-DUSE_PORTS=TRUE |
|
2957 |
LIBJSOUND_SRC_FILES += \ |
|
2958 |
PLATFORM_API_WinOS_MidiIn.cpp \ |
|
2959 |
PLATFORM_API_WinOS_MidiOut.c \ |
|
2960 |
PLATFORM_API_WinOS_Util.c \ |
|
2961 |
PLATFORM_API_WinOS_Ports.c |
|
2962 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES) |
|
2963 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES) |
|
13164 | 2964 |
endif # OPENJDK_TARGET_OS windows |
2965 |
||
2966 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
12892 | 2967 |
EXTRA_SOUND_JNI_LIBS += jsoundalsa |
2968 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_LINUX |
|
13164 | 2969 |
endif # OPENJDK_TARGET_OS linux |
2970 |
||
2971 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
2972 |
LIBJSOUND_LANG:=C++ |
|
12892 | 2973 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_MACOSX \ |
2974 |
-DUSE_PORTS=TRUE \ |
|
2975 |
-DUSE_DAUDIO=TRUE \ |
|
2976 |
-DUSE_PLATFORM_MIDI_OUT=TRUE \ |
|
2977 |
-DUSE_PLATFORM_MIDI_IN=TRUE |
|
2978 |
LIBJSOUND_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/native/com/sun/media/sound |
|
2979 |
LIBJSOUND_SRC_FILES += \ |
|
2980 |
PLATFORM_API_MacOSX_Utils.cpp \ |
|
2981 |
PLATFORM_API_MacOSX_PCM.cpp \ |
|
2982 |
PLATFORM_API_MacOSX_Ports.cpp \ |
|
2983 |
PLATFORM_API_MacOSX_MidiIn.c \ |
|
2984 |
PLATFORM_API_MacOSX_MidiOut.c \ |
|
2985 |
PLATFORM_API_MacOSX_MidiUtils.c |
|
2986 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES) |
|
2987 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES) |
|
2988 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES) |
|
13164 | 2989 |
endif # OPENJDK_TARGET_OS macosx |
2990 |
||
2991 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
12892 | 2992 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_SOLARIS \ |
2993 |
-DUSE_PORTS=TRUE \ |
|
2994 |
-DUSE_DAUDIO=TRUE |
|
2995 |
LIBJSOUND_SRC_FILES += \ |
|
2996 |
PLATFORM_API_SolarisOS_Utils.c \ |
|
2997 |
PLATFORM_API_SolarisOS_Ports.c \ |
|
2998 |
PLATFORM_API_SolarisOS_PCM.c |
|
2999 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES) |
|
3000 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES) |
|
3001 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES) |
|
13164 | 3002 |
endif # OPENJDK_TARGET_OS solaris |
12892 | 3003 |
|
3004 |
||
3005 |
ifeq ($(JVM_VARIANT_ZERO), true) |
|
3006 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_ZERO |
|
3007 |
else |
|
13702 | 3008 |
ifeq ($(OPENJDK_TARGET_CPU), x86) |
12892 | 3009 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_I586 |
13702 | 3010 |
endif |
3011 |
||
3012 |
ifeq ($(OPENJDK_TARGET_CPU), sparc) |
|
12892 | 3013 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_SPARC |
13702 | 3014 |
endif |
3015 |
||
3016 |
ifeq ($(OPENJDK_TARGET_CPU), sparcv9) |
|
12892 | 3017 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_SPARCV9 |
13702 | 3018 |
endif |
3019 |
||
3020 |
ifeq ($(OPENJDK_TARGET_CPU), x86_64) |
|
12892 | 3021 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_AMD64 |
13702 | 3022 |
endif |
3023 |
||
3024 |
ifeq ($(OPENJDK_TARGET_CPU), arm) |
|
12892 | 3025 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_ARM |
13702 | 3026 |
endif |
3027 |
||
3028 |
ifeq ($(OPENJDK_TARGET_CPU), ppc) |
|
12892 | 3029 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_PPC |
13702 | 3030 |
endif |
12892 | 3031 |
endif |
3032 |
||
3033 |
LIBJSOUND_CFLAGS += -DEXTRA_SOUND_JNI_LIBS='"$(EXTRA_SOUND_JNI_LIBS)"' |
|
3034 |
||
3035 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUND,\ |
|
13164 | 3036 |
LIBRARY:=jsound,\ |
3037 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3038 |
SRC:=$(LIBJSOUND_SRC_DIRS),\ |
13164 | 3039 |
INCLUDE_FILES:=$(LIBJSOUND_SRC_FILES),\ |
12892 | 3040 |
LANG:=$(LIBJSOUND_LANG),\ |
13164 | 3041 |
OPTIMIZATION:=LOW, \ |
13702 | 3042 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
3043 |
$(LIBJSOUND_CFLAGS), \ |
|
13164 | 3044 |
CXXFLAGS:=$(CXXFLAGS_JDKLIB) $(LIBJSOUND_CFLAGS), \ |
3045 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjsound/mapfile-vers, \ |
|
12892 | 3046 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
3047 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 3048 |
LDFLAGS_macosx:=-framework CoreAudio -framework CoreFoundation \ |
3049 |
-framework CoreServices -framework AudioUnit $(LIBCXX) \ |
|
3050 |
-framework CoreMIDI -framework AudioToolbox,\ |
|
13164 | 3051 |
LDFLAGS_windows:=$(WIN_JAVA_LIB) advapi32.lib winmm.lib,\ |
14231 | 3052 |
LDFLAGS_SUFFIX_posix:=-ljava -ljvm,\ |
12892 | 3053 |
LDFLAGS_SUFFIX_solaris:=-lc ,\ |
13702 | 3054 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
3055 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 3056 |
-D "JDK_FNAME=jsound.dll" \ |
3057 |
-D "JDK_INTERNAL_NAME=jsound" \ |
|
3058 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 3059 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsound,\ |
3060 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 3061 |
|
3062 |
$(BUILD_LIBJSOUND) : $(BUILD_LIBJAVA) |
|
3063 |
||
3064 |
BUILD_LIBRARIES += $(BUILD_LIBJSOUND) |
|
12892 | 3065 |
|
3066 |
########################################################################################## |
|
3067 |
||
3068 |
ifneq ($(filter jsoundalsa, $(EXTRA_SOUND_JNI_LIBS)),) |
|
3069 |
||
3070 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDALSA,\ |
|
13164 | 3071 |
LIBRARY:=jsoundalsa,\ |
3072 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3073 |
SRC:=$(LIBJSOUND_SRC_DIRS),\ |
13164 | 3074 |
INCLUDE_FILES:=Utilities.c $(LIBJSOUND_MIDIFILES) $(LIBJSOUND_PORTFILES) \ |
12892 | 3075 |
$(LIBJSOUND_DAUDIOFILES) \ |
3076 |
PLATFORM_API_LinuxOS_ALSA_CommonUtils.c \ |
|
3077 |
PLATFORM_API_LinuxOS_ALSA_PCM.c \ |
|
3078 |
PLATFORM_API_LinuxOS_ALSA_PCMUtils.c \ |
|
3079 |
PLATFORM_API_LinuxOS_ALSA_MidiIn.c \ |
|
3080 |
PLATFORM_API_LinuxOS_ALSA_MidiOut.c \ |
|
3081 |
PLATFORM_API_LinuxOS_ALSA_MidiUtils.c \ |
|
3082 |
PLATFORM_API_LinuxOS_ALSA_Ports.c,\ |
|
13164 | 3083 |
LANG:=C,\ |
3084 |
OPTIMIZATION:=LOW, \ |
|
3085 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 3086 |
$(LIBJSOUND_CFLAGS) \ |
3087 |
-DUSE_DAUDIO=TRUE \ |
|
3088 |
-DUSE_PORTS=TRUE \ |
|
3089 |
-DUSE_PLATFORM_MIDI_OUT=TRUE \ |
|
3090 |
-DUSE_PLATFORM_MIDI_IN=TRUE, \ |
|
13164 | 3091 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjsoundalsa/mapfile-vers, \ |
12892 | 3092 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
3093 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 3094 |
LDFLAGS_SUFFIX:=-lasound -ljava -ljvm,\ |
13164 | 3095 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsoundalsa)) |
3096 |
||
3097 |
$(BUILD_LIBJSOUNDALSA) : $(BUILD_LIBJAVA) |
|
3098 |
||
3099 |
BUILD_LIBRARIES += $(BUILD_LIBJSOUNDALSA) |
|
12892 | 3100 |
|
3101 |
endif |
|
3102 |
||
3103 |
########################################################################################## |
|
3104 |
||
3105 |
ifneq ($(filter jsoundds, $(EXTRA_SOUND_JNI_LIBS)),) |
|
3106 |
||
3107 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDDS,\ |
|
13164 | 3108 |
LIBRARY:=jsoundds,\ |
3109 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3110 |
SRC:=$(LIBJSOUND_SRC_DIRS),\ |
13164 | 3111 |
INCLUDE_FILES:=Utilities.c $(LIBJSOUND_DAUDIOFILES) \ |
12892 | 3112 |
PLATFORM_API_WinOS_DirectSound.cpp, \ |
13164 | 3113 |
LANG:=C++,\ |
3114 |
OPTIMIZATION:=LOW, \ |
|
3115 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 3116 |
$(LIBJSOUND_CFLAGS) \ |
3117 |
-DUSE_DAUDIO=TRUE, \ |
|
13702 | 3118 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
12892 | 3119 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
3120 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX) dsound.lib winmm.lib user32.lib ole32.lib,\ |
|
13702 | 3121 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
3122 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 3123 |
-D "JDK_FNAME=jsoundds.dll" \ |
3124 |
-D "JDK_INTERNAL_NAME=jsoundds" \ |
|
3125 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 3126 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsoundds,\ |
3127 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 3128 |
|
3129 |
$(BUILD_LIBJSOUNDDS) : $(BUILD_LIBJAVA) |
|
3130 |
||
3131 |
BUILD_LIBRARIES += $(BUILD_LIBJSOUNDDS) |
|
12892 | 3132 |
|
3133 |
endif |
|
3134 |
||
3135 |
########################################################################################## |
|
3136 |
||
13164 | 3137 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
12892 | 3138 |
ifndef OPENJDK |
3139 |
||
3140 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2UCRYPTO,\ |
|
13164 | 3141 |
LIBRARY:=j2ucrypto,\ |
3142 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3143 |
SRC:=$(JDK_TOPDIR)/src/closed/solaris/native/com/oracle/security/ucrypto,\ |
13164 | 3144 |
LANG:=C,\ |
3145 |
OPTIMIZATION:=LOW, \ |
|
3146 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 3147 |
-I$(JDK_TOPDIR)/src/closed/solaris/native/com/oracle/security/ucrypto ,\ |
13164 | 3148 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2ucrypto/mapfile-vers, \ |
13702 | 3149 |
LDFLAGS:=$(LDFLAGS_JDKLIB),\ |
12892 | 3150 |
LDFLAGS_SUFFIX:=$(LIBDL),\ |
13164 | 3151 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2ucrypto)) |
3152 |
||
3153 |
$(BUILD_LIBJ2UCRYPTO) : $(BUILD_LIBJAVA) |
|
3154 |
||
3155 |
BUILD_LIBRARIES += $(BUILD_LIBJ2UCRYPTO) |
|
12892 | 3156 |
|
3157 |
endif |
|
3158 |
endif |
|
3159 |
||
3160 |
########################################################################################## |
|
3161 |
||
13164 | 3162 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
3163 |
||
3164 |
LIBAPPLESCRIPTENGINE_FILES:=\ |
|
12892 | 3165 |
AppleScriptEngine.m \ |
3166 |
AppleScriptExecutionContext.m \ |
|
3167 |
AS_NS_ConversionUtils.m \ |
|
3168 |
NS_Java_ConversionUtils.m |
|
3169 |
||
3170 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAPPLESCRIPTENGINE,\ |
|
13164 | 3171 |
LIBRARY:=AppleScriptEngine,\ |
3172 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3173 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/apple/applescript,\ |
13164 | 3174 |
LANG:=C,\ |
12892 | 3175 |
INCLUDE_FILES:=$(LIBAPPLESCRIPTENGINE_FILES),\ |
13164 | 3176 |
OPTIMIZATION:=LOW, \ |
3177 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 3178 |
-I$(JDK_TOPDIR)/src/macosx/native/apple/applescript \ |
3179 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3180 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks, \ |
|
3181 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
3182 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13702 | 3183 |
LDFLAGS_SUFFIX:=-framework Cocoa \ |
3184 |
-framework Carbon \ |
|
3185 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3186 |
-framework JavaNativeFoundation \ |
|
3187 |
$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
13164 | 3188 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libAppleScriptEngine)) |
3189 |
||
3190 |
$(BUILD_LIBAPPLESCRIPTENGINE) : $(BUILD_LIBJAVA) |
|
3191 |
||
3192 |
BUILD_LIBRARIES += $(BUILD_LIBAPPLESCRIPTENGINE) |
|
12892 | 3193 |
|
3194 |
endif |
|
3195 |
||
3196 |
########################################################################################## |
|
3197 |
||
13164 | 3198 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
3199 |
||
3200 |
LIBOSXAPP_FILES:=\ |
|
12892 | 3201 |
NSApplicationAWT.m \ |
3202 |
QueuingApplicationDelegate.m \ |
|
3203 |
PropertiesUtilities.m \ |
|
3204 |
ThreadUtilities.m |
|
3205 |
||
3206 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSXAPP,\ |
|
13164 | 3207 |
LIBRARY:=osxapp,\ |
3208 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3209 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/sun/osxapp,\ |
13164 | 3210 |
LANG:=C,\ |
12892 | 3211 |
INCLUDE_FILES:=$(LIBOSXAPP_FILES),\ |
13164 | 3212 |
OPTIMIZATION:=LOW, \ |
3213 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 3214 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
14231 | 3215 |
-I$(JDK_OUTPUTDIR)/gensrc/sun/osxapp \ |
12892 | 3216 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
3217 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks,\ |
|
3218 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
3219 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13164 | 3220 |
LDFLAGS_SUFFIX_macosx:=\ |
12892 | 3221 |
-framework Accelerate \ |
3222 |
-framework ApplicationServices \ |
|
3223 |
-framework AudioToolbox \ |
|
3224 |
-framework Carbon \ |
|
3225 |
-framework Cocoa \ |
|
3226 |
-framework Security \ |
|
3227 |
-framework ExceptionHandling \ |
|
3228 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3229 |
-framework JavaNativeFoundation \ |
|
3230 |
-framework JavaRuntimeSupport \ |
|
3231 |
-framework OpenGL \ |
|
3232 |
-framework IOSurface \ |
|
3233 |
-framework QuartzCore, \ |
|
13164 | 3234 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosxapp)) |
3235 |
||
3236 |
BUILD_LIBRARIES += $(BUILD_LIBOSXAPP) |
|
12892 | 3237 |
|
3238 |
endif |
|
3239 |
||
3240 |
########################################################################################## |
|
3241 |
||
13164 | 3242 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
3243 |
||
3244 |
LIBOSX_FILES:=\ |
|
12892 | 3245 |
Dispatch.m \ |
3246 |
CFileManager.m \ |
|
3247 |
KeystoreImpl.m \ |
|
3248 |
JavaAppLauncher.m \ |
|
3249 |
MacOSXPreferencesFile.m \ |
|
3250 |
SCDynamicStoreConfig.m |
|
3251 |
||
13164 | 3252 |
LIBOSX_DIRS:=\ |
12892 | 3253 |
$(JDK_TOPDIR)/src/macosx/native/com/apple/concurrent \ |
3254 |
$(JDK_TOPDIR)/src/macosx/native/java/util \ |
|
3255 |
$(JDK_TOPDIR)/src/macosx/native/com/apple/eio \ |
|
3256 |
$(JDK_TOPDIR)/src/macosx/native/apple/security \ |
|
3257 |
$(JDK_TOPDIR)/src/macosx/native/apple/launcher |
|
3258 |
||
3259 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSX,\ |
|
13164 | 3260 |
LIBRARY:=osx,\ |
3261 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3262 |
SRC:=$(LIBOSX_DIRS),\ |
13164 | 3263 |
LANG:=C,\ |
12892 | 3264 |
INCLUDE_FILES:=$(LIBOSX_FILES),\ |
13164 | 3265 |
OPTIMIZATION:=LOW, \ |
3266 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 3267 |
$(foreach dir,$(LIBOSX_DIRS),-I$(dir)) \ |
3268 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
|
3269 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3270 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks,\ |
|
3271 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
3272 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13164 | 3273 |
LDFLAGS_SUFFIX_macosx:=\ |
12892 | 3274 |
-losxapp \ |
3275 |
-framework Cocoa \ |
|
3276 |
-framework ApplicationServices \ |
|
3277 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3278 |
-framework JavaNativeFoundation \ |
|
3279 |
-framework JavaRuntimeSupport \ |
|
3280 |
-framework Security \ |
|
3281 |
-framework SystemConfiguration \ |
|
3282 |
$(LDFLAGS_JDKLIB_SUFFIX), \ |
|
13164 | 3283 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosx)) |
3284 |
||
3285 |
BUILD_LIBRARIES += $(BUILD_LIBOSX) |
|
3286 |
||
3287 |
$(BUILD_LIBOSX) : $(BUILD_LIBOSXAPP) |
|
3288 |
||
3289 |
$(BUILD_LIBOSX) : $(BUILD_LIBJAVA) |
|
12892 | 3290 |
|
3291 |
endif |
|
3292 |
||
3293 |
########################################################################################## |
|
3294 |
||
13164 | 3295 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
3296 |
||
3297 |
LIBAWT_LWAWT_FILES:=\ |
|
12892 | 3298 |
awt.m \ |
3299 |
ApplicationDelegate.m \ |
|
3300 |
CFRetainedResource.m \ |
|
3301 |
CGLGraphicsConfig.m \ |
|
3302 |
CGLSurfaceData.m \ |
|
3303 |
CGLLayer.m \ |
|
3304 |
CGraphicsConfig.m \ |
|
3305 |
CGraphicsDevice.m \ |
|
3306 |
CGraphicsEnv.m \ |
|
3307 |
CCharToGlyphMapper.m \ |
|
3308 |
CSystemColors.m \ |
|
3309 |
AWTFont.m \ |
|
3310 |
CGGlyphOutlines.m \ |
|
3311 |
CGGlyphImages.m \ |
|
3312 |
CoreTextSupport.m \ |
|
3313 |
AWTStrike.m \ |
|
3314 |
InitIDs.m \ |
|
3315 |
AWTEvent.m \ |
|
3316 |
AWTView.m \ |
|
3317 |
AWTWindow.m \ |
|
3318 |
AWTSurfaceLayers.m \ |
|
3319 |
CCursorManager.m \ |
|
3320 |
CClipboard.m \ |
|
3321 |
CDataTransferer.m \ |
|
3322 |
CDragSource.m \ |
|
3323 |
CDragSourceContextPeer.m \ |
|
3324 |
CDropTarget.m \ |
|
3325 |
CDropTargetContextPeer.m \ |
|
3326 |
CInputMethod.m \ |
|
3327 |
CDesktopPeer.m \ |
|
3328 |
OSVersion.m \ |
|
3329 |
DnDUtilities.m \ |
|
3330 |
CFileDialog.m \ |
|
3331 |
CImage.m \ |
|
3332 |
CMenu.m \ |
|
3333 |
CMenuBar.m \ |
|
3334 |
CMenuComponent.m \ |
|
3335 |
CMenuItem.m \ |
|
3336 |
CPopupMenu.m \ |
|
3337 |
CRobot.m \ |
|
3338 |
CTrayIcon.m \ |
|
3339 |
CWrapper.m \ |
|
3340 |
JavaAccessibilityAction.m \ |
|
3341 |
JavaAccessibilityUtilities.m \ |
|
3342 |
JavaComponentAccessibility.m \ |
|
3343 |
JavaTextAccessibility.m \ |
|
3344 |
LWCToolkit.m \ |
|
3345 |
GeomUtilities.m \ |
|
3346 |
CPrinterJob.m \ |
|
3347 |
PrintModel.m \ |
|
3348 |
PrinterSurfaceData.m \ |
|
3349 |
PrinterView.m \ |
|
3350 |
QuartzSurfaceData.m \ |
|
3351 |
QuartzRenderer.m \ |
|
3352 |
CTextPipe.m \ |
|
3353 |
ImageSurfaceData.m \ |
|
3354 |
awt_DrawingSurface.m \ |
|
3355 |
\ |
|
3356 |
OGLBlitLoops.c \ |
|
3357 |
OGLBufImgOps.c \ |
|
3358 |
OGLContext.c \ |
|
3359 |
OGLFuncs.c \ |
|
3360 |
OGLMaskBlit.c \ |
|
3361 |
OGLMaskFill.c \ |
|
3362 |
OGLPaints.c \ |
|
3363 |
OGLRenderQueue.c \ |
|
3364 |
OGLRenderer.c \ |
|
3365 |
OGLSurfaceData.c \ |
|
3366 |
OGLTextRenderer.c \ |
|
3367 |
OGLVertexCache.c \ |
|
3368 |
AccelGlyphCache.c \ |
|
3369 |
CUPSfuncs.c |
|
3370 |
||
3371 |
||
13164 | 3372 |
LIBAWT_LWAWT_DIRS:=\ |
12892 | 3373 |
$(JDK_TOPDIR)/src/macosx/native/sun/awt \ |
3374 |
$(JDK_TOPDIR)/src/macosx/native/sun/font \ |
|
3375 |
$(JDK_TOPDIR)/src/macosx/native/sun/java2d/opengl \ |
|
3376 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt \ |
|
3377 |
$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
3378 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
|
3379 |
||
3380 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_LWAWT,\ |
|
13164 | 3381 |
LIBRARY:=awt_lwawt,\ |
3382 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3383 |
SRC:=$(LIBAWT_LWAWT_DIRS),\ |
13164 | 3384 |
LANG:=C,\ |
12892 | 3385 |
INCLUDE_FILES:=$(LIBAWT_LWAWT_FILES),\ |
13164 | 3386 |
OPTIMIZATION:=LOW, \ |
3387 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
14233
18fda1299ea9
8001891: build-infra: Adding X_CFLAGS and X_LIBS to lwawt and sizer compilation
ohrstrom
parents:
14231
diff
changeset
|
3388 |
$(X_CFLAGS) \ |
18fda1299ea9
8001891: build-infra: Adding X_CFLAGS and X_LIBS to lwawt and sizer compilation
ohrstrom
parents:
14231
diff
changeset
|
3389 |
$(X_LIBS) \ |
12892 | 3390 |
$(foreach dir,$(LIBAWT_LWAWT_DIRS),-I$(dir)) \ |
3391 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
|
3392 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
3393 |
-I$(JDK_TOPDIR)/src/solaris/native/sun/java2d \ |
|
3394 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
3395 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
3396 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
|
3397 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
3398 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
3399 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3400 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks,\ |
|
3401 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
3402 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13702 | 3403 |
LDFLAGS_SUFFIX_macosx:=-lawt -lmlib_image -losxapp -ljvm $(LIBM) \ |
3404 |
-framework Accelerate \ |
|
3405 |
-framework ApplicationServices \ |
|
3406 |
-framework AudioToolbox \ |
|
3407 |
-framework Carbon \ |
|
3408 |
-framework Cocoa \ |
|
3409 |
-framework Security \ |
|
3410 |
-framework ExceptionHandling \ |
|
3411 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3412 |
-framework JavaNativeFoundation \ |
|
3413 |
-framework JavaRuntimeSupport \ |
|
3414 |
-framework OpenGL \ |
|
3415 |
-framework QuartzCore -ljava,\ |
|
13164 | 3416 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_lwawt)) |
3417 |
||
3418 |
BUILD_LIBRARIES += $(BUILD_LIBAWT_LWAWT) |
|
3419 |
||
3420 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBAWT) |
|
3421 |
||
3422 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBMLIB_IMAGE) |
|
3423 |
||
3424 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBOSXAPP) |
|
3425 |
||
3426 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBJAVA) |
|
12892 | 3427 |
|
3428 |
endif |
|
3429 |
||
3430 |
########################################################################################## |
|
3431 |
||
13164 | 3432 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
3433 |
||
3434 |
LIBOSXUI_FILES:=\ |
|
12892 | 3435 |
AquaFileView.m \ |
3436 |
AquaLookAndFeel.m \ |
|
3437 |
AquaNativeResources.m \ |
|
3438 |
JRSUIConstantSync.m \ |
|
3439 |
JRSUIController.m \ |
|
3440 |
JRSUIFocus.m \ |
|
3441 |
ScreenPopupFactory.m \ |
|
3442 |
ScreenMenu.m |
|
3443 |
||
3444 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSXUI,\ |
|
13164 | 3445 |
LIBRARY:=osxui,\ |
3446 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3447 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/com/apple/laf,\ |
13164 | 3448 |
LANG:=C,\ |
12892 | 3449 |
INCLUDE_FILES:=$(LIBOSXUI_FILES),\ |
13164 | 3450 |
OPTIMIZATION:=LOW, \ |
3451 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 3452 |
-I$(JDK_TOPDIR)/src/macosx/native/com/apple/laf \ |
3453 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
|
3454 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/awt \ |
|
3455 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks, \ |
|
3456 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
13702 | 3457 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
3458 |
-Xlinker -rpath -Xlinker @loader_path,\ |
|
3459 |
LDFLAGS_SUFFIX_macosx:=-lawt -losxapp -lawt_lwawt \ |
|
3460 |
-framework Cocoa \ |
|
3461 |
-framework Carbon \ |
|
3462 |
-framework ApplicationServices \ |
|
3463 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3464 |
-framework JavaNativeFoundation \ |
|
3465 |
-framework JavaRuntimeSupport \ |
|
3466 |
-ljava -ljvm,\ |
|
13164 | 3467 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosxui)) |
3468 |
||
3469 |
BUILD_LIBRARIES += $(BUILD_LIBOSXUI) |
|
3470 |
||
3471 |
$(BUILD_LIBOSXUI) : $(BUILD_LIBAWT) |
|
3472 |
||
3473 |
$(BUILD_LIBOSXUI) : $(BUILD_LIBOSXAPP) |
|
3474 |
||
3475 |
$(BUILD_LIBOSXUI) : $(BUILD_LIBAWT_LWAWT) |
|
3476 |
||
3477 |
#$(BUILD_LIBOSXUI) : $(BUILD_LIBJAVA) |
|
3478 |
||
3479 |
endif |
|
3480 |
||
3481 |
########################################################################################## |
|
3482 |
||
3483 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
3484 |
||
13702 | 3485 |
# Ugly hack to mimic behaviour in old build where this is built as an xcode project. |
3486 |
SET_SHARED_LIBRARY_NAME=-Xlinker -install_name -Xlinker /usr/local/lib/libJObjC.dylib |
|
3487 |
||
3488 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJOBJC32,\ |
|
13164 | 3489 |
LIBRARY:=JObjC,\ |
13702 | 3490 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc32,\ |
3491 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/native \ |
|
3492 |
$(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/native ,\ |
|
3493 |
LANG:=C,\ |
|
3494 |
OPTIMIZATION:=LOW, \ |
|
3495 |
CFLAGS:=-fpascal-strings \ |
|
3496 |
-fobjc-gc \ |
|
3497 |
-gdwarf-2 \ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
3498 |
$(CFLAGS_JDKLIB) -I$(JDK_OUTPUTDIR)/gensrc_headers_jobjc \ |
13702 | 3499 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
3500 |
-m32,\ |
|
3501 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
3502 |
-m32, \ |
|
3503 |
LDFLAGS_SUFFIX:=-framework Foundation -framework JavaVM \ |
|
3504 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3505 |
-framework JavaNativeFoundation \ |
|
3506 |
-lffi, \ |
|
3507 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc32)) |
|
3508 |
||
3509 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJOBJC64,\ |
|
3510 |
LIBRARY:=JObjC,\ |
|
3511 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc64,\ |
|
13164 | 3512 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/native \ |
3513 |
$(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/native ,\ |
|
3514 |
LANG:=C,\ |
|
3515 |
OPTIMIZATION:=LOW, \ |
|
3516 |
CFLAGS:=-fpascal-strings \ |
|
3517 |
-fobjc-gc \ |
|
3518 |
-gdwarf-2 \ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
3519 |
$(CFLAGS_JDKLIB) -I$(JDK_OUTPUTDIR)/gensrc_headers_jobjc \ |
13164 | 3520 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
3521 |
, \ |
|
3522 |
LDFLAGS:=-fpascal-strings \ |
|
3523 |
-fobjc-gc \ |
|
3524 |
-gdwarf-2 \ |
|
3525 |
$(LDFLAGS_JDKLIB)\ |
|
3526 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
3527 |
LDFLAGS_SUFFIX:=-framework Foundation -framework JavaVM \ |
|
3528 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3529 |
-framework JavaNativeFoundation \ |
|
3530 |
-lffi, \ |
|
13702 | 3531 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc64)) |
3532 |
||
3533 |
$(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)JObjC$(SHARED_LIBRARY_SUFFIX): $(BUILD_LIBJOBJC32) $(BUILD_LIBJOBJC64) |
|
3534 |
$(LIPO) -create -output $@ $(BUILD_LIBJOBJC32) $(BUILD_LIBJOBJC64) |
|
3535 |
||
3536 |
BUILD_LIBRARIES += $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)JObjC$(SHARED_LIBRARY_SUFFIX) |
|
12892 | 3537 |
|
3538 |
endif |
|
3539 |
||
3540 |
########################################################################################## |
|
3541 |
||
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3542 |
all: $(COPY_FILES) $(BUILD_LIBRARIES) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3543 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3544 |
.PHONY: all |