author | raginip |
Fri, 18 Jan 2013 11:33:31 -0800 | |
changeset 15324 | 74584166bb07 |
parent 14855 | d104ff4d4bb9 |
child 15334 | 19ab20cb461f |
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 |
||
12892 | 93 |
else |
14855
d104ff4d4bb9
8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents:
14789
diff
changeset
|
94 |
|
d104ff4d4bb9
8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents:
14789
diff
changeset
|
95 |
# On macosx the old build does partial (incremental) linking of fdlibm instead of |
d104ff4d4bb9
8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents:
14789
diff
changeset
|
96 |
# a plain static library. |
d104ff4d4bb9
8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents:
14789
diff
changeset
|
97 |
$(eval $(call SetupNativeCompilation,BUILD_LIBFDLIBM_MAC,\ |
13164 | 98 |
LIBRARY:=fdlibm,\ |
99 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs/libfdlibm,\ |
|
12892 | 100 |
SRC:=$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/src,\ |
101 |
LANG:=C,\ |
|
13164 | 102 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
12892 | 103 |
-I$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/include,\ |
14524 | 104 |
LDFLAGS:=-nostdlib -r -arch x86_64,\ |
13164 | 105 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfdlibm)) |
106 |
||
14855
d104ff4d4bb9
8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents:
14789
diff
changeset
|
107 |
BUILD_LIBFDLIBM := $(JDK_OUTPUTDIR)/objs/$(LIBRARY_PREFIX)fdlibm$(STATIC_LIBRARY_SUFFIX) |
d104ff4d4bb9
8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents:
14789
diff
changeset
|
108 |
$(BUILD_LIBFDLIBM) : $(BUILD_LIBFDLIBM_MAC) |
12892 | 109 |
$(CP) -a $< $@ |
110 |
||
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
111 |
endif |
14855
d104ff4d4bb9
8005178: build-infra: Dependency on libfdlibm on mac is broken
erikj
parents:
14789
diff
changeset
|
112 |
BUILD_LIBRARIES += $(BUILD_LIBFDLIBM) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
113 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
114 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
115 |
|
13164 | 116 |
BUILD_LIBVERIFY_SRC:=check_code.c check_format.c |
117 |
||
118 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 119 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
120 |
BUILD_LIBVERIFY_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libverify/reorder-$(OPENJDK_TARGET_CPU) |
|
13164 | 121 |
endif |
122 |
endif |
|
123 |
||
13702 | 124 |
LIBVERIFY_OPTIMIZATION:=HIGH |
125 |
ifneq ($(findstring $(OPENJDK_TARGET_OS),solaris linux),) |
|
14707
511b222f99b2
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14706
diff
changeset
|
126 |
ifeq ($(ENABLE_DEBUG_SYMBOLS), true) |
13702 | 127 |
LIBVERIFY_OPTIMIZATION:=LOW |
128 |
endif |
|
129 |
endif |
|
130 |
||
13164 | 131 |
|
132 |
$(eval $(call SetupNativeCompilation,BUILD_LIBVERIFY,\ |
|
133 |
LIBRARY:=verify, \ |
|
134 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
135 |
SRC:=$(JDK_TOPDIR)/src/share/native/common,\ |
|
136 |
INCLUDE_FILES:=$(BUILD_LIBVERIFY_SRC),\ |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
137 |
LANG:=C,\ |
13702 | 138 |
OPTIMIZATION:=$(LIBVERIFY_OPTIMIZATION), \ |
13164 | 139 |
CFLAGS:=$(CFLAGS_JDKLIB),\ |
140 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libverify/mapfile-vers, \ |
|
12892 | 141 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
13164 | 142 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
143 |
LDFLAGS_SUFFIX_posix:=-ljvm -lc,\ |
|
144 |
LDFLAGS_SUFFIX_windows:=jvm.lib,\ |
|
13702 | 145 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
146 |
RC_FLAGS:=$(RC_FLAGS) \ |
|
14231 | 147 |
-D "JDK_FNAME=verify.dll" \ |
148 |
-D "JDK_INTERNAL_NAME=verify" \ |
|
149 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 150 |
REORDER:=$(BUILD_LIBVERIFY_REORDER),\ |
151 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libverify,\ |
|
152 |
DEBUG_SYMBOLS:=true)) |
|
153 |
||
154 |
BUILD_LIBRARIES += $(BUILD_LIBVERIFY) |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
155 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
156 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
157 |
|
13702 | 158 |
LIBJAVA_SRC_DIRS:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/lang \ |
13164 | 159 |
$(JDK_TOPDIR)/src/share/native/java/lang \ |
160 |
$(JDK_TOPDIR)/src/share/native/java/lang/ref \ |
|
161 |
$(JDK_TOPDIR)/src/share/native/java/lang/reflect \ |
|
162 |
$(JDK_TOPDIR)/src/share/native/java/io \ |
|
13702 | 163 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/io \ |
13164 | 164 |
$(JDK_TOPDIR)/src/share/native/java/nio \ |
165 |
$(JDK_TOPDIR)/src/share/native/java/security \ |
|
166 |
$(JDK_TOPDIR)/src/share/native/common \ |
|
167 |
$(JDK_TOPDIR)/src/share/native/sun/misc \ |
|
168 |
$(JDK_TOPDIR)/src/share/native/sun/reflect \ |
|
169 |
$(JDK_TOPDIR)/src/share/native/java/util \ |
|
170 |
$(JDK_TOPDIR)/src/share/native/java/util/concurrent/atomic \ |
|
13702 | 171 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/common \ |
14231 | 172 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/util |
173 |
||
13702 | 174 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
175 |
LIBJAVA_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/util/locale/provider |
|
176 |
else |
|
177 |
LIBJAVA_SRC_DIRS+=$(JDK_TOPDIR)/src/macosx/native/sun/util/locale/provider |
|
13164 | 178 |
endif |
179 |
||
14231 | 180 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
181 |
LIBJAVA_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/provider \ |
|
182 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/io |
|
183 |
endif |
|
184 |
||
13164 | 185 |
LIBJAVA_CFLAGS:=$(foreach dir,$(LIBJAVA_SRC_DIRS),-I$(dir)) \ |
186 |
-I$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/include \ |
|
13702 | 187 |
-DARCHPROPNAME='"$(OPENJDK_TARGET_CPU_OSARCH)"' |
13164 | 188 |
|
189 |
LIBJAVA_CFLAGS += -DJDK_MAJOR_VERSION='"$(JDK_MAJOR_VERSION)"' \ |
|
190 |
-DJDK_MINOR_VERSION='"$(JDK_MINOR_VERSION)"' \ |
|
191 |
-DJDK_MICRO_VERSION='"$(JDK_MICRO_VERSION)"' \ |
|
192 |
-DJDK_BUILD_NUMBER='"$(JDK_BUILD_NUMBER)"' |
|
193 |
||
194 |
ifneq (,$(JDK_UPDATE_VERSION)) |
|
195 |
LIBJAVA_CFLAGS += -DJDK_UPDATE_VERSION='"$(JDK_UPDATE_VERSION)"' |
|
196 |
endif |
|
197 |
||
198 |
LIBJAVA_EXCLUDE_FILES:=check_code.c check_format.c |
|
199 |
||
200 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
|
201 |
LIBJAVA_EXCLUDE_FILES += java_props_macosx.c |
|
202 |
else |
|
203 |
BUILD_LIBJAVA_java_props_md.c_CFLAGS:=-x objective-c |
|
204 |
endif |
|
205 |
||
206 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
207 |
LIBJAVA_EXCLUDE_FILES += \ |
|
208 |
UNIXProcess_md.c \ |
|
209 |
UnixFileSystem_md.c \ |
|
210 |
FileSystemPreferences.c |
|
211 |
else |
|
212 |
LIBJAVA_EXCLUDE_FILES += \ |
|
213 |
ProcessImpl_md.c \ |
|
214 |
WinNTFileSystem_md.c \ |
|
215 |
dirent_md.c \ |
|
216 |
WindowsPreferences.c \ |
|
217 |
sun/security/provider/WinCAPISeedGenerator.c \ |
|
218 |
sun/io/Win32ErrorMode.c |
|
219 |
endif |
|
220 |
||
221 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 222 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
223 |
LIBJAVA_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libjava/reorder-$(OPENJDK_TARGET_CPU) |
|
13164 | 224 |
endif |
225 |
endif |
|
226 |
||
227 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAVA,\ |
|
228 |
LIBRARY:=java,\ |
|
229 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
230 |
SRC:=$(LIBJAVA_SRC_DIRS),\ |
|
231 |
EXCLUDES:=fdlibm/src zip, \ |
|
232 |
EXCLUDE_FILES:=$(LIBJAVA_EXCLUDE_FILES), \ |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
233 |
LANG:=C,\ |
13164 | 234 |
OPTIMIZATION:=HIGH, \ |
235 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
236 |
$(LIBJAVA_CFLAGS),\ |
|
237 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjava/mapfile-vers, \ |
|
238 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
239 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
240 |
LDFLAGS_SUFFIX_posix:=-ljvm -lverify, \ |
|
14526
a9ff17998eb7
8003528: build-infra: Diffs in libjava and hotspot libs on solaris.
erikj
parents:
14525
diff
changeset
|
241 |
LDFLAGS_SUFFIX_solaris:=-lsocket -lnsl -lscf $(LIBDL) $(BUILD_LIBFDLIBM) -lc,\ |
13164 | 242 |
LDFLAGS_SUFFIX_linux:=$(LIBDL) $(BUILD_LIBFDLIBM),\ |
13702 | 243 |
LDFLAGS_SUFFIX_macosx:=-L$(JDK_OUTPUTDIR)/objs/ -lfdlibm \ |
13164 | 244 |
-framework CoreFoundation \ |
245 |
-framework Security -framework SystemConfiguration, \ |
|
14231 | 246 |
LDFLAGS_SUFFIX_windows:=-export:winFileHandleOpen -export:handleLseek \ |
247 |
jvm.lib $(BUILD_LIBFDLIBM) $(WIN_VERIFY_LIB) \ |
|
248 |
shell32.lib delayimp.lib -DELAYLOAD:shell32.dll \ |
|
249 |
advapi32.lib,\ |
|
13702 | 250 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
251 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 252 |
-D "JDK_FNAME=java.dll" \ |
253 |
-D "JDK_INTERNAL_NAME=java" \ |
|
254 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 255 |
REORDER:=$(LIBJAVA_REORDER), \ |
13702 | 256 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjava,\ |
257 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 258 |
|
259 |
BUILD_LIBRARIES += $(BUILD_LIBJAVA) |
|
260 |
||
261 |
$(BUILD_LIBJAVA) : $(LIBJLI_BINARY) |
|
262 |
||
263 |
$(BUILD_LIBJAVA) : $(BUILD_LIBVERIFY) |
|
264 |
||
265 |
$(BUILD_LIBJAVA) : $(BUILD_LIBFDLIBM) |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
266 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
267 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
268 |
|
13164 | 269 |
BUILD_LIBMLIB_SRC:=$(JDK_TOPDIR)/src/share/native/sun/awt/medialib |
270 |
BUILD_LIBMLIB_CFLAGS:=-D__USE_J2D_NAMES -D__MEDIALIB_OLD_NAMES \ |
|
12892 | 271 |
-I$(BUILD_LIBMLIB_SRC) \ |
13702 | 272 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/medialib |
13164 | 273 |
|
274 |
BUILD_LIBMLIB_LDLIBS:= |
|
275 |
BUILD_LIBMLIB_IMAGE_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libmlib_image/mapfile-vers |
|
276 |
||
13702 | 277 |
BUILD_LIBMLIB_CFLAGS += -DMLIB_NO_LIBSUNMATH |
278 |
||
279 |
ifeq ($(OPENJDK_TARGET_CPU_BITS), 64) |
|
12892 | 280 |
BUILD_LIBMLIB_CFLAGS += -DMLIB_OS64BIT |
281 |
endif |
|
282 |
||
13164 | 283 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
12892 | 284 |
BUILD_LIBMLIB_LDLIBS += $(LIBM) $(LIBDL) |
285 |
endif |
|
286 |
||
287 |
$(eval $(call SetupNativeCompilation,BUILD_LIBMLIB_IMAGE,\ |
|
13164 | 288 |
LIBRARY:=mlib_image,\ |
289 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
290 |
SRC:=$(BUILD_LIBMLIB_SRC),\ |
|
12892 | 291 |
EXCLUDE_FILES:=awt_ImagingLib.c mlib_c_ImageBlendTable.c,\ |
292 |
LANG:=C,\ |
|
13164 | 293 |
OPTIMIZATION:=HIGHEST, \ |
294 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 295 |
$(BUILD_LIBMLIB_CFLAGS),\ |
13164 | 296 |
MAPFILE:=$(BUILD_LIBMLIB_IMAGE_MAPFILE), \ |
12892 | 297 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
298 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 299 |
LDFLAGS_SUFFIX:=$(BUILD_LIBMLIB_LDLIBS) \ |
300 |
$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
301 |
LDFLAGS_SUFFIX_solaris:=-lc, \ |
13702 | 302 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
303 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 304 |
-D "JDK_FNAME=mlib_image.dll" \ |
305 |
-D "JDK_INTERNAL_NAME=mlib_image" \ |
|
306 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 307 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libmlib_image,\ |
308 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 309 |
|
310 |
$(BUILD_LIBMLIB_IMAGE) : $(BUILD_LIBJAVA) |
|
311 |
||
312 |
BUILD_LIBRARIES += $(BUILD_LIBMLIB_IMAGE) |
|
12892 | 313 |
|
314 |
########################################################################################## |
|
315 |
||
13702 | 316 |
ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH),solaris-sparc) |
12892 | 317 |
|
13164 | 318 |
BUILD_LIBMLIB_IMAGE_V_FILES:=\ |
12892 | 319 |
mlib_v_ImageLookUp.c \ |
320 |
mlib_ImageCreate.c \ |
|
321 |
mlib_ImageAffine.c \ |
|
322 |
mlib_ImageConvMxN.c \ |
|
323 |
mlib_ImageConvKernelConvert.c \ |
|
324 |
mlib_sys.c \ |
|
325 |
mlib_ImageLookUp_64.c \ |
|
326 |
mlib_ImageLookUp_Bit.c \ |
|
327 |
mlib_ImageColorTrue2Index.c \ |
|
328 |
mlib_c_ImageThresh1_U8.c \ |
|
329 |
mlib_v_ImageLookUpS16S16Func.c \ |
|
330 |
mlib_v_ImageLookUpS16S32Func.c \ |
|
331 |
mlib_v_ImageLookUpS16U16Func.c \ |
|
332 |
mlib_v_ImageLookUpS16U8Func.c \ |
|
333 |
mlib_v_ImageLookUpS32S16Func.c \ |
|
334 |
mlib_v_ImageLookUpS32S32Func.c \ |
|
335 |
mlib_v_ImageLookUpS32U16Func.c \ |
|
336 |
mlib_v_ImageLookUpS32U8Func.c \ |
|
337 |
mlib_v_ImageLookUpSIS16S16Func.c \ |
|
338 |
mlib_v_ImageLookUpSIS16S32Func.c \ |
|
339 |
mlib_v_ImageLookUpSIS16U16Func.c \ |
|
340 |
mlib_v_ImageLookUpSIS16U8Func.c \ |
|
341 |
mlib_v_ImageLookUpSIS32S16Func.c \ |
|
342 |
mlib_v_ImageLookUpSIS32S32Func.c \ |
|
343 |
mlib_v_ImageLookUpSIS32U16Func.c \ |
|
344 |
mlib_v_ImageLookUpSIS32U8Func.c \ |
|
345 |
mlib_v_ImageLookUpSIU16S16Func.c \ |
|
346 |
mlib_v_ImageLookUpSIU16S32Func.c \ |
|
347 |
mlib_v_ImageLookUpSIU16U16Func.c \ |
|
348 |
mlib_v_ImageLookUpSIU16U8Func.c \ |
|
349 |
mlib_v_ImageLookUpSIU8S16Func.c \ |
|
350 |
mlib_v_ImageLookUpSIU8S32Func.c \ |
|
351 |
mlib_v_ImageLookUpSIU8U16Func.c \ |
|
352 |
mlib_v_ImageLookUpSIU8U8Func.c \ |
|
353 |
mlib_v_ImageLookUpU16S16Func.c \ |
|
354 |
mlib_v_ImageLookUpU16S32Func.c \ |
|
355 |
mlib_v_ImageLookUpU16U16Func.c \ |
|
356 |
mlib_v_ImageLookUpU16U8Func.c \ |
|
357 |
mlib_v_ImageLookUpU8S16Func.c \ |
|
358 |
mlib_v_ImageLookUpU8S32Func.c \ |
|
359 |
mlib_v_ImageLookUpU8U16Func.c \ |
|
360 |
mlib_v_ImageLookUpU8U8Func.c \ |
|
361 |
mlib_v_ImageAffineIndex_BC.c \ |
|
362 |
mlib_v_ImageAffine_BC.c \ |
|
363 |
mlib_v_ImageAffine_BC_S16.c \ |
|
364 |
mlib_v_ImageAffine_BC_U16.c \ |
|
365 |
mlib_v_ImageAffine_BL.c \ |
|
366 |
mlib_v_ImageAffine_BL_S16.c \ |
|
367 |
mlib_v_ImageAffine_BL_U16.c \ |
|
368 |
mlib_v_ImageAffine_NN.c \ |
|
369 |
mlib_v_ImageFilters.c \ |
|
370 |
mlib_ImageAffineEdge.c \ |
|
371 |
mlib_ImageAffine_BC_D64.c \ |
|
372 |
mlib_ImageAffine_BC_F32.c \ |
|
373 |
mlib_ImageAffine_BC_S32.c \ |
|
374 |
mlib_ImageAffine_BL_D64.c \ |
|
375 |
mlib_ImageAffine_BL_F32.c \ |
|
376 |
mlib_ImageAffine_BL_S32.c \ |
|
377 |
mlib_ImageAffine_NN.c \ |
|
378 |
mlib_ImageAffine_NN_Bit.c \ |
|
379 |
mlib_ImageFilters.c \ |
|
380 |
mlib_ImageScanPoly.c \ |
|
381 |
mlib_ImageConv_8nw.c \ |
|
382 |
mlib_ImageConv_8ext.c \ |
|
383 |
mlib_ImageConv_16nw.c \ |
|
384 |
mlib_ImageConv_16ext.c \ |
|
385 |
mlib_ImageConv_u16nw.c \ |
|
386 |
mlib_ImageConv_u16ext.c \ |
|
387 |
mlib_ImageConv_32nw.c \ |
|
388 |
mlib_ImageConv_F32nw.c \ |
|
389 |
mlib_ImageConvMxN_Fp.c \ |
|
390 |
mlib_ImageConvMxN_ext.c \ |
|
391 |
mlib_ImageConv_D64nw.c \ |
|
392 |
mlib_ImageClipping.c \ |
|
393 |
mlib_ImageConvCopyEdge_Bit.c \ |
|
394 |
mlib_ImageConvClearEdge_Bit.c \ |
|
395 |
mlib_ImageConv2x2_f.c \ |
|
396 |
mlib_ImageConvClearEdge_Fp.c \ |
|
397 |
mlib_v_ImageConvMxN_8.c \ |
|
398 |
mlib_v_ImageConvClearEdge.c \ |
|
399 |
mlib_v_ImageConvCopyEdge.c \ |
|
400 |
mlib_v_ImageConvMxN_8ext.c \ |
|
401 |
mlib_v_ImageConvVersion.c \ |
|
402 |
mlib_v_ImageConv_8nw.c \ |
|
403 |
mlib_ImageConvCopyEdge_Fp.c \ |
|
404 |
mlib_v_ImageChannelInsert_1.c \ |
|
405 |
mlib_v_ImageChannelExtract_43.c \ |
|
406 |
mlib_v_ImageChannelExtract_1.c \ |
|
407 |
mlib_ImageCopy_Bit.c \ |
|
408 |
mlib_v_ImageCopy_f.c \ |
|
409 |
mlib_ImageUtils.c \ |
|
410 |
mlib_ImageDivTables.c |
|
411 |
||
13164 | 412 |
BUILD_LIBMLIB_V_CFLAGS := $(filter-out -DMLIB_NO_LIBSUNMATH,$(BUILD_LIBMLIB_CFLAGS)) |
12892 | 413 |
|
414 |
$(eval $(call SetupNativeCompilation,BUILD_LIBMLIB_IMAGE_V,\ |
|
13164 | 415 |
LIBRARY:=mlib_image_v, \ |
416 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
417 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/awt/medialib \ |
|
12892 | 418 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib,\ |
419 |
LANG:=C,\ |
|
13164 | 420 |
INCLUDE_FILES:=$(BUILD_LIBMLIB_IMAGE_V_FILES),\ |
421 |
OPTIMIZATION:=HIGHEST, \ |
|
422 |
CFLAGS:=-xarch=sparcvis \ |
|
13702 | 423 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt/medialib/vis_$(OPENJDK_TARGET_CPU_BITS).il\ |
13164 | 424 |
$(BUILD_LIBMLIB_V_CFLAGS) \ |
425 |
$(CFLAGS_JDKLIB), \ |
|
426 |
MAPFILE:=$(BUILD_LIBMLIB_IMAGE_MAPFILE), \ |
|
12892 | 427 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
14231 | 428 |
$(BUILD_LIBMLIB_LDLIBS) -ljava -ljvm \ |
12892 | 429 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
430 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
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,\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
713 |
LDFLAGS_SUFFIX_solaris:=-ljvm $(LIBM) $(LIBDL) -ljava -lc,\ |
13702 | 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 |
||
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
906 |
BUILD_LIBZIP_EXCLUDES := |
13164 | 907 |
ifeq ($(USE_EXTERNAL_LIBZ),true) |
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
908 |
LIBZ := -lz |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
909 |
LIBZIP_EXCLUDES += zlib-1.2.5 |
13164 | 910 |
else |
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
911 |
ZLIB_CPPFLAGS := -I$(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5 |
13164 | 912 |
endif |
913 |
||
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
914 |
BUILD_LIBZIP_REORDER := |
13164 | 915 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
13702 | 916 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
917 |
BUILD_LIBZIP_REORDER := $(JDK_TOPDIR)/makefiles/mapfiles/libzip/reorder-$(OPENJDK_TARGET_CPU) |
13164 | 918 |
endif |
919 |
endif |
|
920 |
||
921 |
ifeq ($(LIBZIP_CAN_USE_MMAP), true) |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
922 |
BUILD_LIBZIP_MMAP := -DUSE_MMAP |
13164 | 923 |
endif |
924 |
||
925 |
$(eval $(call SetupNativeCompilation,BUILD_LIBZIP,\ |
|
926 |
LIBRARY:=zip,\ |
|
927 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
928 |
LANG:=C,\ |
|
929 |
OPTIMIZATION:=LOW, \ |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
930 |
SRC:=$(JDK_TOPDIR)/src/share/native/java/util/zip,\ |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
931 |
EXCLUDES:=$(LIBZIP_EXCLUDES),\ |
13164 | 932 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
933 |
$(ZLIB_CPPFLAGS) \ |
13164 | 934 |
-I$(JDK_TOPDIR)/src/share/native/java/io \ |
13702 | 935 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/io,\ |
13164 | 936 |
CFLAGS_posix:=$(BUILD_LIBZIP_MMAP) -UDEBUG,\ |
937 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libzip/mapfile-vers, \ |
|
938 |
REORDER:=$(BUILD_LIBZIP_REORDER), \ |
|
939 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
13702 | 940 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
13164 | 941 |
$(EXPORT_ZIP_FUNCS), \ |
13702 | 942 |
LDFLAGS_windows:=-export:ZIP_Open -export:ZIP_Close -export:ZIP_FindEntry \ |
13164 | 943 |
-export:ZIP_ReadEntry -export:ZIP_GetNextEntry jvm.lib \ |
944 |
$(WIN_JAVA_LIB),\ |
|
13702 | 945 |
LDFLAGS_SUFFIX_linux:=-ljvm -ljava $(LIBZ),\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
946 |
LDFLAGS_SUFFIX_solaris:=-ljvm -ljava $(LIBZ) -lc,\ |
13702 | 947 |
LDFLAGS_SUFFIX_macosx:=$(LIBZ) -ljava -ljvm,\ |
948 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
949 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 950 |
-D "JDK_FNAME=zip.dll" \ |
951 |
-D "JDK_INTERNAL_NAME=zip" \ |
|
952 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 953 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libzip,\ |
954 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 955 |
|
956 |
$(BUILD_LIBZIP) : $(BUILD_LIBJAVA) |
|
957 |
||
958 |
BUILD_LIBRARIES += $(BUILD_LIBZIP) |
|
959 |
||
960 |
########################################################################################## |
|
961 |
||
962 |
$(eval $(call SetupNativeCompilation,BUILD_LIBUNPACK,\ |
|
963 |
LIBRARY:=unpack, \ |
|
964 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
965 |
SRC:=$(JDK_TOPDIR)/src/share/native/com/sun/java/util/jar/pack,\ |
|
966 |
EXCLUDE_FILES:=main.cpp,\ |
|
967 |
LANG:=C++,\ |
|
968 |
OPTIMIZATION:=LOW, \ |
|
969 |
CFLAGS:=$(CXXFLAGS_JDKLIB) \ |
|
970 |
-DNO_ZLIB -DUNPACK_JNI -DFULL,\ |
|
971 |
CFLAGS_release:=-DPRODUCT,\ |
|
972 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libunpack/mapfile-vers, \ |
|
13702 | 973 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
13164 | 974 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
14231 | 975 |
LDFLAGS_windows:=-map:$(JDK_OUTPUTDIR)/objs/unpack.map -debug \ |
13164 | 976 |
jvm.lib $(WIN_JAVA_LIB),\ |
13702 | 977 |
LDFLAGS_SUFFIX_posix:=-ljvm $(LIBCXX) -ljava -lc,\ |
13164 | 978 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libunpack,\ |
979 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
980 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 981 |
-D "JDK_FNAME=unpack.dll" \ |
982 |
-D "JDK_INTERNAL_NAME=unpack" \ |
|
983 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 984 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
13164 | 985 |
|
986 |
$(BUILD_LIBUNPACK) : $(BUILD_LIBJAVA) |
|
987 |
||
988 |
BUILD_LIBRARIES += $(BUILD_LIBUNPACK) |
|
989 |
||
13702 | 990 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
13164 | 991 |
$(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)unpack.map: $(BUILD_LIBUNPACK) |
992 |
$(ECHO) Copying $(@F) |
|
993 |
$(CP) $(patsubst %$(SHARED_LIBRARY_SUFFIX),%.map,$<) $@ |
|
994 |
||
995 |
$(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)unpack.pdb: $(BUILD_LIBUNPACK) |
|
996 |
$(ECHO) Copying $(@F) |
|
997 |
$(CP) $(patsubst %$(SHARED_LIBRARY_SUFFIX),%.pdb,$<) $@ |
|
998 |
endif |
|
999 |
||
1000 |
########################################################################################## |
|
1001 |
||
1002 |
LIBATTACH_EXCLUDE_FILES:= |
|
1003 |
ifneq ($(OPENJDK_TARGET_OS),solaris) |
|
1004 |
LIBATTACH_EXCLUDE_FILES+=SolarisVirtualMachine.c |
|
1005 |
endif |
|
1006 |
ifneq ($(OPENJDK_TARGET_OS),linux) |
|
1007 |
LIBATTACH_EXCLUDE_FILES+=LinuxVirtualMachine.c |
|
1008 |
endif |
|
1009 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
|
1010 |
LIBATTACH_EXCLUDE_FILES+=BsdVirtualMachine.c |
|
1011 |
endif |
|
1012 |
||
1013 |
$(eval $(call SetupNativeCompilation,BUILD_LIBATTACH,\ |
|
1014 |
LIBRARY:=attach, \ |
|
1015 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1016 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/tools/attach,\ |
13164 | 1017 |
EXCLUDE_FILES:=$(LIBATTACH_EXCLUDE_FILES),\ |
1018 |
LANG:=C,\ |
|
1019 |
OPTIMIZATION:=LOW, \ |
|
1020 |
CFLAGS:=$(CFLAGS_JDKLIB),\ |
|
1021 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libattach/mapfile-$(OPENJDK_TARGET_OS), \ |
|
13702 | 1022 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1023 |
RC_FLAGS:=$(RC_FLAGS) \ |
|
14231 | 1024 |
-D "JDK_FNAME=attach.dll" \ |
1025 |
-D "JDK_INTERNAL_NAME=attach" \ |
|
1026 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1027 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1028 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1029 |
LDFLAGS_solaris:=-ldoor,\ |
|
1030 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
14231 | 1031 |
LDFLAGS_SUFFIX_windows:=$(WIN_JAVA_LIB) advapi32.lib psapi.lib,\ |
13164 | 1032 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libattach,\ |
1033 |
DEBUG_SYMBOLS:=true)) |
|
1034 |
||
1035 |
$(BUILD_LIBATTACH) : $(BUILD_LIBJAVA) |
|
1036 |
||
1037 |
BUILD_LIBRARIES += $(BUILD_LIBATTACH) |
|
1038 |
||
1039 |
########################################################################################## |
|
1040 |
||
1041 |
$(eval $(call SetupNativeCompilation,BUILD_LIBDT_SOCKET,\ |
|
1042 |
LIBRARY:=dt_socket,\ |
|
1043 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1044 |
SRC:=$(JDK_TOPDIR)/src/share/transport/socket \ |
|
13702 | 1045 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/socket,\ |
13164 | 1046 |
LANG:=C,\ |
1047 |
OPTIMIZATION:=LOW, \ |
|
1048 |
CFLAGS:=$(CFLAGS_JDKLIB) -DUSE_MMAP \ |
|
1049 |
-I$(INCLUDEDIR) -I$(JDK_OUTPUTDIR)/include/$(OPENJDK_TARGET_OS) \ |
|
1050 |
-I$(JDK_TOPDIR)/src/share/transport/socket \ |
|
13702 | 1051 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/socket \ |
13164 | 1052 |
-I$(JDK_TOPDIR)/src/share/back/export \ |
1053 |
-I$(JDK_TOPDIR)/src/share/back,\ |
|
1054 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libdt_socket/mapfile-vers, \ |
|
13702 | 1055 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1056 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
1057 |
LDFLAGS_SUFFIX_linux:=-lpthread,\ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
1058 |
LDFLAGS_SUFFIX_solaris:=-lnsl -lsocket -lc,\ |
13702 | 1059 |
LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX) -export:jdwpTransport_OnLoad ws2_32.lib,\ |
1060 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
1061 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1062 |
-D "JDK_FNAME=dt_socket.dll" \ |
1063 |
-D "JDK_INTERNAL_NAME=dt_socket" \ |
|
1064 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1065 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libdt_socket,\ |
1066 |
DEBUG_SYMBOLS:=true)) |
|
1067 |
||
1068 |
$(BUILD_LIBDT_SOCKET) : $(BUILD_LIBJAVA) |
|
1069 |
||
1070 |
BUILD_LIBRARIES += $(BUILD_LIBDT_SOCKET) |
|
1071 |
||
1072 |
########################################################################################## |
|
1073 |
||
13702 | 1074 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
13164 | 1075 |
|
1076 |
$(eval $(call SetupNativeCompilation,BUILD_LIBDT_SHMEM,\ |
|
1077 |
LIBRARY:=dt_shmem,\ |
|
1078 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1079 |
SRC:=$(JDK_TOPDIR)/src/share/native/com/sun/tools/jdi \ |
|
1080 |
$(JDK_TOPDIR)/src/share/transport/shmem \ |
|
13702 | 1081 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/shmem,\ |
13164 | 1082 |
LANG:=C,\ |
1083 |
OPTIMIZATION:=LOW, \ |
|
1084 |
CFLAGS:=$(CFLAGS_JDKLIB) -DUSE_MMAP\ |
|
1085 |
-I$(INCLUDEDIR) -I$(JDK_OUTPUTDIR)/include/$(OPENJDK_TARGET_OS) \ |
|
1086 |
-I$(JDK_TOPDIR)/src/share/transport/shmem \ |
|
13702 | 1087 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/transport/shmem \ |
13164 | 1088 |
-I$(JDK_TOPDIR)/src/share/back/export, \ |
1089 |
LDFLAGS:=$(LDFLAGS_JDKLIB),\ |
|
13702 | 1090 |
LDFLAGS_windows:=-export:jdwpTransport_OnLoad,\ |
13164 | 1091 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
13702 | 1092 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1093 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1094 |
-D "JDK_FNAME=dt_shmem.dll" \ |
1095 |
-D "JDK_INTERNAL_NAME=dt_shmem" \ |
|
1096 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1097 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libdt_shmem,\ |
1098 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1099 |
|
1100 |
BUILD_LIBRARIES += $(BUILD_LIBDT_SHMEM) |
|
1101 |
||
1102 |
endif # OPENJDK_TARGET_OS |
|
1103 |
||
1104 |
########################################################################################## |
|
13702 | 1105 |
# JDWP_LOGGING causes log messages to be compiled into the library. |
13164 | 1106 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJDWP,\ |
1107 |
LIBRARY:=jdwp, \ |
|
1108 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1109 |
SRC:=$(JDK_TOPDIR)/src/share/back $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/back,\ |
13164 | 1110 |
LANG:=C,\ |
1111 |
OPTIMIZATION:=LOW, \ |
|
1112 |
CFLAGS:=$(CFLAGS_JDKLIB) -DJDWP_LOGGING\ |
|
1113 |
-I$(JDK_TOPDIR)/src/share/transport/export \ |
|
1114 |
-I$(JDK_TOPDIR)/src/share/back/export \ |
|
1115 |
-I$(JDK_TOPDIR)/src/share/npt \ |
|
13702 | 1116 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt \ |
13164 | 1117 |
-I$(JDK_TOPDIR)/src/share/back \ |
13702 | 1118 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/back \ |
13164 | 1119 |
-I$(JDK_OUTPUTDIR)/gensrc_jdwp_headers,\ |
1120 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjdwp/mapfile-vers, \ |
|
13702 | 1121 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1122 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1123 |
LDFLAGS_SUFFIX_linux:=$(LIBDL),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1124 |
LDFLAGS_SUFFIX_solaris:=$(LIBDL) -lc,\ |
13164 | 1125 |
LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
13702 | 1126 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1127 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1128 |
-D "JDK_FNAME=jdwp.dll" \ |
1129 |
-D "JDK_INTERNAL_NAME=jdwp" \ |
|
1130 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1131 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjdwp,\ |
1132 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1133 |
|
1134 |
$(BUILD_LIBJDWP) : $(BUILD_LIBJAVA) |
|
1135 |
||
1136 |
BUILD_LIBRARIES += $(BUILD_LIBJDWP) |
|
1137 |
||
1138 |
########################################################################################## |
|
1139 |
||
1140 |
LIBJAAS_MAPFILE:= |
|
1141 |
ifneq ($(OPENJDK_TARGET_OS),solaris) |
|
1142 |
LIBJAAS_EXCLUDE_FILES:=Solaris.c |
|
1143 |
else |
|
1144 |
# only on solaris...wonder why |
|
1145 |
LIBJAAS_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjaas/mapfile-vers |
|
1146 |
endif |
|
1147 |
||
1148 |
LIBJAAS_NAME:=jaas_unix |
|
1149 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
1150 |
LIBJAAS_NAME:=jaas_nt |
|
1151 |
endif |
|
1152 |
||
1153 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAAS,\ |
|
1154 |
LIBRARY:=$(LIBJAAS_NAME),\ |
|
1155 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1156 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/security/auth/module,\ |
13164 | 1157 |
LANG:=C,\ |
1158 |
OPTIMIZATION:=LOW, \ |
|
1159 |
CFLAGS:=$(CFLAGS_JDKLIB),\ |
|
1160 |
MAPFILE:=$(LIBJAAS_MAPFILE),\ |
|
1161 |
LDFLAGS:=$(filter-out -ljava,$(LDFLAGS_JDKLIB)) \ |
|
1162 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1163 |
LDFLAGS_windows:=netapi32.lib user32.lib mpr.lib advapi32.lib,\ |
13164 | 1164 |
LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1165 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13164 | 1166 |
EXCLUDE_FILES:=$(LIBJAAS_EXCLUDE_FILES),\ |
13702 | 1167 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1168 |
RC_FLAGS:=$(RC_FLAGS) \ |
|
14231 | 1169 |
-D "JDK_FNAME=$(LIBJAAS_NAME).dll" \ |
1170 |
-D "JDK_INTERNAL_NAME=$(LIBJAAS_NAME)" \ |
|
1171 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1172 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjaas,\ |
1173 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1174 |
|
1175 |
$(BUILD_LIBJAAS) : $(BUILD_LIBJAVA) |
|
1176 |
||
1177 |
BUILD_LIBRARIES += $(BUILD_LIBJAAS) |
|
1178 |
||
1179 |
########################################################################################## |
|
1180 |
||
1181 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJSDT,\ |
|
1182 |
LIBRARY:=jsdt,\ |
|
1183 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1184 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/tracing/dtrace\ |
|
13702 | 1185 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/tracing/dtrace,\ |
13164 | 1186 |
LANG:=C,\ |
1187 |
OPTIMIZATION:=LOW, \ |
|
1188 |
CFLAGS:=$(CFLAGS_JDKLIB)\ |
|
1189 |
-I$(JDK_TOPDIR)/src/share/native/sun/tracing/dtrace,\ |
|
1190 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjsdt/mapfile-vers, \ |
|
1191 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1192 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1193 |
LDFLAGS_SUFFIX_linux:=$(LIBDL),\ |
1194 |
LDFLAGS_SUFFIX_windows:=$(LDFLAGS_JDKLIB_SUFFIX) $(LIBDL),\ |
|
13164 | 1195 |
LDFLAGS_SUFFIX_macosx:= $(LIBDL),\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1196 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 1197 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1198 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1199 |
-D "JDK_FNAME=jsdt.dll" \ |
1200 |
-D "JDK_INTERNAL_NAME=jsdt" \ |
|
1201 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1202 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsdt, \ |
13702 | 1203 |
DEBUG_SYMBOLS:=true)) |
13164 | 1204 |
|
1205 |
$(BUILD_LIBJSDT) : $(BUILD_LIBJAVA) |
|
1206 |
||
1207 |
BUILD_LIBRARIES += $(BUILD_LIBJSDT) |
|
1208 |
||
1209 |
########################################################################################## |
|
1210 |
||
1211 |
ifdef OPENJDK |
|
1212 |
# TODO: Update awt lib path when awt is converted |
|
1213 |
$(eval $(call SetupNativeCompilation,BUILD_LIBLCMS,\ |
|
1214 |
LIBRARY:=lcms,\ |
|
1215 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
1216 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/java2d/cmm/lcms,\ |
13164 | 1217 |
LANG:=C,\ |
1218 |
OPTIMIZATION:=LOW, \ |
|
1219 |
CFLAGS:=$(filter-out -xc99=%none,$(CFLAGS_JDKLIB)) \ |
|
1220 |
$(SHARED_LIBRARY_FLAGS) \ |
|
1221 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
1222 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug,\ |
|
1223 |
CFLAGS_solaris:=-xc99=no_lib,\ |
|
13702 | 1224 |
CFLAGS_windows:=-DCMS_IS_WINDOWS_,\ |
13164 | 1225 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/liblcms/mapfile-vers, \ |
13702 | 1226 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1227 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
1228 |
LDFLAGS_solaris:=/usr/lib$(OPENJDK_TARGET_CPU_ISADIR)/libm.so.2,\ |
|
1229 |
LDFLAGS_windows:=$(WIN_AWT_LIB) $(WIN_JAVA_LIB),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1230 |
LDFLAGS_SUFFIX_solaris:=-lawt -ljava -ljvm -lc,\ |
13702 | 1231 |
LDFLAGS_SUFFIX_macosx:=$(LIBM) -lawt -ljava -ljvm,\ |
1232 |
LDFLAGS_SUFFIX_linux:=-lm -lawt -ljava -ljvm,\ |
|
1233 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
1234 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1235 |
-D "JDK_FNAME=lcms.dll" \ |
1236 |
-D "JDK_INTERNAL_NAME=lcms" \ |
|
1237 |
-D "JDK_FTYPE=0x2L",\ |
|
1238 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/liblcms,\ |
|
1239 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1240 |
|
1241 |
BUILD_LIBRARIES += $(BUILD_LIBLCMS) |
|
1242 |
||
1243 |
$(BUILD_LIBLCMS) : $(BUILD_LIBAWT) |
|
1244 |
endif |
|
1245 |
||
1246 |
########################################################################################## |
|
1247 |
||
1248 |
ifdef OPENJDK |
|
1249 |
BUILD_LIBJPEG_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjpeg/mapfile-vers |
|
1250 |
else |
|
1251 |
BUILD_LIBJPEG_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjpeg/mapfile-vers-closed |
|
1252 |
BUILD_LIBJPEG_CLOSED_SRC:=$(JDK_TOPDIR)/src/closed/share/native/sun/awt/image/jpeg |
|
1253 |
BUILD_LIBJPEG_CLOSED_INCLUDES:=-I$(BUILD_LIBJPEG_CLOSED_SRC) |
|
1254 |
endif |
|
1255 |
||
1256 |
BUILD_LIBJPEG_REORDER:= |
|
1257 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 1258 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
1259 |
BUILD_LIBJPEG_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libjpeg/reorder-$(OPENJDK_TARGET_CPU) |
|
13164 | 1260 |
endif |
1261 |
endif |
|
1262 |
||
1263 |
# Suppress gcc warnings like "variable might be clobbered by 'longjmp' |
|
1264 |
# or 'vfork'": this warning indicates that some variable is placed to |
|
1265 |
# a register by optimized compiler and it's value might be lost on longjmp(). |
|
1266 |
# Recommended way to avoid such warning is to declare the variable as |
|
1267 |
# volatile to prevent the optimization. However, this approach does not |
|
1268 |
# work because we have to declare all variables as volatile in result. |
|
1269 |
#ifndef CROSS_COMPILE_ARCH |
|
1270 |
# CC_43_OR_NEWER:=\ |
|
1271 |
# $(shell $(EXPR) $(CC_MAJORVER) \> 4 \| \ |
|
1272 |
# \( $(CC_MAJORVER) = 4 \& $(CC_MINORVER) \>= 3 \) ) |
|
1273 |
# ifeq ($(CC_43_OR_NEWER),1) |
|
1274 |
# BUILD_LIBJPEG_CFLAGS_linux += -Wno-clobbered |
|
1275 |
# endif |
|
1276 |
#endif |
|
1277 |
||
1278 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJPEG,\ |
|
1279 |
LIBRARY:=jpeg, \ |
|
1280 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1281 |
SRC:=$(BUILD_LIBJPEG_CLOSED_SRC) \ |
|
1282 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg,\ |
|
1283 |
LANG:=C,\ |
|
1284 |
OPTIMIZATION:=HIGHEST, \ |
|
1285 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1286 |
$(BUILD_LIBJPEG_CLOSED_INCLUDES) \ |
|
1287 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg,\ |
|
1288 |
MAPFILE:=$(BUILD_LIBJPEG_MAPFILE), \ |
|
1289 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1290 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1291 |
LDFLAGS_windows:=$(WIN_JAVA_LIB) jvm.lib,\ |
13164 | 1292 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
13702 | 1293 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1294 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1295 |
-D "JDK_FNAME=jpeg.dll" \ |
1296 |
-D "JDK_INTERNAL_NAME=jpeg" \ |
|
1297 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1298 |
REORDER:=$(BUILD_LIBJPEG_REORDER),\ |
13702 | 1299 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjpeg,\ |
1300 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1301 |
|
1302 |
$(BUILD_LIBJPEG) : $(BUILD_LIBJAVA) |
|
1303 |
||
1304 |
BUILD_LIBRARIES += $(BUILD_LIBJPEG) |
|
1305 |
||
1306 |
########################################################################################## |
|
1307 |
||
1308 |
ifndef OPENJDK |
|
14231 | 1309 |
FONT_HEADERS:=-I$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k |
13164 | 1310 |
BUILD_LIBFONTMANAGER_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libfontmanager/mapfile-vers |
1311 |
LIBFONTMANAGER_EXCLUDE_FILES += freetypeScaler.c |
|
1312 |
else |
|
1313 |
FONT_HEADERS:=$(FREETYPE2_CFLAGS) |
|
1314 |
BUILD_LIBFONTMANAGER_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libfontmanager/mapfile-vers.openjdk |
|
1315 |
BUILD_LIBFONTMANAGER_FONTLIB:=$(FREETYPE2_LIBS) |
|
1316 |
endif |
|
1317 |
||
1318 |
LIBFONTMANAGER_OPTIMIZATION:=HIGH |
|
1319 |
||
1320 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
1321 |
LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \ |
|
1322 |
X11TextRenderer.c |
|
1323 |
LIBFONTMANAGER_OPTIMIZATION:=LOW |
|
1324 |
else |
|
1325 |
LIBFONTMANAGER_EXCLUDE_FILES += fontpath.c \ |
|
1326 |
lcdglyph.c |
|
1327 |
endif |
|
1328 |
||
1329 |
BUILD_LIBFONTMANAGER_CFLAGS_COMMON:=\ |
|
1330 |
$(X_CFLAGS) \ |
|
1331 |
-DLE_STANDALONE -DHEADLESS \ |
|
1332 |
$(FONT_HEADERS) \ |
|
1333 |
-I$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
1334 |
-I$(JDK_TOPDIR)/src/share/native/sun/font/layout \ |
|
1335 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
13702 | 1336 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \ |
13164 | 1337 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
1338 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
|
1339 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
13702 | 1340 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
13164 | 1341 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d |
1342 |
||
1343 |
# Turn off aliasing with GCC for ExtensionSubtables.cpp |
|
1344 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
1345 |
BUILD_LIBFONTMANAGER_ExtensionSubtables.cpp_CXXFLAGS:=-fno-strict-aliasing |
|
1346 |
endif |
|
1347 |
||
1348 |
$(eval $(call SetupNativeCompilation,BUILD_LIBFONTMANAGER,\ |
|
1349 |
LIBRARY:=fontmanager, \ |
|
1350 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1351 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/font\ |
|
13702 | 1352 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/font,\ |
13164 | 1353 |
EXCLUDE_FILES:=$(LIBFONTMANAGER_EXCLUDE_FILES) \ |
1354 |
AccelGlyphCache.c,\ |
|
1355 |
LANG:=C++,\ |
|
1356 |
CFLAGS:=$(CFLAGS_JDKLIB) $(BUILD_LIBFONTMANAGER_CFLAGS_COMMON),\ |
|
1357 |
CXXFLAGS:=$(CXXFLAGS_JDKLIB) $(BUILD_LIBFONTMANAGER_CFLAGS_COMMON),\ |
|
1358 |
OPTIMIZATION:=$(LIBFONTMANAGER_OPTIMIZATION), \ |
|
13702 | 1359 |
CFLAGS_windows= -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows \ |
13164 | 1360 |
-DCC_NOEX, \ |
1361 |
MAPFILE:=$(BUILD_LIBFONTMANAGER_MAPFILE), \ |
|
13702 | 1362 |
LDFLAGS:=$(subst -Xlinker -z -Xlinker defs,,$(LDFLAGS_JDKLIB)) $(LDFLAGS_CXX_JDK) \ |
13164 | 1363 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
13702 | 1364 |
LDFLAGS_SUFFIX:=$(BUILD_LIBFONTMANAGER_FONTLIB),\ |
1365 |
LDFLAGS_SUFFIX_linux:=-lawt $(LIBM) $(LIBCXX) -ljava -ljvm -lc,\ |
|
1366 |
LDFLAGS_SUFFIX_solaris:=-lawt -lawt_xawt -lc $(LIBM) $(LIBCXX) -ljava -ljvm,\ |
|
14231 | 1367 |
LDFLAGS_SUFFIX_macosx:=-lawt $(LIBM) $(LIBCXX) -undefined dynamic_lookup \ |
1368 |
-ljava -ljvm,\ |
|
1369 |
LDFLAGS_SUFFIX_windows:=$(WIN_JAVA_LIB) advapi32.lib user32.lib gdi32.lib \ |
|
1370 |
$(WIN_AWT_LIB),\ |
|
13702 | 1371 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1372 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1373 |
-D "JDK_FNAME=fontmanager.dll" \ |
1374 |
-D "JDK_INTERNAL_NAME=fontmanager" \ |
|
1375 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1376 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfontmanager,\ |
1377 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1378 |
|
1379 |
$(BUILD_LIBFONTMANAGER) : $(BUILD_LIBAWT) |
|
1380 |
||
1381 |
ifneq (,$(findstring $(OPENJDK_TARGET_OS),solaris macosx)) |
|
1382 |
$(BUILD_LIBFONTMANAGER) : $(BUILD_LIBAWT_XAWT) |
|
1383 |
endif |
|
1384 |
||
1385 |
BUILD_LIBRARIES += $(BUILD_LIBFONTMANAGER) |
|
1386 |
||
1387 |
########################################################################################## |
|
1388 |
||
1389 |
ifndef OPENJDK |
|
1390 |
||
1391 |
# ifeq ($(OPENJDK_TARGET_OS), linux) |
|
1392 |
# ifeq ("$(CC_VER_MAJOR)", "3") |
|
1393 |
# OTHER_LDLIBS += -Wl,-Bstatic -lgcc_eh -Wl,-Bdynamic |
|
1394 |
# endif |
|
1395 |
# endif |
|
1396 |
# |
|
1397 |
# The resulting size of the t2k lib file is (at least on linux) dependant on the order of |
|
1398 |
# the input .o files. Because of this the new build will differ in size to the old build. |
|
1399 |
BUILD_LIBT2K_CFLAGS_COMMON:=-I$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
1400 |
-I$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k \ |
|
1401 |
-I$(JDK_TOPDIR)/src/closed/share/native/sun/font \ |
|
1402 |
-I$(JDK_TOPDIR)/src/share/share/native/sun/font \ |
|
13702 | 1403 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/font \ |
13164 | 1404 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
1405 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
13702 | 1406 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
13164 | 1407 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d |
1408 |
||
1409 |
$(eval $(call SetupNativeCompilation,BUILD_LIBT2K,\ |
|
1410 |
LIBRARY:=t2k, \ |
|
1411 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1412 |
SRC:=$(JDK_TOPDIR)/src/closed/share/native/sun/font \ |
|
1413 |
$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k \ |
|
1414 |
$(JDK_TOPDIR)/src/closed/share/native/sun/font/t2k/ttHints,\ |
|
1415 |
EXCLUDE_FILES:=orion.c,\ |
|
1416 |
LANG:=C++,\ |
|
1417 |
OPTIMIZATION:=HIGH, \ |
|
1418 |
CFLAGS:=$(CFLAGS_JDKLIB) $(BUILD_LIBT2K_CFLAGS_COMMON),\ |
|
1419 |
CXXFLAGS:=$(CXXFLAGS_JDKLIB) $(BUILD_LIBT2K_CFLAGS_COMMON),\ |
|
1420 |
CFLAGS_windows=-DCC_NOEX, \ |
|
1421 |
CXXFLAGS_windows=-DCC_NOEX, \ |
|
1422 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libt2k/mapfile-vers, \ |
|
13702 | 1423 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
13164 | 1424 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
1425 |
LDFLAGS_windows:=user32.lib $(JDK_OUTPUTDIR)/objs/libfontmanager/fontmanager.lib,\ |
|
13702 | 1426 |
LDFLAGS_SUFFIX_posix:=$(LIBM) $(LIBCXX) -lfontmanager -ljava -ljvm -lc,\ |
1427 |
LDFLAGS_SUFFIX_solaris:=-lawt -lawt_xawt,\ |
|
1428 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
1429 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1430 |
-D "JDK_FNAME=t2k.dll" \ |
1431 |
-D "JDK_INTERNAL_NAME=t2k" \ |
|
1432 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1433 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libt2k,\ |
1434 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1435 |
|
1436 |
# t2k is linked against fontmanager |
|
1437 |
$(BUILD_LIBT2K) : $(BUILD_LIBFONTMANAGER) |
|
1438 |
||
1439 |
BUILD_LIBRARIES += $(BUILD_LIBT2K) |
|
1440 |
endif |
|
1441 |
||
1442 |
########################################################################################## |
|
1443 |
||
1444 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
13702 | 1445 |
ifeq ($(OPENJDK_TARGET_CPU), x86) |
13164 | 1446 |
KERNEL32_LIB:=kernel32.lib |
1447 |
endif |
|
1448 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAWT,\ |
|
1449 |
LIBRARY:=jawt, \ |
|
1450 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1451 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows,\ |
13164 | 1452 |
INCLUDE_FILES:=jawt.cpp,\ |
1453 |
LANG:=C++,\ |
|
1454 |
OPTIMIZATION:=LOW, \ |
|
1455 |
CFLAGS:=$(CXXFLAGS_JDKLIB) \ |
|
1456 |
-EHsc -DUNICODE -D_UNICODE \ |
|
13702 | 1457 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/windows \ |
13164 | 1458 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
1459 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
1460 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
13702 | 1461 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d/windows, \ |
1462 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(KERNEL32_LIB) $(LDFLAGS_CXX_JDK) \ |
|
13164 | 1463 |
advapi32.lib $(WIN_AWT_LIB),\ |
1464 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
13702 | 1465 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1466 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1467 |
-D "JDK_FNAME=jawt.dll" \ |
1468 |
-D "JDK_INTERNAL_NAME=jawt" \ |
|
1469 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1470 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjawt,\ |
1471 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1472 |
|
1473 |
$(BUILD_LIBJAWT) : $(BUILD_LIBAWT) |
|
1474 |
||
1475 |
$(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX): $(BUILD_LIBJAWT) |
|
1476 |
$(ECHO) Copying $(@F) |
|
13702 | 1477 |
$(CP) $(JDK_OUTPUTDIR)/objs/libjawt/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX) $@ |
13164 | 1478 |
|
1479 |
BUILD_LIBRARIES += $(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX) |
|
1480 |
||
1481 |
else # OPENJDK_TARGET_OS not windows |
|
1482 |
||
1483 |
JAWT_LIBS:= |
|
1484 |
ifneq ($(OPENJDK_TARGET_OS), solaris) |
|
1485 |
JAWT_LIBS += -lawt |
|
1486 |
endif |
|
1487 |
||
1488 |
ifndef BUILD_HEADLESS_ONLY |
|
1489 |
JAWT_LIBS += -lawt_xawt |
|
1490 |
else |
|
1491 |
JAWT_LIBS += -lawt_headless |
|
1492 |
HEADLESS_CFLAG += -DHEADLESS |
|
1493 |
endif |
|
1494 |
||
1495 |
JAWT_FILES:=jawt.c |
|
1496 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
1497 |
JAWT_FILES:=jawt.m |
|
1498 |
JAWT_LIBS:=-lawt_lwawt |
|
1499 |
endif |
|
1500 |
||
1501 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAWT,\ |
|
1502 |
LIBRARY:=jawt, \ |
|
1503 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1504 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt \ |
13164 | 1505 |
$(JDK_TOPDIR)/src/macosx/native/sun/awt,\ |
1506 |
INCLUDE_FILES:=$(JAWT_FILES),\ |
|
1507 |
LANG:=C,\ |
|
1508 |
OPTIMIZATION:=LOW, \ |
|
1509 |
CFLAGS:=$(CFLAGS_JDKLIB), \ |
|
1510 |
CFLAGS_linux:=$(HEADLESS_CFLAG),\ |
|
1511 |
CFLAGS_macosx:=-I$(JDK_TOPDIR)/src/solaris/native/sun/awt ,\ |
|
1512 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjawt/mapfile-vers, \ |
|
1513 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1514 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1515 |
LDFLAGS_solaris:=-L$(OPENWIN_HOME)/sfw/lib$(OPENJDK_TARGET_CPU_ISADIR) -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR),\ |
1516 |
LDFLAGS_SUFFIX_linux:=$(JAWT_LIBS) $(LDFLAGS_JDKLIB_SUFFIX),\ |
|
1517 |
LDFLAGS_SUFFIX_solaris:=$(JAWT_LIBS) $(LDFLAGS_JDKLIB_SUFFIX) -lXrender,\ |
|
1518 |
LDFLAGS_SUFFIX_macosx:=-Xlinker -rpath -Xlinker @loader_path $(JAWT_LIBS) \ |
|
1519 |
-framework Cocoa $(LDFLAGS_JDKLIB_SUFFIX),\ |
|
13164 | 1520 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjawt)) |
1521 |
||
1522 |
ifndef BUILD_HEADLESS_ONLY |
|
1523 |
$(BUILD_LIBJAWT) : $(BUILD_LIBAWT_XAWT) |
|
1524 |
else |
|
1525 |
$(BUILD_LIBJAWT) : $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)awt_headless$(SHARED_LIBRARY_SUFFIX) |
|
1526 |
endif |
|
1527 |
||
1528 |
ifeq ($(OPENJDK_TARGET_OS),macosx) |
|
1529 |
$(BUILD_LIBJAWT) : $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)awt_lwawt$(SHARED_LIBRARY_SUFFIX) |
|
1530 |
endif |
|
1531 |
||
1532 |
endif # OPENJDK_TARGET_OS |
|
1533 |
||
1534 |
BUILD_LIBRARIES += $(BUILD_LIBJAWT) |
|
1535 |
||
1536 |
########################################################################################## |
|
1537 |
||
13702 | 1538 |
LIBINSTRUMENT_SRC :=$(JDK_TOPDIR)/src/share/instrument \ |
1539 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/io \ |
|
1540 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/instrument |
|
1541 |
||
1542 |
LIBINSTRUMENT_FILES :=\ |
|
13164 | 1543 |
EncodingSupport.c \ |
1544 |
EncodingSupport_md.c \ |
|
1545 |
FileSystemSupport_md.c \ |
|
1546 |
InstrumentationImplNativeMethods.c \ |
|
1547 |
InvocationAdapter.c \ |
|
1548 |
JarFacade.c \ |
|
1549 |
JPLISAgent.c \ |
|
1550 |
JPLISAssert.c \ |
|
1551 |
JavaExceptions.c \ |
|
1552 |
PathCharsValidator.c \ |
|
1553 |
Reentrancy.c \ |
|
1554 |
Utilities.c \ |
|
1555 |
canonicalize_md.c |
|
1556 |
||
13702 | 1557 |
LIBINSTRUMENT_DIR :=$(JDK_OUTPUTDIR)/objs/libinstrument |
1558 |
LIBINSTRUMENT_CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1559 |
-I$(JDK_TOPDIR)/src/share/instrument \ |
|
1560 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/instrument \ |
|
1561 |
-I$(JDK_TOPDIR)/src/share/bin |
|
1562 |
||
1563 |
LIBINSTRUMENT_LDFLAGS:= |
|
1564 |
LIBINSTRUMENT_LDFLAGS_SUFFIX:= |
|
13164 | 1565 |
|
1566 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
13702 | 1567 |
LIBINSTRUMENT_LDFLAGS += $(JDK_OUTPUTDIR)/objs/jli_static.lib $(WIN_JAVA_LIB) \ |
1568 |
-export:Agent_OnAttach advapi32.lib |
|
1569 |
# Statically link the C runtime so that there are not dependencies on modules |
|
1570 |
# not on the search patch when invoked from the Windows system directory |
|
1571 |
# (or elsewhere). |
|
1572 |
LIBINSTRUMENT_CFLAGS := $(filter-out -MD,$(LIBINSTRUMENT_CFLAGS)) |
|
1573 |
# equivalent of strcasecmp is stricmp on Windows |
|
1574 |
LIBINSTRUMENT_CFLAGS += -Dstrcasecmp=stricmp |
|
13164 | 1575 |
endif |
1576 |
||
1577 |
$(eval $(call SetupNativeCompilation,BUILD_LIBINSTRUMENT,\ |
|
1578 |
LIBRARY:=instrument, \ |
|
1579 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1580 |
SRC:=$(LIBINSTRUMENT_SRC),\ |
1581 |
INCLUDE_FILES:=$(LIBINSTRUMENT_FILES),\ |
|
13164 | 1582 |
LANG:=C,\ |
1583 |
OPTIMIZATION:=LOW, \ |
|
13702 | 1584 |
CFLAGS:=$(LIBINSTRUMENT_CFLAGS),\ |
13164 | 1585 |
CFLAGS_debug:=-DJPLIS_LOGGING,\ |
1586 |
CFLAGS_release:=-DNO_JPLIS_LOGGING,\ |
|
1587 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libinstrument/mapfile-vers, \ |
|
13702 | 1588 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
1589 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
|
1590 |
$(LIBINSTRUMENT_LDFLAGS),\ |
|
1591 |
LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN,/jli),\ |
|
1592 |
LDFLAGS_solaris:= $(call SET_SHARED_LIBRARY_ORIGIN,/jli),\ |
|
1593 |
LDFLAGS_macosx:=-Xlinker -all_load $(JDK_OUTPUTDIR)/objs/libjli_static.a \ |
|
1594 |
-framework Cocoa -framework Security -framework ApplicationServices,\ |
|
1595 |
LDFLAGS_SUFFIX:=$(LIBINSTRUMENT_LDFLAGS_SUFFIX),\ |
|
1596 |
LDFLAGS_SUFFIX_macosx:=-liconv $(LIBZ),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1597 |
LDFLAGS_SUFFIX_solaris:=$(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli $(LIBDL) -lc,\ |
13702 | 1598 |
LDFLAGS_SUFFIX_linux:=$(LIBZ) -L $(INSTALL_LIBRARIES_HERE)/jli -ljli $(LIBDL),\ |
1599 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
|
1600 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1601 |
-D "JDK_FNAME=instrument.dll" \ |
1602 |
-D "JDK_INTERNAL_NAME=instrument" \ |
|
1603 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1604 |
OBJECT_DIR:=$(LIBINSTRUMENT_DIR),\ |
13164 | 1605 |
DEBUG_SYMBOLS:=true)) |
1606 |
||
1607 |
ifneq (,$(findstring $(OPENJDK_TARGET_OS), macosx windows)) |
|
1608 |
$(BUILD_LIBINSTRUMENT) : $(JDK_OUTPUTDIR)/objs/$(LIBRARY_PREFIX)jli_static$(STATIC_LIBRARY_SUFFIX) |
|
1609 |
else |
|
1610 |
$(BUILD_LIBINSTRUMENT) : $(INSTALL_LIBRARIES_HERE)/jli/$(LIBRARY_PREFIX)jli$(SHARED_LIBRARY_SUFFIX) |
|
1611 |
endif |
|
1612 |
$(BUILD_LIBINSTRUMENT) : $(BUILD_LIBJAVA) |
|
1613 |
||
1614 |
BUILD_LIBRARIES += $(BUILD_LIBINSTRUMENT) |
|
1615 |
||
1616 |
########################################################################################## |
|
1617 |
||
1618 |
BUILD_LIBMANAGEMENT_SRC:=$(JDK_TOPDIR)/src/share/native/sun/management \ |
|
13702 | 1619 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/management \ |
1620 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/management |
|
13164 | 1621 |
|
1622 |
BUILD_LIBMANAGEMENT_EXCLUDES:= |
|
1623 |
||
1624 |
BUILD_LIBMANAGEMENT_CFLAGS:=-I$(JDK_TOPDIR)/src/share/native/sun/management |
|
1625 |
||
1626 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
|
1627 |
BUILD_LIBMANAGEMENT_EXCLUDES += OperatingSystem_md.c |
|
1628 |
else |
|
1629 |
BUILD_LIBMANAGEMENT_EXCLUDES += UnixOperatingSystem_md.c |
|
1630 |
endif |
|
1631 |
||
1632 |
ifneq ($(OPENJDK_TARGET_OS),solaris) |
|
1633 |
BUILD_LIBMANAGEMENT_EXCLUDES += SolarisOperatingSystem.c |
|
1634 |
endif |
|
1635 |
||
1636 |
ifneq ($(OPENJDK_TARGET_OS),linux) |
|
1637 |
BUILD_LIBMANAGEMENT_EXCLUDES += LinuxOperatingSystem.c |
|
1638 |
endif |
|
1639 |
||
1640 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
|
1641 |
BUILD_LIBMANAGEMENT_EXCLUDES += MacosxOperatingSystem.c |
|
1642 |
endif |
|
1643 |
||
13702 | 1644 |
LIBMANAGEMENT_OPTIMIZATION:=HIGH |
1645 |
ifneq ($(findstring $(OPENJDK_TARGET_OS),solaris linux),) |
|
14707
511b222f99b2
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14706
diff
changeset
|
1646 |
ifeq ($(ENABLE_DEBUG_SYMBOLS), true) |
13702 | 1647 |
LIBMANAGEMENT_OPTIMIZATION:=LOW |
1648 |
endif |
|
1649 |
endif |
|
13164 | 1650 |
|
1651 |
$(eval $(call SetupNativeCompilation,BUILD_LIBMANAGEMENT,\ |
|
1652 |
LIBRARY:=management,\ |
|
1653 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1654 |
SRC:=$(BUILD_LIBMANAGEMENT_SRC),\ |
|
1655 |
EXCLUDE_FILES:=$(BUILD_LIBMANAGEMENT_EXCLUDES),\ |
|
1656 |
LANG:=C,\ |
|
13702 | 1657 |
OPTIMIZATION:=$(LIBMANAGEMENT_OPTIMIZATION), \ |
13164 | 1658 |
CFLAGS:=$(CFLAGS_JDKLIB) $(BUILD_LIBMANAGEMENT_CFLAGS),\ |
1659 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libmanagement/mapfile-vers, \ |
|
1660 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1661 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1662 |
LDFLAGS_solaris:=-lkstat,\ |
|
1663 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
14231 | 1664 |
LDFLAGS_SUFFIX_windows:=jvm.lib psapi.lib $(WIN_JAVA_LIB) advapi32.lib,\ |
13702 | 1665 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1666 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1667 |
-D "JDK_FNAME=management.dll" \ |
1668 |
-D "JDK_INTERNAL_NAME=management" \ |
|
1669 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1670 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libmanagement,\ |
1671 |
DEBUG_SYMBOLS:=true)) |
|
1672 |
||
1673 |
$(BUILD_LIBMANAGEMENT) : $(BUILD_LIBJAVA) |
|
1674 |
||
1675 |
BUILD_LIBRARIES += $(BUILD_LIBMANAGEMENT) |
|
1676 |
||
1677 |
########################################################################################## |
|
1678 |
||
13702 | 1679 |
BUILD_LIBHPROF_SRC:=$(JDK_TOPDIR)/src/share/demo/jvmti/hprof $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/demo/jvmti/hprof |
13164 | 1680 |
BUILD_LIBHPROF_CFLAGS:=-I$(JDK_TOPDIR)/src/share/demo/jvmti/hprof \ |
1681 |
-I$(JDK_TOPDIR)/src/share/npt \ |
|
13702 | 1682 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt \ |
13164 | 1683 |
-I$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo |
1684 |
||
1685 |
BUILD_LIBHPROF_LDFLAGS:= |
|
1686 |
||
13702 | 1687 |
LIBHPROF_OPTIMIZATION:=HIGHEST |
1688 |
ifneq ($(findstring $(OPENJDK_TARGET_OS),solaris linux),) |
|
14707
511b222f99b2
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14706
diff
changeset
|
1689 |
ifeq ($(ENABLE_DEBUG_SYMBOLS), true) |
13702 | 1690 |
LIBHPROF_OPTIMIZATION:=LOW |
1691 |
endif |
|
1692 |
endif |
|
1693 |
||
13164 | 1694 |
$(eval $(call SetupNativeCompilation,BUILD_LIBHPROF,\ |
1695 |
LIBRARY:=hprof, \ |
|
1696 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1697 |
SRC:=$(BUILD_LIBHPROF_SRC),\ |
|
1698 |
LANG:=C,\ |
|
13702 | 1699 |
OPTIMIZATION:=$(LIBHPROF_OPTIMIZATION), \ |
13164 | 1700 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
1701 |
$(BUILD_LIBHPROF_CFLAGS),\ |
|
1702 |
CFLAGS_debug:=-DHPROF_LOGGING,\ |
|
1703 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libhprof/mapfile-vers, \ |
|
1704 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1705 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1706 |
LDFLAGS_windows:=wsock32.lib winmm.lib advapi32.lib,\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1707 |
LDFLAGS_SUFFIX_linux:=$(LIBDL),\ |
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1708 |
LDFLAGS_SUFFIX_macosx:=$(LIBDL),\ |
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1709 |
LDFLAGS_SUFFIX_solaris:=-lsocket -lnsl $(LIBDL) -lc,\ |
13702 | 1710 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1711 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1712 |
-D "JDK_FNAME=hprof.dll" \ |
1713 |
-D "JDK_INTERNAL_NAME=hprof" \ |
|
1714 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1715 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libhprof_jvmti,\ |
1716 |
DEBUG_SYMBOLS:=true)) |
|
1717 |
||
1718 |
BUILD_LIBRARIES += $(BUILD_LIBHPROF) |
|
1719 |
||
1720 |
########################################################################################## |
|
1721 |
||
1722 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAVA_CRW_DEMO,\ |
|
1723 |
LIBRARY:=java_crw_demo, \ |
|
1724 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1725 |
SRC:=$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo,\ |
|
1726 |
LANG:=C,\ |
|
1727 |
OPTIMIZATION:=LOW, \ |
|
1728 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1729 |
-I$(JDK_TOPDIR)/src/share/demo/jvmti/java_crw_demo,\ |
|
1730 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjava_crw_demo/mapfile-vers, \ |
|
1731 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1732 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
1733 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 1734 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1735 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1736 |
-D "JDK_FNAME=java_crw_demo.dll" \ |
1737 |
-D "JDK_INTERNAL_NAME=java_crw_demo" \ |
|
1738 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1739 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjava_crw_demo,\ |
1740 |
DEBUG_SYMBOLS:=true)) |
|
1741 |
||
1742 |
BUILD_LIBRARIES += $(BUILD_LIBJAVA_CRW_DEMO) |
|
1743 |
||
1744 |
########################################################################################## |
|
1745 |
||
1746 |
$(eval $(call SetupNativeCompilation,BUILD_LIBNPT,\ |
|
1747 |
LIBRARY:=npt, \ |
|
1748 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1749 |
SRC:=$(JDK_TOPDIR)/src/share/npt $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt,\ |
13164 | 1750 |
LANG:=C,\ |
1751 |
OPTIMIZATION:=LOW, \ |
|
1752 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1753 |
-I$(JDK_TOPDIR)/src/share/npt \ |
|
13702 | 1754 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/npt,\ |
13164 | 1755 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnpt/mapfile-vers, \ |
1756 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1757 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1758 |
LDFLAGS_macosx:=-liconv,\ |
|
1759 |
LDFLAGS_SUFFIX_windows:=-export:nptInitialize -export:nptTerminate,\ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
1760 |
LDFLAGS_SUFFIX_solaris:=-lc, \ |
13702 | 1761 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1762 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1763 |
-D "JDK_FNAME=npt.dll" \ |
1764 |
-D "JDK_INTERNAL_NAME=npt" \ |
|
1765 |
-D "JDK_FTYPE=0x2L",\ |
|
13164 | 1766 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnpt,\ |
1767 |
DEBUG_SYMBOLS:=true)) |
|
1768 |
||
1769 |
BUILD_LIBRARIES += $(BUILD_LIBNPT) |
|
1770 |
||
1771 |
########################################################################################## |
|
1772 |
||
1773 |
LIBNET_SRC_DIRS:=$(JDK_TOPDIR)/src/share/native/java/net \ |
|
13702 | 1774 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net \ |
1775 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/dns \ |
|
1776 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/spi |
|
13164 | 1777 |
|
14231 | 1778 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
1779 |
LIBNET_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/www/protocol/http/ntlm |
|
1780 |
else |
|
1781 |
LIBNET_SRC_DIRS+=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/net/sdp |
|
1782 |
endif |
|
1783 |
||
13164 | 1784 |
LIBNET_CFLAGS:=$(foreach dir,$(LIBNET_SRC_DIRS),-I$(dir)) |
1785 |
||
1786 |
LIBNET_EXCLUDE_FILES:= |
|
1787 |
ifneq ($(OPENJDK_TARGET_OS),linux) |
|
1788 |
LIBNET_EXCLUDE_FILES += linux_close.c |
|
1789 |
endif |
|
1790 |
||
1791 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
|
1792 |
LIBNET_EXCLUDE_FILES += bsd_close.c |
|
1793 |
endif |
|
1794 |
||
1795 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
1796 |
LIBNET_EXCLUDE_FILES += PlainSocketImpl.c PlainDatagramSocketImpl.c SdpSupport.c |
|
1797 |
else |
|
1798 |
LIBNET_EXCLUDE_FILES += TwoStacksPlainSocketImpl.c DualStackPlainSocketImpl.c \ |
|
1799 |
TwoStacksPlainDatagramSocketImpl.c DualStackPlainDatagramSocketImpl.c \ |
|
1800 |
NTLMAuthSequence.c NetworkInterface_winXP.c |
|
1801 |
endif |
|
1802 |
||
1803 |
$(eval $(call SetupNativeCompilation,BUILD_LIBNET,\ |
|
1804 |
LIBRARY:=net,\ |
|
1805 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1806 |
SRC:=$(LIBNET_SRC_DIRS),\ |
|
1807 |
EXCLUDE_FILES:=$(LIBNET_EXCLUDE_FILES), \ |
|
1808 |
LANG:=C,\ |
|
1809 |
OPTIMIZATION:=LOW, \ |
|
1810 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1811 |
$(LIBNET_CFLAGS),\ |
|
1812 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnet/mapfile-vers, \ |
|
1813 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
1814 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 1815 |
LDFLAGS_SUFFIX_macosx:=-ljvm -ljava,\ |
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
1816 |
LDFLAGS_SUFFIX_solaris:=-ljvm -ljava -lnsl -lsocket $(LIBDL) -lc ,\ |
13702 | 1817 |
LDFLAGS_SUFFIX_linux:=$(LIBDL) -ljvm -lpthread -ljava,\ |
14231 | 1818 |
LDFLAGS_SUFFIX_windows:=ws2_32.lib jvm.lib secur32.lib iphlpapi.lib \ |
1819 |
delayimp.lib $(WIN_JAVA_LIB) advapi32.lib \ |
|
1820 |
-DELAYLOAD:secur32.dll -DELAYLOAD:iphlpapi.dll, \ |
|
13702 | 1821 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1822 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1823 |
-D "JDK_FNAME=net.dll" \ |
1824 |
-D "JDK_INTERNAL_NAME=net" \ |
|
1825 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1826 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnet,\ |
1827 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1828 |
|
1829 |
$(BUILD_LIBNET) : $(BUILD_LIBJAVA) |
|
1830 |
||
1831 |
BUILD_LIBRARIES += $(BUILD_LIBNET) |
|
1832 |
||
1833 |
$(JDK_OUTPUTDIR)/lib/net.properties: $(JDK_TOPDIR)/src/share/lib/net.properties |
|
14231 | 1834 |
$(ECHO) $(LOG_INFO) Copying $(@F) |
13164 | 1835 |
$(MKDIR) -p $(@D) |
1836 |
$(CP) $< $@ |
|
1837 |
||
1838 |
COPY_FILES += $(JDK_OUTPUTDIR)/lib/net.properties |
|
1839 |
||
1840 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 1841 |
$(JDK_OUTPUTDIR)/lib/sdp/sdp.conf.template : $(JDK_TOPDIR)/src/${OPENJDK_TARGET_OS_API_DIR}/lib/sdp/sdp.conf.template |
14231 | 1842 |
$(ECHO) $(LOG_INFO) Copying $(@F) |
13164 | 1843 |
$(MKDIR) -p $(@D) |
1844 |
$(CP) $< $@ |
|
1845 |
||
1846 |
COPY_FILES += $(JDK_OUTPUTDIR)/lib/sdp/sdp.conf.template |
|
1847 |
endif |
|
1848 |
||
1849 |
########################################################################################## |
|
1850 |
||
1851 |
BUILD_LIBNIO_SRC:=\ |
|
13702 | 1852 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/nio \ |
1853 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch \ |
|
1854 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/fs |
|
13164 | 1855 |
|
1856 |
BUILD_LIBNIO_CFLAGS:=\ |
|
1857 |
-I$(JDK_TOPDIR)/src/share/native/sun/nio/ch \ |
|
1858 |
-I$(JDK_TOPDIR)/src/share/native/java/io \ |
|
1859 |
-I$(JDK_TOPDIR)/src/share/native/java/net \ |
|
13702 | 1860 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net |
13164 | 1861 |
|
1862 |
BUILD_LIBNIO_FILES:=\ |
|
1863 |
DatagramChannelImpl.c \ |
|
1864 |
DatagramDispatcher.c \ |
|
1865 |
FileChannelImpl.c \ |
|
1866 |
FileDispatcherImpl.c \ |
|
1867 |
FileKey.c \ |
|
1868 |
IOUtil.c \ |
|
1869 |
MappedByteBuffer.c \ |
|
1870 |
Net.c \ |
|
1871 |
ServerSocketChannelImpl.c \ |
|
1872 |
SocketChannelImpl.c \ |
|
1873 |
SocketDispatcher.c |
|
1874 |
||
1875 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
1876 |
BUILD_LIBNIO_FILES += \ |
|
1877 |
Iocp.c \ |
|
1878 |
RegistryFileTypeDetector.c \ |
|
1879 |
WindowsAsynchronousFileChannelImpl.c \ |
|
1880 |
WindowsAsynchronousServerSocketChannelImpl.c \ |
|
1881 |
WindowsAsynchronousSocketChannelImpl.c \ |
|
1882 |
WindowsNativeDispatcher.c \ |
|
1883 |
WindowsSelectorImpl.c |
|
1884 |
endif |
|
1885 |
||
1886 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
13702 | 1887 |
BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
13164 | 1888 |
BUILD_LIBNIO_FILES += \ |
1889 |
EPoll.c \ |
|
1890 |
EPollArrayWrapper.c \ |
|
1891 |
EPollPort.c \ |
|
1892 |
InheritedChannel.c \ |
|
1893 |
NativeThread.c \ |
|
13702 | 1894 |
PollArrayWrapper.c \ |
13164 | 1895 |
UnixAsynchronousServerSocketChannelImpl.c \ |
1896 |
UnixAsynchronousSocketChannelImpl.c \ |
|
1897 |
GnomeFileTypeDetector.c \ |
|
14702
111342b28e67
7142921: (fs) Files.probeContentType reports a MIME type of "text/plain" on Ubuntu 11.04
dxu
parents:
14526
diff
changeset
|
1898 |
MagicFileTypeDetector.c \ |
13164 | 1899 |
LinuxNativeDispatcher.c \ |
1900 |
LinuxWatchService.c \ |
|
1901 |
UnixCopyFile.c \ |
|
1902 |
UnixNativeDispatcher.c |
|
1903 |
endif |
|
1904 |
||
1905 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
13702 | 1906 |
BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
13164 | 1907 |
BUILD_LIBNIO_SRC += $(JDK_TOPDIR)/src/macosx/native/sun/nio/ch |
1908 |
BUILD_LIBNIO_FILES += \ |
|
1909 |
InheritedChannel.c \ |
|
1910 |
NativeThread.c \ |
|
1911 |
PollArrayWrapper.c \ |
|
1912 |
UnixAsynchronousServerSocketChannelImpl.c \ |
|
1913 |
UnixAsynchronousSocketChannelImpl.c \ |
|
1914 |
BsdNativeDispatcher.c \ |
|
13702 | 1915 |
MacOSXNativeDispatcher.c \ |
13164 | 1916 |
UnixCopyFile.c \ |
1917 |
UnixNativeDispatcher.c \ |
|
1918 |
KQueue.c \ |
|
1919 |
KQueuePort.c \ |
|
1920 |
KQueueArrayWrapper.c |
|
1921 |
endif |
|
1922 |
||
1923 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 1924 |
BUILD_LIBNIO_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
13164 | 1925 |
BUILD_LIBNIO_FILES += \ |
1926 |
DevPollArrayWrapper.c \ |
|
1927 |
InheritedChannel.c \ |
|
1928 |
NativeThread.c \ |
|
1929 |
PollArrayWrapper.c \ |
|
1930 |
SolarisEventPort.c \ |
|
1931 |
UnixAsynchronousServerSocketChannelImpl.c \ |
|
1932 |
UnixAsynchronousSocketChannelImpl.c \ |
|
1933 |
GnomeFileTypeDetector.c \ |
|
1934 |
SolarisNativeDispatcher.c \ |
|
1935 |
SolarisWatchService.c \ |
|
1936 |
UnixCopyFile.c \ |
|
1937 |
UnixNativeDispatcher.c |
|
1938 |
endif |
|
1939 |
||
1940 |
$(eval $(call SetupNativeCompilation,BUILD_LIBNIO,\ |
|
1941 |
LIBRARY:=nio,\ |
|
1942 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
1943 |
SRC:=$(BUILD_LIBNIO_SRC),\ |
|
1944 |
INCLUDE_FILES:=$(BUILD_LIBNIO_FILES), \ |
|
1945 |
LANG:=C,\ |
|
1946 |
OPTIMIZATION:=HIGH, \ |
|
1947 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
1948 |
$(BUILD_LIBNIO_CFLAGS),\ |
|
1949 |
MAPFILE:=$(BUILD_LIBNIO_MAPFILE), \ |
|
1950 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(BUILD_LIBNIO_LDFLAGS) \ |
|
1951 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
1952 |
LDFLAGS_SUFFIX_linux:=-ljava -lnet -lpthread $(LIBDL),\ |
|
13702 | 1953 |
LDFLAGS_SUFFIX_solaris:=-ljvm -lsocket -lposix4 $(LIBDL) \ |
1954 |
-lsendfile -ljava -lnet -lc,\ |
|
14231 | 1955 |
LDFLAGS_SUFFIX_windows:=jvm.lib ws2_32.lib $(WIN_JAVA_LIB) \ |
1956 |
$(JDK_OUTPUTDIR)/objs/libnet/net.lib \ |
|
13164 | 1957 |
$(JDK_OUTPUTDIR)/objs/libjava/io_util.obj \ |
14231 | 1958 |
$(JDK_OUTPUTDIR)/objs/libjava/FileDescriptor_md.obj \ |
1959 |
advapi32.lib,\ |
|
13702 | 1960 |
LDFLAGS_SUFFIX_macosx:=-ljava -lnet -pthread -framework CoreFoundation,\ |
13164 | 1961 |
LDFLAGS_SUFFIX:=,\ |
13702 | 1962 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
1963 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 1964 |
-D "JDK_FNAME=nio.dll" \ |
1965 |
-D "JDK_INTERNAL_NAME=nio" \ |
|
1966 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 1967 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnio,\ |
1968 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 1969 |
|
1970 |
BUILD_LIBRARIES += $(BUILD_LIBNIO) |
|
1971 |
||
1972 |
$(BUILD_LIBNIO) : $(BUILD_LIBNET) |
|
1973 |
||
1974 |
########################################################################################## |
|
1975 |
||
1976 |
ifeq ($(OPENJDK_TARGET_OS_API),posix) |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
1977 |
|
13164 | 1978 |
ifneq ($(OPENJDK_TARGET_OS),macosx) |
1979 |
||
1980 |
SCTP_WERROR := -Werror |
|
1981 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc) |
|
1982 |
SCTP_WERROR := |
|
1983 |
endif |
|
1984 |
||
1985 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSCTP,\ |
|
1986 |
LIBRARY:=sctp,\ |
|
1987 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
13702 | 1988 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch/sctp,\ |
13164 | 1989 |
LANG:=C,\ |
1990 |
OPTIMIZATION:=LOW, \ |
|
1991 |
CFLAGS:=$(CFLAGS_JDKLIB)\ |
|
1992 |
-I$(JDK_TOPDIR)/src/share/native/sun/nio/ch \ |
|
1993 |
-I$(JDK_TOPDIR)/src/share/native/sun/nio/ch/sctp \ |
|
1994 |
-I$(JDK_TOPDIR)/src/share/native/java/net \ |
|
13702 | 1995 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/nio/ch \ |
1996 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/java/net,\ |
|
13164 | 1997 |
CFLAGS_linux:=$(SCTP_WERROR),\ |
1998 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libsctp/mapfile-vers, \ |
|
1999 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2000 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2001 |
LDFLAGS_SUFFIX_linux:=-lpthread $(LIBDL) -ljava -ljvm,\ |
13164 | 2002 |
LDFLAGS_SUFFIX_posix:=-lnio -lnet,\ |
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
2003 |
LDFLAGS_SUFFIX_solaris:=-lsocket -ljava -ljvm -lc,\ |
13702 | 2004 |
LDFLAGS_SUFFIX_macosx:=-ljava -ljvm,\ |
13164 | 2005 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsctp)) |
2006 |
||
2007 |
BUILD_LIBRARIES += $(BUILD_LIBSCTP) |
|
2008 |
||
2009 |
$(BUILD_LIBSCTP) : $(BUILD_LIBNIO) |
|
2010 |
endif |
|
2011 |
endif |
|
2012 |
||
2013 |
########################################################################################## |
|
2014 |
||
13702 | 2015 |
BUILD_LIBJLI_SRC_DIRS:=$(JDK_TOPDIR)/src/share/bin $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin |
2016 |
LIBJLI_CFLAGS:=$(CFLAGS_JDKLIB) $(foreach dir,$(BUILD_LIBJLI_SRC_DIRS),-I$(dir)) |
|
13164 | 2017 |
|
2018 |
BUILD_LIBJLI_FILES:=\ |
|
2019 |
java.c \ |
|
2020 |
splashscreen_stubs.c \ |
|
2021 |
parse_manifest.c \ |
|
2022 |
version_comp.c \ |
|
2023 |
wildcard.c \ |
|
2024 |
jli_util.c |
|
2025 |
||
2026 |
ifeq ($(JVM_VARIANT_ZERO), true) |
|
2027 |
ERGO_FAMILY:=zero |
|
13702 | 2028 |
else |
2029 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), x86) |
|
13164 | 2030 |
ERGO_FAMILY:=i586 |
13702 | 2031 |
else |
2032 |
ERGO_FAMILY:=$(OPENJDK_TARGET_CPU_ARCH) |
|
2033 |
endif |
|
2034 |
endif |
|
13164 | 2035 |
|
2036 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
13702 | 2037 |
LIBJLI_CFLAGS += -I$(JDK_TOPDIR)/src/macosx/bin |
13164 | 2038 |
BUILD_LIBJLI_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/bin |
2039 |
BUILD_LIBJLI_FILES += java_md_common.c java_md_macosx.c |
|
2040 |
||
2041 |
BUILD_LIBJLI_java_md_macosx.c_CFLAGS:=-x objective-c |
|
2042 |
BUILD_LIBJLI_STATIC_java_md_macosx.c_CFLAGS:=-x objective-c |
|
2043 |
endif |
|
2044 |
||
2045 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
13702 | 2046 |
BUILD_LIBJLI_FILES += java_md.c \ |
2047 |
cmdtoargs.c |
|
2048 |
# Staticically link with c runtime on windows. |
|
2049 |
LIBJLI_CFLAGS:=$(filter-out -MD,$(LIBJLI_CFLAGS)) |
|
13164 | 2050 |
else ifneq ($(OPENJDK_TARGET_OS), macosx) |
2051 |
||
2052 |
BUILD_LIBJLI_FILES += java_md_common.c |
|
2053 |
BUILD_LIBJLI_FILES += java_md_solinux.c ergo.c |
|
2054 |
||
2055 |
ERGO_ARCH_FILE = ergo_$(ERGO_FAMILY).c |
|
2056 |
||
2057 |
# if the architecture specific ergo file exists then |
|
2058 |
# use it, else use the generic definitions from ergo.c |
|
13702 | 2059 |
ifneq ($(wildcard $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/$(ERGO_ARCH_FILE)),) |
13164 | 2060 |
BUILD_LIBJLI_FILES += $(ERGO_ARCH_FILE) |
2061 |
else # !ERGO_ARCH_FILE |
|
13702 | 2062 |
LIBJLI_CFLAGS += -DUSE_GENERIC_ERGO |
13164 | 2063 |
endif # ERGO_ARCH_FILE |
2064 |
endif #WINDOWS |
|
2065 |
||
13702 | 2066 |
# Append defines depending on target platform |
2067 |
LIBJLI_CFLAGS += $(OPENJDK_TARGET_CPU_JLI_CFLAGS) |
|
13164 | 2068 |
|
2069 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
13702 | 2070 |
LIBJLI_CFLAGS += -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" |
13164 | 2071 |
endif |
2072 |
||
2073 |
ifneq ($(USE_EXTERNAL_LIBZ),true) |
|
2074 |
BUILD_LIBJLI_SRC_DIRS += $(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5 |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2075 |
LIBJLI_CFLAGS += $(ZLIB_CPPFLAGS) |
13164 | 2076 |
BUILD_LIBJLI_FILES += \ |
2077 |
inflate.c \ |
|
2078 |
inftrees.c \ |
|
2079 |
inffast.c \ |
|
2080 |
zadler32.c \ |
|
2081 |
zcrc32.c \ |
|
2082 |
zutil.c |
|
2083 |
endif |
|
2084 |
||
2085 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
2086 |
LIBJLI_OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE) |
|
2087 |
else |
|
2088 |
LIBJLI_OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE)/jli |
|
2089 |
endif |
|
2090 |
||
2091 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJLI,\ |
|
2092 |
LIBRARY:=jli,\ |
|
2093 |
OUTPUT_DIR:=$(LIBJLI_OUTPUT_DIR),\ |
|
2094 |
SRC:=$(BUILD_LIBJLI_SRC_DIRS),\ |
|
2095 |
INCLUDE_FILES:=$(BUILD_LIBJLI_FILES),\ |
|
2096 |
LANG:=C,\ |
|
2097 |
OPTIMIZATION:=HIGH, \ |
|
13702 | 2098 |
CFLAGS:=$(LIBJLI_CFLAGS),\ |
13164 | 2099 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjli/mapfile-vers, \ |
2100 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2101 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2102 |
LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
2103 |
LDFLAGS_solaris:=$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
|
2104 |
LDFLAGS_macosx:=-framework Cocoa -framework Security -framework ApplicationServices,\ |
|
2105 |
LDFLAGS_SUFFIX_solaris:=$(LIBZ) $(LIBDL) -lc,\ |
|
2106 |
LDFLAGS_SUFFIX_linux:=$(LIBZ) $(LIBDL) -lc -lpthread,\ |
|
2107 |
LDFLAGS_SUFFIX_macosx:=$(LIBZ),\ |
|
13164 | 2108 |
LDFLAGS_SUFFIX_windows:=\ |
2109 |
-export:JLI_Launch \ |
|
2110 |
-export:JLI_ManifestIterate \ |
|
2111 |
-export:JLI_SetTraceLauncher \ |
|
2112 |
-export:JLI_ReportErrorMessage \ |
|
2113 |
-export:JLI_ReportErrorMessageSys \ |
|
2114 |
-export:JLI_ReportMessage \ |
|
2115 |
-export:JLI_ReportExceptionDescription \ |
|
13702 | 2116 |
-export:JLI_MemAlloc \ |
2117 |
-export:JLI_CmdToArgs \ |
|
2118 |
-export:JLI_GetStdArgc \ |
|
2119 |
-export:JLI_GetStdArgs \ |
|
13164 | 2120 |
advapi32.lib \ |
2121 |
comctl32.lib \ |
|
2122 |
user32.lib,\ |
|
13702 | 2123 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2124 |
RC_FLAGS:=$(RC_FLAGS) \ |
|
14231 | 2125 |
-D "JDK_FNAME=jli.dll" \ |
2126 |
-D "JDK_INTERNAL_NAME=jli" \ |
|
2127 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2128 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli,\ |
2129 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2130 |
|
2131 |
BUILD_LIBRARIES += $(BUILD_LIBJLI) |
|
2132 |
||
2133 |
# On windows, the static library has the same suffix as the import library created by |
|
2134 |
# with the shared library, so the static library is given a different name. No harm |
|
2135 |
# in doing it for all platform to reduce complexity. |
|
2136 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
2137 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJLI_STATIC,\ |
|
2138 |
STATIC_LIBRARY:=jli_static,\ |
|
2139 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs,\ |
|
2140 |
SRC:=$(BUILD_LIBJLI_SRC_DIRS),\ |
|
2141 |
INCLUDE_FILES:=$(BUILD_LIBJLI_FILES),\ |
|
2142 |
LANG:=C,\ |
|
2143 |
OPTIMIZATION:=HIGH, \ |
|
13702 | 2144 |
CFLAGS:=$(STATIC_LIBRARY_FLAGS) $(LIBJLI_CFLAGS),\ |
13164 | 2145 |
ARFLAGS:=$(ARFLAGS),\ |
2146 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli_static)) |
|
2147 |
||
2148 |
BUILD_LIBRARIES += $(BUILD_LIBJLI_STATIC) |
|
2149 |
||
2150 |
else ifeq ($(OPENJDK_TARGET_OS),macosx) |
|
2151 |
# |
|
2152 |
# On macosx they do partial (incremental) linking of libjli_static.a |
|
2153 |
# code it here...rather than add support to NativeCompilation |
|
2154 |
# as this is first time I see it |
|
2155 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJLI_STATIC,\ |
|
2156 |
LIBRARY:=jli_static, \ |
|
2157 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs,\ |
|
2158 |
SRC:=$(BUILD_LIBJLI_SRC_DIRS),\ |
|
2159 |
INCLUDE_FILES:=$(BUILD_LIBJLI_FILES),\ |
|
2160 |
LANG:=C,\ |
|
2161 |
OPTIMIZATION:=HIGH, \ |
|
13702 | 2162 |
CFLAGS:=$(CFLAGS_JDKLIB) $(LIBJLI_CFLAGS),\ |
13164 | 2163 |
LDFLAGS:=-nostdlib -r,\ |
2164 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli_static)) |
|
2165 |
||
2166 |
$(JDK_OUTPUTDIR)/objs/libjli_static.a : $(BUILD_LIBJLI_STATIC) |
|
2167 |
$(CP) -a $< $@ |
|
2168 |
||
2169 |
BUILD_LIBRARIES += $(JDK_OUTPUTDIR)/objs/libjli_static.a |
|
2170 |
endif |
|
2171 |
||
2172 |
########################################################################################## |
|
2173 |
||
14231 | 2174 |
ifndef OPENJDK |
13164 | 2175 |
ifeq ($(ENABLE_JFR), true) |
2176 |
||
2177 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJFR,\ |
|
2178 |
LIBRARY:=jfr,\ |
|
2179 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2180 |
SRC:=$(JDK_TOPDIR)/src/closed/share/native/oracle/jfr,\ |
|
2181 |
LANG:=C,\ |
|
2182 |
OPTIMIZATION:=LOW, \ |
|
2183 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
2184 |
-I$(JDK_TOPDIR)/src/closed/share/javavm/export, \ |
|
2185 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjfr/mapfile-vers, \ |
|
2186 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2187 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2188 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2189 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2190 |
-D "JDK_FNAME=jfr.dll" \ |
2191 |
-D "JDK_INTERNAL_NAME=jfr" \ |
|
2192 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2193 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjfr,\ |
2194 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2195 |
|
2196 |
BUILD_LIBRARIES += $(BUILD_LIBJFR) |
|
2197 |
||
2198 |
endif |
|
14231 | 2199 |
endif |
13164 | 2200 |
|
2201 |
########################################################################################## |
|
2202 |
||
2203 |
ifndef OPENJDK |
|
2204 |
||
2205 |
BUILD_LIBKCMS_EXCLUDE_FILES:= |
|
2206 |
ifeq ($(OPENJDK_TARGET_OS),windows) |
|
2207 |
BUILD_LIBKCMS_EXCLUDE_FILES += ukcpmgr.c unixmem.c |
|
2208 |
else |
|
2209 |
BUILD_LIBKCMS_EXCLUDE_FILES += cmmdll.c registry.c spxffile.c sysinfo.c winmem.c wkcpmgr.c |
|
2210 |
endif |
|
2211 |
||
2212 |
BUILD_LIBKCMS_FLAGS:=$(CFLAGS_JDKLIB) |
|
2213 |
||
2214 |
ifeq ($(OPENJDK_TARGET_OS),solaris) |
|
2215 |
# This particular library uses a feature called PIC_CODE_SMALL (on solaris) |
|
2216 |
# implement it like this...since it's only used here |
|
2217 |
BUILD_LIBKCMS_FLAGS:=$(patsubst -KPIC,-Kpic,$(BUILD_LIBKCMS_FLAGS)) |
|
2218 |
else ifeq ($(OPENJDK_TARGET_CPU_ARCH), ppc) |
|
2219 |
BUILD_LIBKCMS_FLAGS:=$(patsubst -fPIC,-fpic,$(BUILD_LIBKCMS_FLAGS)) |
|
2220 |
endif |
|
2221 |
||
2222 |
$(eval $(call SetupNativeCompilation,BUILD_LIBKCMS,\ |
|
2223 |
LIBRARY:=kcms,\ |
|
2224 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2225 |
SRC:=$(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms,\ |
|
2226 |
LANG:=C,\ |
|
2227 |
EXCLUDE_FILES:=$(BUILD_LIBKCMS_EXCLUDE_FILES),\ |
|
2228 |
OPTIMIZATION:=LOW, \ |
|
2229 |
CFLAGS:=$(BUILD_LIBKCMS_FLAGS) \ |
|
2230 |
-DJAVACMM -DFUT_CALC_EX -DNO_FUT_GCONST,\ |
|
2231 |
CFLAGS_linux:=-Wno-missing-field-initializers,\ |
|
2232 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libkcms/mapfile-vers, \ |
|
2233 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2234 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2235 |
LDFLAGS_SUFFIX_linux:=-lc -lpthread,\ |
13164 | 2236 |
LDFLAGS_SUFFIX_windows:=$(WIN_JAVA_LIB) advapi32.lib user32.lib version.lib, \ |
14706 | 2237 |
LDFLAGS_SUFFIX_posix:=-lm -ljava -ljvm,\ |
13164 | 2238 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms/cmm.rc,\ |
13702 | 2239 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/closed/share/native/sun/java2d/cmm/kcms/cmm.rc,\ |
2240 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2241 |
-D "JDK_FNAME=kcms.dll" \ |
2242 |
-D "JDK_INTERNAL_NAME=kcms" \ |
|
2243 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2244 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libkcms,\ |
2245 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2246 |
|
2247 |
$(BUILD_LIBKCMS) : $(BUILD_LIBJAVA) |
|
2248 |
||
2249 |
BUILD_LIBRARIES += $(BUILD_LIBKCMS) |
|
2250 |
||
2251 |
endif |
|
2252 |
||
2253 |
########################################################################################## |
|
2254 |
||
2255 |
ifndef OPENJDK |
|
2256 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 2257 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
13164 | 2258 |
|
2259 |
ifeq ($(shell if test "$(OS_VERSION_MAJOR)" -eq 5 -a "$(OS_VERSION_MINOR)" -le 10; then $(ECHO) ok; fi), ok) |
|
2260 |
||
2261 |
SUNWJDGA_MAPFILE:= |
|
13702 | 2262 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc) |
13164 | 2263 |
SUNWJDGA_MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjdga/mapfile-vers |
2264 |
endif |
|
2265 |
||
2266 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNWJDGA, \ |
|
2267 |
LIBRARY:=sunwjdga,\ |
|
2268 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2269 |
SRC:=$(JDK_TOPDIR)/src/solaris/native/sun/jdga, \ |
|
2270 |
LANG:=C, \ |
|
2271 |
OPTIMIZATION:=LOW, \ |
|
2272 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
2273 |
-I$(JDK_TOPDIR)/src/share/javavm/export \ |
|
13702 | 2274 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/javavm/export \ |
13164 | 2275 |
-I$(OPENWIN_HOME)/include, \ |
2276 |
MAPFILE:=$(SUNWJDGA_MAPFILE), \ |
|
2277 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
2278 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13702 | 2279 |
LDFLAGS_SUFFIX:=-L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -ldga -lX11 $(LIBDL) -lc, \ |
13164 | 2280 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunwjdga)) |
2281 |
||
2282 |
BUILD_LIBRARIES += $(BUILD_LIBSUNWJDGA) |
|
2283 |
||
2284 |
endif |
|
2285 |
endif |
|
2286 |
endif |
|
2287 |
endif |
|
2288 |
||
2289 |
########################################################################################## |
|
2290 |
||
2291 |
ifeq ($(BUILD_HEADLESS), true) |
|
2292 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
|
2293 |
||
2294 |
LIBAWT_HEADLESS_DIRS:=$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
2295 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
|
2296 |
$(JDK_TOPDIR)/src/solaris/native/sun/font \ |
|
2297 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt \ |
|
2298 |
$(JDK_TOPDIR)/src/solaris/native/sun/java2d/opengl \ |
|
2299 |
$(JDK_TOPDIR)/src/solaris/native/sun/java2d/x11 |
|
2300 |
||
2301 |
LIBAWT_HEADLESS_CFLAGS:=-DHEADLESS=true \ |
|
2302 |
-DX11_PATH=\"$(X11_PATH)\" -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \ |
|
2303 |
$(CUPS_CFLAGS) \ |
|
2304 |
$(X_CFLAGS) \ |
|
2305 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
13702 | 2306 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/java2d \ |
13164 | 2307 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
2308 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
2309 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
2310 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
2311 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
13702 | 2312 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga \ |
13164 | 2313 |
$(foreach dir,$(LIBAWT_HEADLESS_DIRS),-I$(dir)) |
2314 |
||
2315 |
LIBAWT_HEADLESS_FILES:=\ |
|
2316 |
awt_Font.c \ |
|
2317 |
HeadlessToolkit.c \ |
|
2318 |
fontpath.c \ |
|
2319 |
VDrawingArea.c \ |
|
2320 |
X11Color.c \ |
|
2321 |
X11Renderer.c \ |
|
2322 |
X11PMBlitLoops.c \ |
|
2323 |
X11SurfaceData.c \ |
|
2324 |
X11FontScaler_md.c \ |
|
2325 |
X11TextRenderer_md.c \ |
|
2326 |
OGLBlitLoops.c \ |
|
2327 |
OGLBufImgOps.c \ |
|
2328 |
OGLContext.c \ |
|
2329 |
OGLFuncs.c \ |
|
2330 |
OGLMaskBlit.c \ |
|
2331 |
OGLMaskFill.c \ |
|
2332 |
OGLPaints.c \ |
|
2333 |
OGLRenderQueue.c \ |
|
2334 |
OGLRenderer.c \ |
|
2335 |
OGLSurfaceData.c \ |
|
2336 |
OGLTextRenderer.c \ |
|
2337 |
OGLVertexCache.c \ |
|
2338 |
GLXGraphicsConfig.c \ |
|
2339 |
GLXSurfaceData.c \ |
|
2340 |
AccelGlyphCache.c \ |
|
2341 |
CUPSfuncs.c |
|
2342 |
||
2343 |
LIBAWT_HEADLESS_REORDER:= |
|
2344 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
13702 | 2345 |
ifneq ($(OPENJDK_TARGET_CPU), x86_64) |
2346 |
LIBAWT_HEADLESS_REORDER:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt_headless/reorder-$(OPENJDK_TARGET_CPU) |
|
13164 | 2347 |
endif |
2348 |
endif |
|
2349 |
||
2350 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_HEADLESS,\ |
|
2351 |
LIBRARY:=awt_headless,\ |
|
2352 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
2353 |
SRC:=$(LIBAWT_HEADLESS_DIRS),\ |
|
2354 |
INCLUDE_FILES:=$(LIBAWT_HEADLESS_FILES),\ |
|
2355 |
LANG:=C,\ |
|
2356 |
OPTIMIZATION:=LOW, \ |
|
2357 |
CFLAGS:=$(CFLAGS_JDKLIB) $(LIBAWT_HEADLESS_CFLAGS),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2358 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libawt_headless/mapfile-vers,\ |
13164 | 2359 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2360 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2361 |
LDFLAGS_linux:=$(call SET_SHARED_LIBRARY_ORIGIN,/..),\ |
2362 |
LDFLAGS_solaris:=$(call SET_SHARED_LIBRARY_ORIGIN,/..) \ |
|
2363 |
-R/usr/dt/lib$(OPENJDK_TARGET_CPU_ISADIR) \ |
|
2364 |
-R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR),\ |
|
2365 |
LDFLAGS_macosx:=$(call SET_SHARED_LIBRARY_ORIGIN).,\ |
|
13164 | 2366 |
REORDER:=$(LIBAWT_HEADLESS_REORDER), \ |
13702 | 2367 |
LDFLAGS_SUFFIX_linux:=-ljvm -lawt -lm $(LIBDL) -ljava,\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2368 |
LDFLAGS_SUFFIX_solaris:=$(LIBDL) -ljvm -lawt -lm -ljava $(LIBCXX) -lc,\ |
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2369 |
LDFLAGS_SUFFIX_macosx:=-ljvm $(LIBCXX) -lawt $(LIBDL) -ljava,\ |
13164 | 2370 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_headless)) |
2371 |
||
2372 |
$(BUILD_LIBAWT_HEADLESS) : $(BUILD_LIBAWT) |
|
2373 |
||
2374 |
BUILD_LIBRARIES += $(BUILD_LIBAWT_HEADLESS) |
|
12892 | 2375 |
|
2376 |
endif |
|
2377 |
endif |
|
2378 |
||
2379 |
########################################################################################## |
|
2380 |
||
2381 |
ifndef BUILD_HEADLESS_ONLY |
|
13164 | 2382 |
LIBSPLASHSCREEN_DIRS:=\ |
12892 | 2383 |
$(JDK_TOPDIR)/src/share/native/sun/awt/giflib \ |
2384 |
$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg \ |
|
2385 |
$(JDK_TOPDIR)/src/share/native/sun/awt/libpng \ |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2386 |
$(JDK_TOPDIR)/src/share/native/sun/awt/splashscreen |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2387 |
|
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2388 |
ifneq ($(OPENJDK_TARGET_OS), macosx) |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2389 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2390 |
else |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2391 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2392 |
endif |
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2393 |
|
13164 | 2394 |
|
2395 |
LIBSPLASHSCREEN_CFLAGS:=-DSPLASHSCREEN -DPNG_NO_MMX_CODE \ |
|
12892 | 2396 |
$(foreach dir,$(LIBSPLASHSCREEN_DIRS),-I$(dir)) |
2397 |
||
13164 | 2398 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
2399 |
LIBSPLASHSCREEN_CFLAGS:=-I$(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen \ |
|
12892 | 2400 |
$(LIBSPLASHSCREEN_CFLAGS) \ |
2401 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks |
|
2402 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_MACOSX |
|
2403 |
LIBSPLASHSCREEN_CFLAGS += -I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp |
|
2404 |
||
13164 | 2405 |
LIBSPLASHSCREEN_java_awt_SplashScreen.c_CFLAGS:=-x objective-c -O0 |
2406 |
LIBSPLASHSCREEN_splashscreen_gfx_impl.c_CFLAGS:=-x objective-c -O0 |
|
2407 |
LIBSPLASHSCREEN_splashscreen_gif.c_CFLAGS:=-x objective-c -O0 |
|
2408 |
LIBSPLASHSCREEN_splashscreen_impl.c_CFLAGS:=-x objective-c -O0 |
|
2409 |
LIBSPLASHSCREEN_splashscreen_jpeg.c_CFLAGS:=-x objective-c -O0 |
|
2410 |
LIBSPLASHSCREEN_splashscreen_png.c_CFLAGS:=-x objective-c -O0 |
|
2411 |
LIBSPLASHSCREEN_splashscreen_sys.m_CFLAGS:=-O0 |
|
2412 |
||
2413 |
else ifneq ($(OPENJDK_TARGET_OS), windows) |
|
12892 | 2414 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_X11 -I$(OPENWIN_HOME)/include -I$(OPENWIN_HOME)/include/X11/extensions |
2415 |
else |
|
2416 |
LIBSPLASHSCREEN_CFLAGS += -DWITH_WIN32 |
|
2417 |
endif |
|
2418 |
||
13164 | 2419 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX:= |
12892 | 2420 |
|
2421 |
ifneq ($(USE_EXTERNAL_LIBZ),true) |
|
2422 |
LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/share/native/java/util/zip/zlib-1.2.5 |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2423 |
LIBSPLASHSCREEN_CFLAGS += $(ZLIB_CPPFLAGS) |
12892 | 2424 |
endif |
2425 |
||
13164 | 2426 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
12892 | 2427 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += $(LIBM) -lpthread -liconv -losxapp \ |
2428 |
-framework ApplicationServices \ |
|
2429 |
-framework Foundation \ |
|
2430 |
-framework Cocoa \ |
|
2431 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
2432 |
-framework JavaNativeFoundation |
|
13164 | 2433 |
else ifneq ($(OPENJDK_TARGET_OS), windows) |
13702 | 2434 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += -L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -lX11 -lXext $(LIBM) -lpthread |
13164 | 2435 |
else # OPENJDK_TARGET_OS |
14231 | 2436 |
LIBSPLASHSCREEN_LDFLAGS_SUFFIX += kernel32.lib user32.lib gdi32.lib delayimp.lib -DELAYLOAD:user32.dll |
13164 | 2437 |
endif # OPENJDK_TARGET_OS |
12892 | 2438 |
|
2439 |
$(eval $(call SetupNativeCompilation,LIBSPLASHSCREEN,\ |
|
13164 | 2440 |
LIBRARY:=splashscreen,\ |
2441 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2442 |
SRC:=$(LIBSPLASHSCREEN_DIRS),\ |
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2443 |
EXCLUDE_FILES:=imageioJPEG.c jpegdecoder.c pngtest.c,\ |
12892 | 2444 |
LANG:=C,\ |
13164 | 2445 |
OPTIMIZATION:=LOW, \ |
2446 |
CFLAGS:=$(LIBSPLASHSCREEN_CFLAGS) $(CFLAGS_JDKLIB),\ |
|
2447 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libsplashscreen/mapfile-vers, \ |
|
2448 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
|
12892 | 2449 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
13164 | 2450 |
LDFLAGS_SUFFIX:=$(LIBSPLASHSCREEN_LDFLAGS_SUFFIX) $(LIBZ),\ |
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2451 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 2452 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2453 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2454 |
-D "JDK_FNAME=splashscreen.dll" \ |
2455 |
-D "JDK_INTERNAL_NAME=splashscreen" \ |
|
2456 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2457 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsplashscreen,\ |
2458 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2459 |
|
2460 |
BUILD_LIBRARIES += $(LIBSPLASHSCREEN) |
|
2461 |
||
2462 |
ifeq ($(OPENJDK_TARGET_OS),macosx) |
|
2463 |
$(LIBSPLASHSCREEN) : $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)osxapp$(SHARED_LIBRARY_SUFFIX) |
|
12892 | 2464 |
endif |
2465 |
||
2466 |
endif |
|
2467 |
||
2468 |
########################################################################################## |
|
2469 |
||
2470 |
ifndef OPENJDK |
|
2471 |
||
13164 | 2472 |
LIBDCPR_SRC_DIRS:=\ |
12892 | 2473 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/doe \ |
2474 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/path \ |
|
2475 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/pr \ |
|
2476 |
$(JDK_TOPDIR)/src/closed/share/native/sun/dc/util |
|
2477 |
||
13164 | 2478 |
LIBDCPR_CFLAGS:=$(foreach dir,$(LIBDCPR_SRC_DIRS),-I$(dir)) \ |
12892 | 2479 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe |
2480 |
||
2481 |
$(eval $(call SetupNativeCompilation,BUILD_LIBDCPR,\ |
|
13164 | 2482 |
LIBRARY:=dcpr,\ |
2483 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2484 |
SRC:=$(LIBDCPR_SRC_DIRS),\ |
2485 |
LANG:=C,\ |
|
13164 | 2486 |
OPTIMIZATION:=LOW, \ |
2487 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2488 |
$(LIBDCPR_CFLAGS), \ |
13164 | 2489 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libdcpr/mapfile-vers, \ |
13702 | 2490 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
12892 | 2491 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
13702 | 2492 |
LDFLAGS_SUFFIX:=$(LIBM) $(LDFLAGS_JDKLIB_SUFFIX),\ |
13164 | 2493 |
LDFLAGS_SUFFIX_posix:=-lm,\ |
13702 | 2494 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2495 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2496 |
-D "JDK_FNAME=dcpr.dll" \ |
2497 |
-D "JDK_INTERNAL_NAME=dcpr" \ |
|
2498 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2499 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libdcpr,\ |
2500 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2501 |
|
2502 |
$(BUILD_LIBDCPR) : $(BUILD_LIBJAVA) |
|
2503 |
||
2504 |
BUILD_LIBRARIES += $(BUILD_LIBDCPR) |
|
12892 | 2505 |
|
2506 |
endif |
|
2507 |
||
2508 |
########################################################################################## |
|
2509 |
||
2510 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2PCSC,\ |
|
13164 | 2511 |
LIBRARY:=j2pcsc,\ |
2512 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2513 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/smartcardio \ |
13702 | 2514 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio,\ |
12892 | 2515 |
LANG:=C,\ |
13164 | 2516 |
CFLAGS_posix:=-D__sun_jdk,\ |
2517 |
OPTIMIZATION:=LOW, \ |
|
2518 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2519 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/smartcardio \ |
13702 | 2520 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio\ |
2521 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio/MUSCLE,\ |
|
13164 | 2522 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2pcsc/mapfile-vers, \ |
12892 | 2523 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2524 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13164 | 2525 |
LDFLAGS_SUFFIX_posix:=$(LIBDL), \ |
2526 |
LDFLAGS_SUFFIX_windows:=winscard.lib,\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2527 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 2528 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2529 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2530 |
-D "JDK_FNAME=j2pcsc.dll" \ |
2531 |
-D "JDK_INTERNAL_NAME=j2pcsc" \ |
|
2532 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2533 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2pcsc,\ |
2534 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2535 |
|
2536 |
BUILD_LIBRARIES += $(BUILD_LIBJ2PCSC) |
|
12892 | 2537 |
|
2538 |
########################################################################################## |
|
2539 |
||
13164 | 2540 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
14780 | 2541 |
ifneq ($(OPENJDK_TARGET_OS), macosx) |
12892 | 2542 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2GSS,\ |
13164 | 2543 |
LIBRARY:=j2gss,\ |
2544 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2545 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \ |
13702 | 2546 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper,\ |
12892 | 2547 |
LANG:=C,\ |
13164 | 2548 |
OPTIMIZATION:=LOW, \ |
2549 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2550 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \ |
13702 | 2551 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper,\ |
13164 | 2552 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2gss/mapfile-vers, \ |
12892 | 2553 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2554 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2555 |
LDFLAGS_SUFFIX:=$(LIBDL),\ |
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2556 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13164 | 2557 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2gss)) |
2558 |
||
2559 |
BUILD_LIBRARIES += $(BUILD_LIBJ2GSS) |
|
12892 | 2560 |
endif |
14780 | 2561 |
endif |
12892 | 2562 |
|
2563 |
########################################################################################## |
|
2564 |
||
13164 | 2565 |
BUILD_LIBKRB5_NAME:= |
2566 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
2567 |
BUILD_LIBKRB5_NAME:=w2k_lsa_auth |
|
13702 | 2568 |
BUILD_LIBKRB5_SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/krb5 |
14231 | 2569 |
BUILD_LIBKRB5_LIBS:=advapi32.lib Secur32.lib netapi32.lib kernel32.lib user32.lib \ |
2570 |
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib \ |
|
2571 |
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib |
|
13164 | 2572 |
else ifeq ($(OPENJDK_TARGET_OS), macosx) |
2573 |
BUILD_LIBKRB5_NAME:=osxkrb5 |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2574 |
BUILD_LIBKRB5_SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/krb5 |
13164 | 2575 |
BUILD_LIBKRB5_LIBS:=-framework Kerberos |
12892 | 2576 |
endif |
2577 |
||
2578 |
ifneq ($(BUILD_LIBKRB5_NAME),) |
|
2579 |
$(eval $(call SetupNativeCompilation,BUILD_LIBKRB5,\ |
|
13164 | 2580 |
LIBRARY:=$(BUILD_LIBKRB5_NAME),\ |
2581 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
14525
58044c98b2fb
8003477: build-infra: Remove explicit source file listings for libs when possible
erikj
parents:
14524
diff
changeset
|
2582 |
SRC:=$(BUILD_LIBKRB5_SRC),\ |
12892 | 2583 |
LANG:=C,\ |
13164 | 2584 |
OPTIMIZATION:=LOW, \ |
2585 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2586 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/krb5 \ |
13702 | 2587 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/krb5 ,\ |
12892 | 2588 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2589 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13164 | 2590 |
LDFLAGS_SUFFIX:=$(BUILD_LIBKRB5_LIBS) ,\ |
13702 | 2591 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2592 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2593 |
-D "JDK_FNAME=$(BUILD_LIBKRB5_NAME).dll" \ |
2594 |
-D "JDK_INTERNAL_NAME=$(BUILD_LIBKRB5_NAME)" \ |
|
2595 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2596 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libkrb5,\ |
2597 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2598 |
|
2599 |
BUILD_LIBRARIES += $(BUILD_LIBKRB5) |
|
12892 | 2600 |
endif |
2601 |
||
2602 |
########################################################################################## |
|
2603 |
||
13164 | 2604 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
12892 | 2605 |
|
2606 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNMSCAPI,\ |
|
13164 | 2607 |
LIBRARY:=sunmscapi,\ |
2608 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
14231 | 2609 |
SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/mscapi,\ |
13164 | 2610 |
INCLUDE_FILES:=security.cpp, \ |
12892 | 2611 |
LANG:=C++,\ |
13164 | 2612 |
OPTIMIZATION:=LOW, \ |
2613 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
13702 | 2614 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/mscapi ,\ |
2615 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
|
12892 | 2616 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
13164 | 2617 |
LDFLAGS_SUFFIX:=Crypt32.Lib advapi32.lib,\ |
13702 | 2618 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2619 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2620 |
-D "JDK_FNAME=sunmscapi.dll" \ |
2621 |
-D "JDK_INTERNAL_NAME=sunmscapi" \ |
|
2622 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2623 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunmscapi,\ |
2624 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2625 |
|
2626 |
BUILD_LIBRARIES += $(BUILD_LIBSUNMSCAPI) |
|
12892 | 2627 |
endif |
2628 |
||
2629 |
########################################################################################## |
|
2630 |
||
2631 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2PKCS11,\ |
|
13164 | 2632 |
LIBRARY:=j2pkcs11,\ |
2633 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2634 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11 \ |
13702 | 2635 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11 \ |
12892 | 2636 |
$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11/wrapper \ |
13702 | 2637 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11/wrapper,\ |
12892 | 2638 |
LANG:=C,\ |
13164 | 2639 |
OPTIMIZATION:=LOW, \ |
2640 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2641 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11 \ |
13702 | 2642 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11 \ |
12892 | 2643 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11/wrapper \ |
13702 | 2644 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11/wrapper,\ |
13164 | 2645 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2pkcs11/mapfile-vers, \ |
12892 | 2646 |
LDFLAGS:=$(LDFLAGS_JDKLIB) \ |
2647 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
14426
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2648 |
LDFLAGS_SUFFIX_posix:=$(LIBDL),\ |
2f6942e2316a
8002365: build-infra: Build-infra fails on solaris 11.1 on sparc.
tbell
parents:
14425
diff
changeset
|
2649 |
LDFLAGS_SUFFIX_solaris:=-lc,\ |
13702 | 2650 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2651 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2652 |
-D "JDK_FNAME=j2pkcs11.dll" \ |
2653 |
-D "JDK_INTERNAL_NAME=j2pkcs11" \ |
|
2654 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2655 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2pkcs11,\ |
2656 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2657 |
|
2658 |
BUILD_LIBRARIES += $(BUILD_LIBJ2PKCS11) |
|
12892 | 2659 |
|
2660 |
########################################################################################## |
|
2661 |
||
2662 |
ifndef DISABLE_INTREE_EC |
|
2663 |
# |
|
2664 |
# TODO Set DISABLE_INTREE_EC in configure if src/share/native/sun/security/ec/impl |
|
2665 |
# is not present |
|
2666 |
# |
|
13164 | 2667 |
BUILD_LIBSUNEC_FLAGS:= -I$(JDK_TOPDIR)/src/share/native/sun/security/ec \ |
2668 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/ec/impl |
|
2669 |
||
2670 |
# |
|
2671 |
# On sol-sparc...all libraries are compiled with -xregs=no%appl |
|
2672 |
# (set in CFLAGS_REQUIRED_sparc) |
|
2673 |
# |
|
2674 |
# except!!! libsunec.so |
|
2675 |
# |
|
2676 |
ECC_JNI_SOLSPARC_FILTER:= |
|
2677 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc) |
|
2678 |
ECC_JNI_SOLSPARC_FILTER:=-xregs=no%appl |
|
2679 |
endif |
|
12892 | 2680 |
|
2681 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNEC,\ |
|
13164 | 2682 |
LIBRARY:=sunec,\ |
2683 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2684 |
SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/ec \ |
2685 |
$(JDK_TOPDIR)/src/share/native/sun/security/ec/impl, \ |
|
13164 | 2686 |
LANG:=C++, \ |
2687 |
OPTIMIZATION:=LOW, \ |
|
2688 |
CFLAGS:=$(filter-out $(ECC_JNI_SOLSPARC_FILTER), $(CFLAGS_JDKLIB))\ |
|
2689 |
$(BUILD_LIBSUNEC_FLAGS) \ |
|
2690 |
-DMP_API_COMPATIBLE -DNSS_ECC_MORE_THAN_SUITE_B,\ |
|
2691 |
CXXFLAGS:=$(filter-out $(ECC_JNI_SOLSPARC_FILTER), $(CXXFLAGS_JDKLIB)) \ |
|
2692 |
$(BUILD_LIBSUNEC_FLAGS),\ |
|
2693 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libsunec/mapfile-vers, \ |
|
13702 | 2694 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK),\ |
2695 |
LDFLAGS_macosx:=$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13164 | 2696 |
LDFLAGS_SUFFIX:=$(LIBCXX),\ |
13702 | 2697 |
LDFLAGS_SUFFIX_linux:=-lc ,\ |
13164 | 2698 |
LDFLAGS_SUFFIX_solaris:=-lc ,\ |
13702 | 2699 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2700 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2701 |
-D "JDK_FNAME=sunec.dll" \ |
2702 |
-D "JDK_INTERNAL_NAME=sunec" \ |
|
2703 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2704 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunec,\ |
2705 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2706 |
|
2707 |
BUILD_LIBRARIES += $(BUILD_LIBSUNEC) |
|
12892 | 2708 |
endif |
2709 |
||
2710 |
########################################################################################## |
|
2711 |
||
13164 | 2712 |
LIBJSOUND_SRC_DIRS:=\ |
12892 | 2713 |
$(JDK_TOPDIR)/src/share/native/com/sun/media/sound \ |
13702 | 2714 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/media/sound |
13164 | 2715 |
|
2716 |
LIBJSOUND_SRC_FILES:=Utilities.c Platform.c |
|
2717 |
||
2718 |
LIBJSOUND_LANG:=C |
|
2719 |
LIBJSOUND_CFLAGS:=$(foreach dir,$(LIBJSOUND_SRC_DIRS),-I$(dir)) |
|
2720 |
||
2721 |
EXTRA_SOUND_JNI_LIBS:= |
|
2722 |
||
2723 |
LIBJSOUND_MIDIFILES:=\ |
|
12892 | 2724 |
MidiInDevice.c \ |
2725 |
MidiInDeviceProvider.c \ |
|
2726 |
MidiOutDevice.c \ |
|
2727 |
MidiOutDeviceProvider.c \ |
|
2728 |
PlatformMidi.c |
|
2729 |
||
2730 |
# files needed for ports |
|
13164 | 2731 |
LIBJSOUND_PORTFILES:=\ |
12892 | 2732 |
PortMixerProvider.c \ |
2733 |
PortMixer.c |
|
2734 |
||
2735 |
# files needed for direct audio |
|
13164 | 2736 |
LIBJSOUND_DAUDIOFILES:=\ |
12892 | 2737 |
DirectAudioDeviceProvider.c \ |
2738 |
DirectAudioDevice.c |
|
2739 |
||
13164 | 2740 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
12892 | 2741 |
EXTRA_SOUND_JNI_LIBS += jsoundds |
2742 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_WINDOWS \ |
|
2743 |
-DUSE_PLATFORM_MIDI_OUT=TRUE \ |
|
2744 |
-DUSE_PLATFORM_MIDI_IN=TRUE \ |
|
2745 |
-DUSE_PORTS=TRUE |
|
2746 |
LIBJSOUND_SRC_FILES += \ |
|
2747 |
PLATFORM_API_WinOS_MidiIn.cpp \ |
|
2748 |
PLATFORM_API_WinOS_MidiOut.c \ |
|
2749 |
PLATFORM_API_WinOS_Util.c \ |
|
2750 |
PLATFORM_API_WinOS_Ports.c |
|
2751 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES) |
|
2752 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES) |
|
13164 | 2753 |
endif # OPENJDK_TARGET_OS windows |
2754 |
||
2755 |
ifeq ($(OPENJDK_TARGET_OS), linux) |
|
12892 | 2756 |
EXTRA_SOUND_JNI_LIBS += jsoundalsa |
2757 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_LINUX |
|
13164 | 2758 |
endif # OPENJDK_TARGET_OS linux |
2759 |
||
2760 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
2761 |
LIBJSOUND_LANG:=C++ |
|
12892 | 2762 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_MACOSX \ |
2763 |
-DUSE_PORTS=TRUE \ |
|
2764 |
-DUSE_DAUDIO=TRUE \ |
|
2765 |
-DUSE_PLATFORM_MIDI_OUT=TRUE \ |
|
2766 |
-DUSE_PLATFORM_MIDI_IN=TRUE |
|
2767 |
LIBJSOUND_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/native/com/sun/media/sound |
|
2768 |
LIBJSOUND_SRC_FILES += \ |
|
2769 |
PLATFORM_API_MacOSX_Utils.cpp \ |
|
2770 |
PLATFORM_API_MacOSX_PCM.cpp \ |
|
2771 |
PLATFORM_API_MacOSX_Ports.cpp \ |
|
2772 |
PLATFORM_API_MacOSX_MidiIn.c \ |
|
2773 |
PLATFORM_API_MacOSX_MidiOut.c \ |
|
2774 |
PLATFORM_API_MacOSX_MidiUtils.c |
|
2775 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES) |
|
2776 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES) |
|
2777 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES) |
|
13164 | 2778 |
endif # OPENJDK_TARGET_OS macosx |
2779 |
||
2780 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
12892 | 2781 |
LIBJSOUND_CFLAGS += -DX_PLATFORM=X_SOLARIS \ |
2782 |
-DUSE_PORTS=TRUE \ |
|
2783 |
-DUSE_DAUDIO=TRUE |
|
2784 |
LIBJSOUND_SRC_FILES += \ |
|
2785 |
PLATFORM_API_SolarisOS_Utils.c \ |
|
2786 |
PLATFORM_API_SolarisOS_Ports.c \ |
|
2787 |
PLATFORM_API_SolarisOS_PCM.c |
|
2788 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_MIDIFILES) |
|
2789 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_PORTFILES) |
|
2790 |
LIBJSOUND_SRC_FILES += $(LIBJSOUND_DAUDIOFILES) |
|
13164 | 2791 |
endif # OPENJDK_TARGET_OS solaris |
12892 | 2792 |
|
2793 |
||
2794 |
ifeq ($(JVM_VARIANT_ZERO), true) |
|
2795 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_ZERO |
|
2796 |
else |
|
13702 | 2797 |
ifeq ($(OPENJDK_TARGET_CPU), x86) |
12892 | 2798 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_I586 |
13702 | 2799 |
endif |
2800 |
||
2801 |
ifeq ($(OPENJDK_TARGET_CPU), sparc) |
|
12892 | 2802 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_SPARC |
13702 | 2803 |
endif |
2804 |
||
2805 |
ifeq ($(OPENJDK_TARGET_CPU), sparcv9) |
|
12892 | 2806 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_SPARCV9 |
13702 | 2807 |
endif |
2808 |
||
2809 |
ifeq ($(OPENJDK_TARGET_CPU), x86_64) |
|
12892 | 2810 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_AMD64 |
13702 | 2811 |
endif |
2812 |
||
2813 |
ifeq ($(OPENJDK_TARGET_CPU), arm) |
|
12892 | 2814 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_ARM |
13702 | 2815 |
endif |
2816 |
||
2817 |
ifeq ($(OPENJDK_TARGET_CPU), ppc) |
|
12892 | 2818 |
LIBJSOUND_CFLAGS += -DX_ARCH=X_PPC |
13702 | 2819 |
endif |
12892 | 2820 |
endif |
2821 |
||
2822 |
LIBJSOUND_CFLAGS += -DEXTRA_SOUND_JNI_LIBS='"$(EXTRA_SOUND_JNI_LIBS)"' |
|
2823 |
||
2824 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUND,\ |
|
13164 | 2825 |
LIBRARY:=jsound,\ |
2826 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2827 |
SRC:=$(LIBJSOUND_SRC_DIRS),\ |
13164 | 2828 |
INCLUDE_FILES:=$(LIBJSOUND_SRC_FILES),\ |
12892 | 2829 |
LANG:=$(LIBJSOUND_LANG),\ |
13164 | 2830 |
OPTIMIZATION:=LOW, \ |
13702 | 2831 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
2832 |
$(LIBJSOUND_CFLAGS), \ |
|
13164 | 2833 |
CXXFLAGS:=$(CXXFLAGS_JDKLIB) $(LIBJSOUND_CFLAGS), \ |
2834 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjsound/mapfile-vers, \ |
|
12892 | 2835 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
2836 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2837 |
LDFLAGS_macosx:=-framework CoreAudio -framework CoreFoundation \ |
2838 |
-framework CoreServices -framework AudioUnit $(LIBCXX) \ |
|
2839 |
-framework CoreMIDI -framework AudioToolbox,\ |
|
13164 | 2840 |
LDFLAGS_windows:=$(WIN_JAVA_LIB) advapi32.lib winmm.lib,\ |
14231 | 2841 |
LDFLAGS_SUFFIX_posix:=-ljava -ljvm,\ |
12892 | 2842 |
LDFLAGS_SUFFIX_solaris:=-lc ,\ |
13702 | 2843 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2844 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2845 |
-D "JDK_FNAME=jsound.dll" \ |
2846 |
-D "JDK_INTERNAL_NAME=jsound" \ |
|
2847 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2848 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsound,\ |
2849 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2850 |
|
2851 |
$(BUILD_LIBJSOUND) : $(BUILD_LIBJAVA) |
|
2852 |
||
2853 |
BUILD_LIBRARIES += $(BUILD_LIBJSOUND) |
|
12892 | 2854 |
|
2855 |
########################################################################################## |
|
2856 |
||
2857 |
ifneq ($(filter jsoundalsa, $(EXTRA_SOUND_JNI_LIBS)),) |
|
2858 |
||
2859 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDALSA,\ |
|
13164 | 2860 |
LIBRARY:=jsoundalsa,\ |
2861 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2862 |
SRC:=$(LIBJSOUND_SRC_DIRS),\ |
13164 | 2863 |
INCLUDE_FILES:=Utilities.c $(LIBJSOUND_MIDIFILES) $(LIBJSOUND_PORTFILES) \ |
12892 | 2864 |
$(LIBJSOUND_DAUDIOFILES) \ |
2865 |
PLATFORM_API_LinuxOS_ALSA_CommonUtils.c \ |
|
2866 |
PLATFORM_API_LinuxOS_ALSA_PCM.c \ |
|
2867 |
PLATFORM_API_LinuxOS_ALSA_PCMUtils.c \ |
|
2868 |
PLATFORM_API_LinuxOS_ALSA_MidiIn.c \ |
|
2869 |
PLATFORM_API_LinuxOS_ALSA_MidiOut.c \ |
|
2870 |
PLATFORM_API_LinuxOS_ALSA_MidiUtils.c \ |
|
2871 |
PLATFORM_API_LinuxOS_ALSA_Ports.c,\ |
|
13164 | 2872 |
LANG:=C,\ |
2873 |
OPTIMIZATION:=LOW, \ |
|
2874 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2875 |
$(LIBJSOUND_CFLAGS) \ |
2876 |
-DUSE_DAUDIO=TRUE \ |
|
2877 |
-DUSE_PORTS=TRUE \ |
|
2878 |
-DUSE_PLATFORM_MIDI_OUT=TRUE \ |
|
2879 |
-DUSE_PLATFORM_MIDI_IN=TRUE, \ |
|
13164 | 2880 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libjsoundalsa/mapfile-vers, \ |
12892 | 2881 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
2882 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
|
13702 | 2883 |
LDFLAGS_SUFFIX:=-lasound -ljava -ljvm,\ |
13164 | 2884 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsoundalsa)) |
2885 |
||
2886 |
$(BUILD_LIBJSOUNDALSA) : $(BUILD_LIBJAVA) |
|
2887 |
||
2888 |
BUILD_LIBRARIES += $(BUILD_LIBJSOUNDALSA) |
|
12892 | 2889 |
|
2890 |
endif |
|
2891 |
||
2892 |
########################################################################################## |
|
2893 |
||
2894 |
ifneq ($(filter jsoundds, $(EXTRA_SOUND_JNI_LIBS)),) |
|
2895 |
||
2896 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJSOUNDDS,\ |
|
13164 | 2897 |
LIBRARY:=jsoundds,\ |
2898 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2899 |
SRC:=$(LIBJSOUND_SRC_DIRS),\ |
13164 | 2900 |
INCLUDE_FILES:=Utilities.c $(LIBJSOUND_DAUDIOFILES) \ |
12892 | 2901 |
PLATFORM_API_WinOS_DirectSound.cpp, \ |
13164 | 2902 |
LANG:=C++,\ |
2903 |
OPTIMIZATION:=LOW, \ |
|
2904 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2905 |
$(LIBJSOUND_CFLAGS) \ |
2906 |
-DUSE_DAUDIO=TRUE, \ |
|
13702 | 2907 |
LDFLAGS:=$(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
12892 | 2908 |
$(call SET_SHARED_LIBRARY_ORIGIN),\ |
2909 |
LDFLAGS_SUFFIX:=$(LDFLAGS_JDKLIB_SUFFIX) dsound.lib winmm.lib user32.lib ole32.lib,\ |
|
13702 | 2910 |
VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\ |
2911 |
RC_FLAGS:=$(RC_FLAGS)\ |
|
14231 | 2912 |
-D "JDK_FNAME=jsoundds.dll" \ |
2913 |
-D "JDK_INTERNAL_NAME=jsoundds" \ |
|
2914 |
-D "JDK_FTYPE=0x2L",\ |
|
13702 | 2915 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsoundds,\ |
2916 |
DEBUG_SYMBOLS:=$(WINDOWS_ONLY))) |
|
13164 | 2917 |
|
2918 |
$(BUILD_LIBJSOUNDDS) : $(BUILD_LIBJAVA) |
|
2919 |
||
2920 |
BUILD_LIBRARIES += $(BUILD_LIBJSOUNDDS) |
|
12892 | 2921 |
|
2922 |
endif |
|
2923 |
||
2924 |
########################################################################################## |
|
2925 |
||
13164 | 2926 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
12892 | 2927 |
ifndef OPENJDK |
2928 |
||
2929 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2UCRYPTO,\ |
|
13164 | 2930 |
LIBRARY:=j2ucrypto,\ |
2931 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2932 |
SRC:=$(JDK_TOPDIR)/src/closed/solaris/native/com/oracle/security/ucrypto,\ |
13164 | 2933 |
LANG:=C,\ |
2934 |
OPTIMIZATION:=LOW, \ |
|
2935 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2936 |
-I$(JDK_TOPDIR)/src/closed/solaris/native/com/oracle/security/ucrypto ,\ |
13164 | 2937 |
MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2ucrypto/mapfile-vers, \ |
13702 | 2938 |
LDFLAGS:=$(LDFLAGS_JDKLIB),\ |
12892 | 2939 |
LDFLAGS_SUFFIX:=$(LIBDL),\ |
13164 | 2940 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2ucrypto)) |
2941 |
||
2942 |
$(BUILD_LIBJ2UCRYPTO) : $(BUILD_LIBJAVA) |
|
2943 |
||
2944 |
BUILD_LIBRARIES += $(BUILD_LIBJ2UCRYPTO) |
|
12892 | 2945 |
|
2946 |
endif |
|
2947 |
endif |
|
2948 |
||
2949 |
########################################################################################## |
|
2950 |
||
13164 | 2951 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
2952 |
||
12892 | 2953 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAPPLESCRIPTENGINE,\ |
13164 | 2954 |
LIBRARY:=AppleScriptEngine,\ |
2955 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2956 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/apple/applescript,\ |
13164 | 2957 |
LANG:=C,\ |
2958 |
OPTIMIZATION:=LOW, \ |
|
2959 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2960 |
-I$(JDK_TOPDIR)/src/macosx/native/apple/applescript \ |
2961 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
2962 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks, \ |
|
2963 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
2964 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13702 | 2965 |
LDFLAGS_SUFFIX:=-framework Cocoa \ |
2966 |
-framework Carbon \ |
|
2967 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
2968 |
-framework JavaNativeFoundation \ |
|
2969 |
$(LDFLAGS_JDKLIB_SUFFIX),\ |
|
13164 | 2970 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libAppleScriptEngine)) |
2971 |
||
2972 |
$(BUILD_LIBAPPLESCRIPTENGINE) : $(BUILD_LIBJAVA) |
|
2973 |
||
2974 |
BUILD_LIBRARIES += $(BUILD_LIBAPPLESCRIPTENGINE) |
|
12892 | 2975 |
|
2976 |
endif |
|
2977 |
||
2978 |
########################################################################################## |
|
2979 |
||
13164 | 2980 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
2981 |
||
12892 | 2982 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSXAPP,\ |
13164 | 2983 |
LIBRARY:=osxapp,\ |
2984 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 2985 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/sun/osxapp,\ |
13164 | 2986 |
LANG:=C,\ |
2987 |
OPTIMIZATION:=LOW, \ |
|
2988 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 2989 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
14231 | 2990 |
-I$(JDK_OUTPUTDIR)/gensrc/sun/osxapp \ |
12892 | 2991 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
2992 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks,\ |
|
2993 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
2994 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13164 | 2995 |
LDFLAGS_SUFFIX_macosx:=\ |
12892 | 2996 |
-framework Accelerate \ |
2997 |
-framework ApplicationServices \ |
|
2998 |
-framework AudioToolbox \ |
|
2999 |
-framework Carbon \ |
|
3000 |
-framework Cocoa \ |
|
3001 |
-framework Security \ |
|
3002 |
-framework ExceptionHandling \ |
|
3003 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3004 |
-framework JavaNativeFoundation \ |
|
3005 |
-framework JavaRuntimeSupport \ |
|
3006 |
-framework OpenGL \ |
|
3007 |
-framework IOSurface \ |
|
3008 |
-framework QuartzCore, \ |
|
13164 | 3009 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosxapp)) |
3010 |
||
3011 |
BUILD_LIBRARIES += $(BUILD_LIBOSXAPP) |
|
12892 | 3012 |
|
3013 |
endif |
|
3014 |
||
3015 |
########################################################################################## |
|
3016 |
||
13164 | 3017 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
3018 |
||
3019 |
LIBOSX_DIRS:=\ |
|
12892 | 3020 |
$(JDK_TOPDIR)/src/macosx/native/com/apple/concurrent \ |
3021 |
$(JDK_TOPDIR)/src/macosx/native/java/util \ |
|
3022 |
$(JDK_TOPDIR)/src/macosx/native/com/apple/eio \ |
|
3023 |
$(JDK_TOPDIR)/src/macosx/native/apple/security \ |
|
3024 |
$(JDK_TOPDIR)/src/macosx/native/apple/launcher |
|
3025 |
||
3026 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSX,\ |
|
13164 | 3027 |
LIBRARY:=osx,\ |
3028 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3029 |
SRC:=$(LIBOSX_DIRS),\ |
13164 | 3030 |
LANG:=C,\ |
3031 |
OPTIMIZATION:=LOW, \ |
|
3032 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 3033 |
$(foreach dir,$(LIBOSX_DIRS),-I$(dir)) \ |
3034 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
|
3035 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3036 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks,\ |
|
3037 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
3038 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13164 | 3039 |
LDFLAGS_SUFFIX_macosx:=\ |
12892 | 3040 |
-losxapp \ |
3041 |
-framework Cocoa \ |
|
3042 |
-framework ApplicationServices \ |
|
3043 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3044 |
-framework JavaNativeFoundation \ |
|
3045 |
-framework JavaRuntimeSupport \ |
|
3046 |
-framework Security \ |
|
3047 |
-framework SystemConfiguration \ |
|
3048 |
$(LDFLAGS_JDKLIB_SUFFIX), \ |
|
13164 | 3049 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosx)) |
3050 |
||
3051 |
BUILD_LIBRARIES += $(BUILD_LIBOSX) |
|
3052 |
||
3053 |
$(BUILD_LIBOSX) : $(BUILD_LIBOSXAPP) |
|
3054 |
||
3055 |
$(BUILD_LIBOSX) : $(BUILD_LIBJAVA) |
|
12892 | 3056 |
|
3057 |
endif |
|
3058 |
||
3059 |
########################################################################################## |
|
3060 |
||
13164 | 3061 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
3062 |
||
3063 |
LIBAWT_LWAWT_FILES:=\ |
|
12892 | 3064 |
awt.m \ |
3065 |
ApplicationDelegate.m \ |
|
3066 |
CFRetainedResource.m \ |
|
3067 |
CGLGraphicsConfig.m \ |
|
3068 |
CGLSurfaceData.m \ |
|
3069 |
CGLLayer.m \ |
|
3070 |
CGraphicsConfig.m \ |
|
3071 |
CGraphicsDevice.m \ |
|
3072 |
CGraphicsEnv.m \ |
|
3073 |
CCharToGlyphMapper.m \ |
|
3074 |
CSystemColors.m \ |
|
3075 |
AWTFont.m \ |
|
3076 |
CGGlyphOutlines.m \ |
|
3077 |
CGGlyphImages.m \ |
|
3078 |
CoreTextSupport.m \ |
|
3079 |
AWTStrike.m \ |
|
3080 |
InitIDs.m \ |
|
3081 |
AWTEvent.m \ |
|
3082 |
AWTView.m \ |
|
3083 |
AWTWindow.m \ |
|
3084 |
AWTSurfaceLayers.m \ |
|
3085 |
CCursorManager.m \ |
|
3086 |
CClipboard.m \ |
|
3087 |
CDataTransferer.m \ |
|
3088 |
CDragSource.m \ |
|
3089 |
CDragSourceContextPeer.m \ |
|
3090 |
CDropTarget.m \ |
|
3091 |
CDropTargetContextPeer.m \ |
|
3092 |
CInputMethod.m \ |
|
3093 |
CDesktopPeer.m \ |
|
3094 |
OSVersion.m \ |
|
3095 |
DnDUtilities.m \ |
|
3096 |
CFileDialog.m \ |
|
3097 |
CImage.m \ |
|
3098 |
CMenu.m \ |
|
3099 |
CMenuBar.m \ |
|
3100 |
CMenuComponent.m \ |
|
3101 |
CMenuItem.m \ |
|
3102 |
CPopupMenu.m \ |
|
3103 |
CRobot.m \ |
|
3104 |
CTrayIcon.m \ |
|
3105 |
CWrapper.m \ |
|
3106 |
JavaAccessibilityAction.m \ |
|
3107 |
JavaAccessibilityUtilities.m \ |
|
3108 |
JavaComponentAccessibility.m \ |
|
3109 |
JavaTextAccessibility.m \ |
|
3110 |
LWCToolkit.m \ |
|
3111 |
GeomUtilities.m \ |
|
3112 |
CPrinterJob.m \ |
|
3113 |
PrintModel.m \ |
|
3114 |
PrinterSurfaceData.m \ |
|
3115 |
PrinterView.m \ |
|
3116 |
QuartzSurfaceData.m \ |
|
3117 |
QuartzRenderer.m \ |
|
3118 |
CTextPipe.m \ |
|
3119 |
ImageSurfaceData.m \ |
|
3120 |
awt_DrawingSurface.m \ |
|
3121 |
\ |
|
3122 |
OGLBlitLoops.c \ |
|
3123 |
OGLBufImgOps.c \ |
|
3124 |
OGLContext.c \ |
|
3125 |
OGLFuncs.c \ |
|
3126 |
OGLMaskBlit.c \ |
|
3127 |
OGLMaskFill.c \ |
|
3128 |
OGLPaints.c \ |
|
3129 |
OGLRenderQueue.c \ |
|
3130 |
OGLRenderer.c \ |
|
3131 |
OGLSurfaceData.c \ |
|
3132 |
OGLTextRenderer.c \ |
|
3133 |
OGLVertexCache.c \ |
|
3134 |
AccelGlyphCache.c \ |
|
3135 |
CUPSfuncs.c |
|
3136 |
||
3137 |
||
13164 | 3138 |
LIBAWT_LWAWT_DIRS:=\ |
12892 | 3139 |
$(JDK_TOPDIR)/src/macosx/native/sun/awt \ |
3140 |
$(JDK_TOPDIR)/src/macosx/native/sun/font \ |
|
3141 |
$(JDK_TOPDIR)/src/macosx/native/sun/java2d/opengl \ |
|
3142 |
$(JDK_TOPDIR)/src/solaris/native/sun/awt \ |
|
3143 |
$(JDK_TOPDIR)/src/share/native/sun/font \ |
|
3144 |
$(JDK_TOPDIR)/src/share/native/sun/java2d/opengl \ |
|
3145 |
||
3146 |
$(eval $(call SetupNativeCompilation,BUILD_LIBAWT_LWAWT,\ |
|
13164 | 3147 |
LIBRARY:=awt_lwawt,\ |
3148 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3149 |
SRC:=$(LIBAWT_LWAWT_DIRS),\ |
13164 | 3150 |
LANG:=C,\ |
12892 | 3151 |
INCLUDE_FILES:=$(LIBAWT_LWAWT_FILES),\ |
13164 | 3152 |
OPTIMIZATION:=LOW, \ |
3153 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
14233
18fda1299ea9
8001891: build-infra: Adding X_CFLAGS and X_LIBS to lwawt and sizer compilation
ohrstrom
parents:
14231
diff
changeset
|
3154 |
$(X_CFLAGS) \ |
18fda1299ea9
8001891: build-infra: Adding X_CFLAGS and X_LIBS to lwawt and sizer compilation
ohrstrom
parents:
14231
diff
changeset
|
3155 |
$(X_LIBS) \ |
12892 | 3156 |
$(foreach dir,$(LIBAWT_LWAWT_DIRS),-I$(dir)) \ |
3157 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
|
3158 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d \ |
|
3159 |
-I$(JDK_TOPDIR)/src/solaris/native/sun/java2d \ |
|
3160 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image \ |
|
3161 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils \ |
|
3162 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/loops \ |
|
3163 |
-I$(JDK_TOPDIR)/src/share/native/sun/java2d/pipe \ |
|
3164 |
-I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \ |
|
3165 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3166 |
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks,\ |
|
3167 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
3168 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
13702 | 3169 |
LDFLAGS_SUFFIX_macosx:=-lawt -lmlib_image -losxapp -ljvm $(LIBM) \ |
3170 |
-framework Accelerate \ |
|
3171 |
-framework ApplicationServices \ |
|
3172 |
-framework AudioToolbox \ |
|
3173 |
-framework Carbon \ |
|
3174 |
-framework Cocoa \ |
|
3175 |
-framework Security \ |
|
3176 |
-framework ExceptionHandling \ |
|
3177 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3178 |
-framework JavaNativeFoundation \ |
|
3179 |
-framework JavaRuntimeSupport \ |
|
3180 |
-framework OpenGL \ |
|
3181 |
-framework QuartzCore -ljava,\ |
|
13164 | 3182 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_lwawt)) |
3183 |
||
3184 |
BUILD_LIBRARIES += $(BUILD_LIBAWT_LWAWT) |
|
3185 |
||
3186 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBAWT) |
|
3187 |
||
3188 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBMLIB_IMAGE) |
|
3189 |
||
3190 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBOSXAPP) |
|
3191 |
||
3192 |
$(BUILD_LIBAWT_LWAWT) : $(BUILD_LIBJAVA) |
|
12892 | 3193 |
|
3194 |
endif |
|
3195 |
||
3196 |
########################################################################################## |
|
3197 |
||
13164 | 3198 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
3199 |
||
12892 | 3200 |
$(eval $(call SetupNativeCompilation,BUILD_LIBOSXUI,\ |
13164 | 3201 |
LIBRARY:=osxui,\ |
3202 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
|
12892 | 3203 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/com/apple/laf,\ |
13164 | 3204 |
LANG:=C,\ |
3205 |
OPTIMIZATION:=LOW, \ |
|
3206 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
|
12892 | 3207 |
-I$(JDK_TOPDIR)/src/macosx/native/com/apple/laf \ |
3208 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \ |
|
3209 |
-I$(JDK_TOPDIR)/src/macosx/native/sun/awt \ |
|
3210 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks, \ |
|
3211 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
13702 | 3212 |
$(call SET_SHARED_LIBRARY_ORIGIN) \ |
3213 |
-Xlinker -rpath -Xlinker @loader_path,\ |
|
3214 |
LDFLAGS_SUFFIX_macosx:=-lawt -losxapp -lawt_lwawt \ |
|
3215 |
-framework Cocoa \ |
|
3216 |
-framework Carbon \ |
|
3217 |
-framework ApplicationServices \ |
|
3218 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3219 |
-framework JavaNativeFoundation \ |
|
3220 |
-framework JavaRuntimeSupport \ |
|
3221 |
-ljava -ljvm,\ |
|
13164 | 3222 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosxui)) |
3223 |
||
3224 |
BUILD_LIBRARIES += $(BUILD_LIBOSXUI) |
|
3225 |
||
3226 |
$(BUILD_LIBOSXUI) : $(BUILD_LIBAWT) |
|
3227 |
||
3228 |
$(BUILD_LIBOSXUI) : $(BUILD_LIBOSXAPP) |
|
3229 |
||
3230 |
$(BUILD_LIBOSXUI) : $(BUILD_LIBAWT_LWAWT) |
|
3231 |
||
3232 |
#$(BUILD_LIBOSXUI) : $(BUILD_LIBJAVA) |
|
3233 |
||
3234 |
endif |
|
3235 |
||
3236 |
########################################################################################## |
|
3237 |
||
3238 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
3239 |
||
13702 | 3240 |
# Ugly hack to mimic behaviour in old build where this is built as an xcode project. |
3241 |
SET_SHARED_LIBRARY_NAME=-Xlinker -install_name -Xlinker /usr/local/lib/libJObjC.dylib |
|
3242 |
||
3243 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJOBJC32,\ |
|
13164 | 3244 |
LIBRARY:=JObjC,\ |
13702 | 3245 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc32,\ |
3246 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/native \ |
|
3247 |
$(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/native ,\ |
|
3248 |
LANG:=C,\ |
|
3249 |
OPTIMIZATION:=LOW, \ |
|
3250 |
CFLAGS:=-fpascal-strings \ |
|
3251 |
-fobjc-gc \ |
|
3252 |
-gdwarf-2 \ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
3253 |
$(CFLAGS_JDKLIB) -I$(JDK_OUTPUTDIR)/gensrc_headers_jobjc \ |
13702 | 3254 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
3255 |
-m32,\ |
|
3256 |
LDFLAGS:=$(LDFLAGS_JDKLIB)\ |
|
3257 |
-m32, \ |
|
3258 |
LDFLAGS_SUFFIX:=-framework Foundation -framework JavaVM \ |
|
3259 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3260 |
-framework JavaNativeFoundation \ |
|
3261 |
-lffi, \ |
|
3262 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc32)) |
|
3263 |
||
3264 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJOBJC64,\ |
|
3265 |
LIBRARY:=JObjC,\ |
|
3266 |
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc64,\ |
|
13164 | 3267 |
SRC:=$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/native \ |
3268 |
$(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/native ,\ |
|
3269 |
LANG:=C,\ |
|
3270 |
OPTIMIZATION:=LOW, \ |
|
3271 |
CFLAGS:=-fpascal-strings \ |
|
3272 |
-fobjc-gc \ |
|
3273 |
-gdwarf-2 \ |
|
14344
a5537423264b
8002220: build-infra: update for mac, solaris 11 issues
erikj
parents:
14235
diff
changeset
|
3274 |
$(CFLAGS_JDKLIB) -I$(JDK_OUTPUTDIR)/gensrc_headers_jobjc \ |
13164 | 3275 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
3276 |
, \ |
|
3277 |
LDFLAGS:=-fpascal-strings \ |
|
3278 |
-fobjc-gc \ |
|
3279 |
-gdwarf-2 \ |
|
3280 |
$(LDFLAGS_JDKLIB)\ |
|
3281 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
3282 |
LDFLAGS_SUFFIX:=-framework Foundation -framework JavaVM \ |
|
3283 |
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
|
3284 |
-framework JavaNativeFoundation \ |
|
3285 |
-lffi, \ |
|
13702 | 3286 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc64)) |
3287 |
||
3288 |
$(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)JObjC$(SHARED_LIBRARY_SUFFIX): $(BUILD_LIBJOBJC32) $(BUILD_LIBJOBJC64) |
|
3289 |
$(LIPO) -create -output $@ $(BUILD_LIBJOBJC32) $(BUILD_LIBJOBJC64) |
|
3290 |
||
3291 |
BUILD_LIBRARIES += $(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)JObjC$(SHARED_LIBRARY_SUFFIX) |
|
12892 | 3292 |
|
3293 |
endif |
|
3294 |
||
3295 |
########################################################################################## |
|
3296 |
||
15324
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3297 |
ifndef OPENJDK |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3298 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3299 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3300 |
ACCESSBRIDGE_SRCDIR:=$(JDK_TOPDIR)/src/closed/windows/native/sun/bridge |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3301 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3302 |
define SetupAccessBridge |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3303 |
# Parameter 1 Suffix |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3304 |
# Parameter 2 Machine |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3305 |
# Parameter 3 ACCESSBRIDGE_ARCH_ suffix |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3306 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3307 |
$(call SetupNativeCompilation,BUILD_JAWTACCESSBRIDGE$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3308 |
LIBRARY=JAWTAccessBridge$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3309 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3310 |
SRC:=$(ACCESSBRIDGE_SRCDIR),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3311 |
INCLUDE_FILES:=JAWTAccessBridge.cpp,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3312 |
LANG:=C++,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3313 |
OPTIMIZATION:=LOW,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3314 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3315 |
-DACCESSBRIDGE_ARCH_$3,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3316 |
LDFLAGS:=$(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3317 |
winspool.lib jawt.lib comdlg32.lib advapi32.lib shell32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3318 |
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3319 |
-subsystem:windows -machine:$2 \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3320 |
-def:$(ACCESSBRIDGE_SRCDIR)/JAWTAccessBridge.DEF,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3321 |
VERSIONINFO_RESOURCE:=$(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3322 |
RC_FLAGS:=$(RC_FLAGS),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3323 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjawtaccessbridge$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3324 |
DEBUG_SYMBOLS:=true) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3325 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3326 |
$$(BUILD_JAWTACCESSBRIDGE$1): $(JDK_OUTPUTDIR)/lib/$(LIBRARY_PREFIX)jawt$(STATIC_LIBRARY_SUFFIX) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3327 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3328 |
$(call SetupNativeCompilation,BUILD_JAVAACCESSBRIDGE$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3329 |
LIBRARY=JavaAccessBridge$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3330 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3331 |
SRC:=$(ACCESSBRIDGE_SRCDIR),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3332 |
INCLUDE_FILES:=AccessBridgeATInstance.cpp AccessBridgeDebug.cpp \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3333 |
AccessBridgeJavaEntryPoints.cpp \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3334 |
AccessBridgeMessages.cpp JavaAccessBridge.cpp,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3335 |
LANG:=C++,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3336 |
OPTIMIZATION:=LOW,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3337 |
CFLAGS:=$(CFLAGS_JDKLIB) \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3338 |
-DACCESSBRIDGE_ARCH_$3,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3339 |
LDFLAGS:=$(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3340 |
winspool.lib comdlg32.lib advapi32.lib shell32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3341 |
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3342 |
-subsystem:windows -machine:$2 \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3343 |
-def:$(ACCESSBRIDGE_SRCDIR)/JavaAccessBridge.DEF,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3344 |
VERSIONINFO_RESOURCE:=$(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3345 |
RC_FLAGS:=$(RC_FLAGS),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3346 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjavaaccessbridge$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3347 |
DEBUG_SYMBOLS:=true) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3348 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3349 |
$(call SetupNativeCompilation,BUILD_WINDOWSACCESSBRIDGE$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3350 |
LIBRARY=WindowsAccessBridge$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3351 |
OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3352 |
SRC:=$(ACCESSBRIDGE_SRCDIR),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3353 |
INCLUDE_FILES:=AccessBridgeJavaVMInstance.cpp AccessBridgeMessageQueue.cpp \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3354 |
AccessBridgeMessages.cpp AccessBridgeWindowsEntryPoints.cpp \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3355 |
WinAccessBridge.cpp AccessBridgeDebug.cpp \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3356 |
AccessBridgeEventHandler.cpp,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3357 |
LANG:=C++,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3358 |
OPTIMIZATION:=LOW,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3359 |
CFLAGS:=$(filter-out -MD,$(CFLAGS_JDKLIB)) -MT \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3360 |
-DACCESSBRIDGE_ARCH_$3,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3361 |
LDFLAGS:=$(LDFLAGS_JDKLIB) kernel32.lib user32.lib gdi32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3362 |
winspool.lib comdlg32.lib advapi32.lib shell32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3363 |
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3364 |
-subsystem:windows -machine:$2 \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3365 |
-def:$(ACCESSBRIDGE_SRCDIR)/WinAccessBridge.DEF,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3366 |
VERSIONINFO_RESOURCE:=$(ACCESSBRIDGE_SRCDIR)/AccessBridgeStatusWindow.rc,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3367 |
RC_FLAGS:=$(RC_FLAGS),\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3368 |
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libwindowsaccessbridge$1,\ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3369 |
DEBUG_SYMBOLS:=true) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3370 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3371 |
BUILD_LIBRARIES += $$(BUILD_JAWTACCESSBRIDGE$1) $$(BUILD_JAVAACCESSBRIDGE$1) \ |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3372 |
$$(BUILD_WINDOWSACCESSBRIDGE$1) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3373 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3374 |
endef |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3375 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3376 |
ifeq ($(OPENJDK_TARGET_CPU_BITS),32) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3377 |
$(eval $(call SetupAccessBridge,-32,I386,32)) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3378 |
$(eval $(call SetupAccessBridge,,I386,LEGACY)) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3379 |
else |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3380 |
$(eval $(call SetupAccessBridge,-64,X64,64)) |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3381 |
endif |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3382 |
endif |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3383 |
endif |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3384 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3385 |
|
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3386 |
########################################################################################## |
74584166bb07
8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents:
14855
diff
changeset
|
3387 |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3388 |
all: $(COPY_FILES) $(BUILD_LIBRARIES) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3389 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3390 |
.PHONY: all |