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