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