|
1 # |
|
2 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
|
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 # |
|
5 # This code is free software; you can redistribute it and/or modify it |
|
6 # under the terms of the GNU General Public License version 2 only, as |
|
7 # published by the Free Software Foundation. Oracle designates this |
|
8 # particular file as subject to the "Classpath" exception as provided |
|
9 # by Oracle in the LICENSE file that accompanied this code. |
|
10 # |
|
11 # This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 # version 2 for more details (a copy is included in the LICENSE file that |
|
15 # accompanied this code). |
|
16 # |
|
17 # You should have received a copy of the GNU General Public License version |
|
18 # 2 along with this work; if not, write to the Free Software Foundation, |
|
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 # |
|
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 # or visit www.oracle.com if you need additional information or have any |
|
23 # questions. |
|
24 # |
|
25 |
|
26 # Configured @DATE_WHEN_CONFIGURED@ to build for a @HOST@ system, |
|
27 # using ./configure @CONFIGURE_COMMAND_LINE@ |
|
28 |
|
29 # When calling macros, the spaces between arguments are |
|
30 # often semantically important! Sometimes we need to subst |
|
31 # spaces and commas, therefore we need the following macros. |
|
32 X:= |
|
33 SPACE:=$(X) $(X) |
|
34 COMMA:=, |
|
35 HASH:=\# |
|
36 SQUOTE:=' |
|
37 #' |
|
38 DQUOTE:=" |
|
39 #" |
|
40 define NEWLINE:= |
|
41 endef |
|
42 |
|
43 |
|
44 # Pass along the verbosity setting. |
|
45 ifeq (,$(findstring VERBOSE=,$(MAKE))) |
|
46 MAKE:=$(MAKE) $(VERBOSE) VERBOSE="$(VERBOSE)" |
|
47 endif |
|
48 |
|
49 # No implicit variables or rules! |
|
50 ifeq (,$(findstring -R,$(MAKE))) |
|
51 MAKE:=$(MAKE) -R |
|
52 endif |
|
53 |
|
54 # Specify where the spec file is. |
|
55 ifeq (,$(findstring SPEC=,$(MAKE))) |
|
56 MAKE:=$(MAKE) SPEC=@SPEC@ |
|
57 endif |
|
58 |
|
59 # Specify where the common include directory for makefiles is. |
|
60 ifeq (,$(findstring -I @SRC_ROOT@/common/makefiles,$(MAKE))) |
|
61 MAKE:=$(MAKE) -I @SRC_ROOT@/common/makefiles |
|
62 endif |
|
63 |
|
64 # A self-referential reference to this file. |
|
65 SPEC:=@SPEC@ |
|
66 |
|
67 # The built jdk will run in this host system. |
|
68 HOST:=@HOST@ |
|
69 HOST_OS:=@HOST_OS@ |
|
70 HOST_OS_FAMILY:=@HOST_OS_FAMILY@ |
|
71 HOST_OS_API:=@HOST_OS_API@ |
|
72 |
|
73 HOST_CPU:=@HOST_CPU@ |
|
74 HOST_CPU_ARCH:=@HOST_CPU_ARCH@ |
|
75 HOST_CPU_BITS:=@HOST_CPU_BITS@ |
|
76 HOST_CPU_ENDIAN:=@HOST_CPU_ENDIAN@ |
|
77 |
|
78 # We are building on this build system. |
|
79 # When not cross-compiling, it is the same as the host. |
|
80 BUILD:=@BUILD@ |
|
81 BUILD_OS:=@BUILD_OS@ |
|
82 BUILD_OS_FAMILY:=@BUILD_OS_FAMILY@ |
|
83 BUILD_OS_API:=@BUILD_OS_API@ |
|
84 |
|
85 BUILD_CPU:=@BUILD_CPU@ |
|
86 BUILD_CPU_ARCH:=@BUILD_CPU_ARCH@ |
|
87 BUILD_CPU_BITS:=@BUILD_CPU_BITS@ |
|
88 BUILD_CPU_ENDIAN:=@BUILD_CPU_ENDIAN@ |
|
89 |
|
90 # Old name for HOST_OS (aix,bsd,hpux,linux,macosx,solaris,windows etc) |
|
91 PLATFORM:=@HOST_OS@ |
|
92 # Old name for HOST_CPU, uses i586 and amd64, instead of ia32 and x64. |
|
93 ARCH:=@LEGACY_HOST_CPU1@ |
|
94 # Yet another name for arch used for an extra subdir below the jvm lib. |
|
95 # Uses i386 and amd64, instead of ia32 and x64. |
|
96 LIBARCH:=@LEGACY_HOST_CPU2@ |
|
97 # Use to switch between solaris and windows subdirs in the jdk. |
|
98 LEGACY_HOST_OS_API:=@LEGACY_HOST_OS_API@ |
|
99 # 32 or 64 bit |
|
100 ARCH_DATA_MODEL:=@HOST_CPU_BITS@ |
|
101 # Legacy setting for building for a 64 bit machine. |
|
102 # If yes then this expands to _LP64:=1 |
|
103 @LP64@ |
|
104 ENDIAN:=@HOST_CPU_ENDIAN@ |
|
105 @SET_OPENJDK@ |
|
106 JIGSAW:=@JIGSAW@ |
|
107 LIBM:=-lm |
|
108 |
|
109 # colon or semicolon |
|
110 PATH_SEP:=@PATH_SEP@ |
|
111 |
|
112 # Set special env variables, to be passed to external tools. |
|
113 # Used for cygwin setups. |
|
114 @SETUPDEVENV@ |
|
115 |
|
116 # The sys root where standard headers and libraries are found. |
|
117 # Usually not needed since the configure script should have |
|
118 # taken it into account already when setting CFLAGS et al. |
|
119 SYS_ROOT:=@SYS_ROOT@ |
|
120 |
|
121 # Paths to the source code |
|
122 SRC_ROOT:=@SRC_ROOT@ |
|
123 ADD_SRC_ROOT:=@ADD_SRC_ROOT@ |
|
124 OVERRIDE_SRC_ROOT:=@OVERRIDE_SRC_ROOT@ |
|
125 TOPDIR:=@SRC_ROOT@ |
|
126 OUTPUT_ROOT:=@OUTPUT_ROOT@ |
|
127 JDK_MAKE_SHARED_DIR:=@JDK_TOPDIR@/makefiles/common/shared |
|
128 JDK_TOPDIR:=@JDK_TOPDIR@ |
|
129 LANGTOOLS_TOPDIR:=@LANGTOOLS_TOPDIR@ |
|
130 CORBA_TOPDIR:=@CORBA_TOPDIR@ |
|
131 JAXP_TOPDIR:=@JAXP_TOPDIR@ |
|
132 JAXWS_TOPDIR:=@JAXWS_TOPDIR@ |
|
133 HOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@ |
|
134 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@ |
|
135 |
|
136 # Information gathered from the version.numbers file. |
|
137 JDK_MAJOR_VERSION:=@JDK_MAJOR_VERSION@ |
|
138 JDK_MINOR_VERSION:=@JDK_MINOR_VERSION@ |
|
139 JDK_MICRO_VERSION:=@JDK_MICRO_VERSION@ |
|
140 JDK_UPDATE_VERSION:=@JDK_UPDATE_VERSION@ |
|
141 JDK_BUILD_NUMBER:=@JDK_BUILD_NUMBER@ |
|
142 MILESTONE:=@MILESTONE@ |
|
143 LAUNCHER_NAME:=@LAUNCHER_NAME@ |
|
144 PRODUCT_NAME:=@PRODUCT_NAME@ |
|
145 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@ |
|
146 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@ |
|
147 COMPANY_NAME:=@COMPANY_NAME@ |
|
148 |
|
149 # Different version strings generated from the above information. |
|
150 JDK_VERSION:=@JDK_VERSION@ |
|
151 RUNTIME_NAME:=@RUNTIME_NAME@ |
|
152 FULL_VERSION:=@FULL_VERSION@ |
|
153 JRE_RELEASE_VERSION:=@FULL_VERSION@ |
|
154 RELEASE:=@RELEASE@ |
|
155 COOKED_BUILD_NUMBER:=@COOKED_BUILD_NUMBER@ |
|
156 |
|
157 # How to compile the code: release, fastdebug or slowdebug |
|
158 DEBUG_LEVEL:=@DEBUG_LEVEL@ |
|
159 |
|
160 # This is the JDK variant to build. |
|
161 # The JDK variant is a name for a specific set of modules to be compiled for the JDK. |
|
162 JDK_VARIANT:=@JDK_VARIANT@ |
|
163 |
|
164 # Legacy defines controlling the JDK variant embedded. |
|
165 @JAVASE_EMBEDDED@ |
|
166 @MINIMIZE_RAM_USAGE@ |
|
167 |
|
168 # Should we compile support for running with a graphical UI? (ie headful) |
|
169 # Should we compile support for running without? (ie headless) |
|
170 SUPPORT_HEADFUL:=@SUPPORT_HEADFUL@ |
|
171 SUPPORT_HEADLESS:=@SUPPORT_HEADLESS@ |
|
172 # Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options. |
|
173 @BUILD_HEADLESS@ |
|
174 @BUILD_HEADLESS_ONLY@ |
|
175 |
|
176 # These are the libjvms that we want to build. |
|
177 # The java launcher uses the default. |
|
178 # The other can be selected by specifying -client -server -kernel -zero or -zeroshark |
|
179 # on the java launcher command line. |
|
180 DEFAULT_JVM_VARIANT:=@DEFAULT_JVM_VARIANT@ |
|
181 JVM_VARIANTS:=@JVM_VARIANTS@ |
|
182 JVM_VARIANT_SERVER:=@JVM_VARIANT_SERVER@ |
|
183 JVM_VARIANT_CLIENT:=@JVM_VARIANT_CLIENT@ |
|
184 JVM_VARIANT_KERNEL:=@JVM_VARIANT_KERNEL@ |
|
185 JVM_VARIANT_ZERO:=@JVM_VARIANT_ZERO@ |
|
186 JVM_VARIANT_ZEROSHARK:=@JVM_VARIANT_ZEROSHARK@ |
|
187 |
|
188 # Legacy setting: OPT or DBG |
|
189 VARIANT:=@VARIANT@ |
|
190 # Legacy setting: true or false |
|
191 FASTDEBUG:=@FASTDEBUG@ |
|
192 # Legacy setting: debugging the class files? |
|
193 DEBUG_CLASSFILES:=@DEBUG_CLASSFILES@ |
|
194 # Legacy setting: -debug or -fastdebug |
|
195 BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@ |
|
196 |
|
197 LANGTOOLS_OUTPUTDIR:=@OUTPUT_ROOT@/langtools |
|
198 LANGTOOLS_DIST:=@OUTPUT_ROOT@/langtools/dist |
|
199 LANGTOOLS_MAKE_ARGS:=@LANGTOOLS_MAKE_ARGS@ |
|
200 |
|
201 CORBA_OUTPUTDIR:=@OUTPUT_ROOT@/corba |
|
202 CORBA_DIST:=@OUTPUT_ROOT@/corba/dist |
|
203 CORBA_MAKE_ARGS:=@CORBA_MAKE_ARGS@ |
|
204 |
|
205 JAXP_OUTPUTDIR:=@OUTPUT_ROOT@/jaxp |
|
206 JAXP_DIST:=@OUTPUT_ROOT@/jaxp/dist |
|
207 JAXP_MAKE_ARGS:=@JAXP_MAKE_ARGS@ |
|
208 |
|
209 JAXWS_OUTPUTDIR:=@OUTPUT_ROOT@/jaxws |
|
210 JAXWS_DIST:=@OUTPUT_ROOT@/jaxws/dist |
|
211 JAXWS_MAKE_ARGS:=@JAXWS_MAKE_ARGS@ |
|
212 |
|
213 HOTSPOT_OUTPUTDIR:=@OUTPUT_ROOT@/hotspot |
|
214 HOTSPOT_DIST:=@OUTPUT_ROOT@/hotspot/dist |
|
215 HOTSPOT_MAKE_ARGS:=@HOTSPOT_MAKE_ARGS@ |
|
216 |
|
217 # This where a working jvm is built. |
|
218 # You can run $(JDK_OUTPUTDIR)/bin/java |
|
219 # Though the layout of the contents of $(JDK_OUTPUTDIR) is not |
|
220 # yet the same as a default installation. |
|
221 HOTSPOT_IMPORT_PATH:=@OUTPUT_ROOT@/hotspot/dist |
|
222 JDK_OUTPUTDIR:=@OUTPUT_ROOT@/jdk |
|
223 JDK_MAKE_ARGS:=@JDK_MAKE_ARGS@ |
|
224 |
|
225 # When you run "make install" it will create the standardized |
|
226 # layout for the jdk and the jre inside the images subdir. |
|
227 # Then it will copy the contents of the jdk into the installation |
|
228 # directory. |
|
229 IMAGES_OUTPUTDIR:=@OUTPUT_ROOT@/images |
|
230 IMAGES_MAKE_ARGS:=@IMAGES_MAKE_ARGS@ |
|
231 # Legacy variables used by Release.gmk |
|
232 JDK_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/j2sdk-image |
|
233 JRE_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/j2re-image |
|
234 |
|
235 # Can be /sparcv9 or /amd64 on Solaris |
|
236 ISA_DIR:=@LEGACY_HOST_CPU3@ |
|
237 BINDIR:=$(JDK_OUTPUTDIR)/bin$(ISA_DIR) |
|
238 |
|
239 # The boot jdk to use |
|
240 ALT_BOOTDIR:=@BOOT_JDK@ |
|
241 BOOT_JDK:=@BOOT_JDK@ |
|
242 BOOT_JDK_JVMARGS:=@BOOT_JDK_JVMARGS@ |
|
243 BOOT_JAVAC_ARGS:=@BOOT_JAVAC_ARGS@ |
|
244 BOOT_RTJAR:=@BOOT_RTJAR@ |
|
245 BOOT_TOOLSJAR:=@BOOT_TOOLSJAR@ |
|
246 |
|
247 # When compiling Java source to be run by the boot jdk |
|
248 # use these extra flags, eg -source 6 -target 6 |
|
249 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@ |
|
250 |
|
251 # Information about the build system |
|
252 NUM_CORES:=@NUM_CORES@ |
|
253 # This is used from the libjvm build for C/C++ code. |
|
254 HOTSPOT_BUILD_JOBS:=@CONCURRENT_BUILD_JOBS@ |
|
255 # This is used from the jdk build for C/C++ code. |
|
256 PARALLEL_COMPILE_JOBS:=@CONCURRENT_BUILD_JOBS@ |
|
257 # Store javac server synchronization files here, and |
|
258 # the javac server log files. |
|
259 JAVAC_SERVERS:=@JAVAC_SERVERS@ |
|
260 # Should we use a javac server or not? The javac server gives |
|
261 # an enormous performance improvement since it reduces the |
|
262 # startup costs of javac and reuses as much as possible of intermediate |
|
263 # compilation work. But if we want to compile with a non-Java |
|
264 # javac compiler, like gcj. Then we cannot use javac server and |
|
265 # this variable is set to false. |
|
266 JAVAC_USE_REMOTE:=@JAVAC_USE_REMOTE@ |
|
267 # We can block the Javac server to never use more cores than this. |
|
268 # This is not for performance reasons, but for memory usage, since each |
|
269 # core requires its own JavaCompiler. We might have 64 cores and 4GB |
|
270 # of memory, 64 JavaCompilers will currently not fit in a 3GB heap. |
|
271 # Since there is no sharing of data between the JavaCompilers. |
|
272 JAVAC_SERVER_CORES:=@JAVAC_SERVER_CORES@ |
|
273 # Should we use dependency tracking between Java packages? true or false. |
|
274 JAVAC_USE_DEPS:=@JAVAC_USE_DEPS@ |
|
275 # We can invoke javac: SINGLE_THREADED_BATCH or MULTI_CORE_CONCURRENT |
|
276 JAVAC_USE_MODE:=@JAVAC_USE_MODE@ |
|
277 |
|
278 # The OpenJDK makefiles should be changed to using the standard |
|
279 # configure output ..._CFLAGS and ..._LIBS. In the meantime we |
|
280 # extract the information here. |
|
281 FREETYPE2_LIB_PATH:=@FREETYPE2_LIB_PATH@ |
|
282 FREETYPE2_LIBS:=@FREETYPE2_LIBS@ |
|
283 FREETYPE2_CFLAGS:=@FREETYPE2_CFLAGS@ |
|
284 USING_SYSTEM_FT_LIB=@USING_SYSTEM_FT_LIB@ |
|
285 ALT_CUPS_HEADERS_PATH:=$(patsubst -I%,%,$(filter -I%,@CUPS_CFLAGS@)) |
|
286 CUPS_CFLAGS:=@CUPS_CFLAGS@ |
|
287 |
|
288 PACKAGE_PATH=@PACKAGE_PATH@ |
|
289 |
|
290 CACERTS_FILE:=$(SRC_ROOT)/jdk/src/share/lib/security/cacerts |
|
291 #CACERTS_INT=$(CLOSED_SHARE_SRC)/lib/security/cacerts.internal |
|
292 |
|
293 #MOZILLA_HEADERS_PATH:= |
|
294 |
|
295 # Necessary additional compiler flags to compile X11 |
|
296 X_CFLAGS:=@X_CFLAGS@ |
|
297 X_LIBS:=@X_LIBS@ |
|
298 OPENWIN_HOME:=@OPENWIN_HOME@ |
|
299 |
|
300 # There are two types: CC or CL |
|
301 # CC is gcc and others behaving reasonably similar. |
|
302 # CL is cl.exe only. |
|
303 COMPILER_TYPE:=@COMPILER_TYPE@ |
|
304 |
|
305 CC_OUT_OPTION:=@CC_OUT_OPTION@ |
|
306 EXE_OUT_OPTION:=@EXE_OUT_OPTION@ |
|
307 LD_OUT_OPTION:=@LD_OUT_OPTION@ |
|
308 AR_OUT_OPTION:=@AR_OUT_OPTION@ |
|
309 |
|
310 # Flags used for overriding the default opt setting for a C/C++ source file. |
|
311 C_O_FLAG_HI:=@C_O_FLAG_HI@ |
|
312 C_O_FLAG_NORM:=@C_O_FLAG_NORM@ |
|
313 C_O_FLAG_NONE:=@C_O_FLAG_NONE@ |
|
314 CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@ |
|
315 CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@ |
|
316 CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@ |
|
317 |
|
318 # Tools that potentially need to be cross compilation aware. |
|
319 CC:=@UNCYGDRIVE@ @CCACHE@ @CC@ |
|
320 |
|
321 # CFLAGS used to compile the jdk native libraries (C-code) |
|
322 CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@ |
|
323 CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@ |
|
324 |
|
325 # CFLAGS used to compile the jdk native launchers (C-code) |
|
326 CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@ |
|
327 CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@ |
|
328 |
|
329 CXX:=@UNCYGDRIVE@ @CCACHE@ @CXX@ |
|
330 #CXXFLAGS:=@CXXFLAGS@ |
|
331 |
|
332 OBJC:=@CCACHE@ @OBJC@ |
|
333 #OBJCFLAGS:=@OBJCFLAGS@ |
|
334 |
|
335 CPP:=@UNCYGDRIVE@ @CPP@ |
|
336 #CPPFLAGS:=@CPPFLAGS@ |
|
337 |
|
338 # The linker can be gcc or ld on posix systems, or link.exe on winapi systems. |
|
339 LD:=@UNCYGDRIVE@ @LD@ |
|
340 |
|
341 # LDFLAGS used to link the jdk native libraries (C-code) |
|
342 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@ |
|
343 LDFLAGS_JDKLIB_SUFFIX:=@LDFLAGS_JDKLIB_SUFFIX@ |
|
344 |
|
345 # On some platforms the linker cannot be used to create executables, thus |
|
346 # the need for a separate LDEXE command. |
|
347 LDEXE:=@UNCYGDRIVE@ @LDEXE@ |
|
348 |
|
349 # LDFLAGS used to link the jdk native launchers (C-code) |
|
350 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@ |
|
351 LDFLAGS_JDKEXE_SUFFIX:=@LDFLAGS_JDKEXE_SUFFIX@ |
|
352 |
|
353 # Sometimes a different linker is needed for c++ libs |
|
354 LDCXX:=@UNCYGDRIVE@ @LDCXX@ |
|
355 # The flags for linking libstdc++ linker. |
|
356 LIBCXX:=@LIBCXX@ |
|
357 |
|
358 # Sometimes a different linker is needed for c++ executables |
|
359 LDEXECXX:=@UNCYGDRIVE@ @LDEXECXX@ |
|
360 |
|
361 # If cross compiling, then define CROSS_COMPILE_ARCH:=cpu_name here. |
|
362 @DEFINE_CROSS_COMPILE_ARCH@ |
|
363 # The HOSTCC should really be named BUILDCC, ie build executable for |
|
364 # the build platform. Same as CC when not cross compiling. |
|
365 HOSTCC:=@HOSTCC@ |
|
366 HOSTCXX:=@HOSTCXX@ |
|
367 # And of course, the jdk spells HOSTCC as NIO_CC/HOST_CC |
|
368 HOST_CC:=@HOSTCC@ |
|
369 NIO_CC:=@HOSTCC@ |
|
370 |
|
371 AS:=@AS@ |
|
372 ASFLAGS:=@ASFLAGS@ |
|
373 |
|
374 # AR is used to create a static library (is ar in posix, lib.exe in winapi) |
|
375 AR:=@UNCYGDRIVE@ @AR@ |
|
376 ARFLAGS:=@ARFLAGS@ |
|
377 |
|
378 NM:=@NM@ |
|
379 STRIP:=@STRIP@ |
|
380 MCS:=@MCS@ |
|
381 |
|
382 # Command to create a shared library |
|
383 SHARED_LIBRARY_FLAGS:=@SHARED_LIBRARY_FLAGS@ |
|
384 |
|
385 # Options to linker to specify a mapfile. |
|
386 # (Note absence of := assignment, because we do not want to evaluate the macro body here) |
|
387 SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@ |
|
388 |
|
389 # Options to linker to specify the library name. |
|
390 # (Note absence of := assignment, because we do not want to evaluate the macro body here) |
|
391 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@ |
|
392 |
|
393 # Set origin using the linker, ie use the relative path to the dependent library to find the dependees. |
|
394 # (Note absence of := assignment, because we do not want to evaluate the macro body here) |
|
395 SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@ |
|
396 |
|
397 # Different OS:es have different ways of naming shared libraries. |
|
398 # The SHARED_LIBRARY macro takes "verify" as and argument and returns: |
|
399 # "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform. |
|
400 # (Note absence of := assignment, because we do not want to evaluate the macro body here) |
|
401 SHARED_LIBRARY=@SHARED_LIBRARY@ |
|
402 STATIC_LIBRARY=@STATIC_LIBRARY@ |
|
403 LIBRARY_PREFIX:=@LIBRARY_PREFIX@ |
|
404 SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@ |
|
405 STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@ |
|
406 EXE_SUFFIX:=@EXE_SUFFIX@ |
|
407 OBJ_SUFFIX:=@OBJ_SUFFIX@ |
|
408 |
|
409 JAVA_FLAGS:=@BOOT_JDK_JVMARGS@ |
|
410 |
|
411 JAVA=@UNCYGDRIVE@ @JAVA@ $(JAVA_FLAGS) |
|
412 |
|
413 JAVAC:=@UNCYGDRIVE@ @JAVAC@ |
|
414 JAVAC_FLAGS:=@JAVAC_FLAGS@ |
|
415 |
|
416 JAVAH:=@UNCYGDRIVE@ @JAVAH@ |
|
417 |
|
418 JAR:=@UNCYGDRIVE@ @JAR@ |
|
419 |
|
420 RMIC:=@UNCYGDRIVE@ @RMIC@ |
|
421 |
|
422 BOOT_JAR_CMD:=@UNCYGDRIVE@ @JAR@ |
|
423 BOOT_JAR_JFLAGS:= |
|
424 |
|
425 # Base flags for RC |
|
426 # Guarding this against resetting value. Legacy make files include spec multiple |
|
427 # times. |
|
428 ifndef RC_FLAGS |
|
429 RC_FLAGS:=@RC_FLAGS@ |
|
430 endif |
|
431 |
|
432 # A specific java binary with specific options can be used to run |
|
433 # the long running background javac server and other long running tasks. |
|
434 SERVER_JAVA:=@UNCYGDRIVE@ @SERVER_JAVA@ |
|
435 |
|
436 # Tools adhering to a minimal and common standard of posix compliance. |
|
437 AWK:=@AWK@ |
|
438 CAT:=@CAT@ |
|
439 CCACHE:=@CCACHE@ |
|
440 # CD is going away, but remains to cater for legacy makefiles. |
|
441 CD:=cd |
|
442 CHMOD:=@CHMOD@ |
|
443 CP:=@CP@ |
|
444 CPIO:=@CPIO@ |
|
445 CUT:=@CUT@ |
|
446 DATE:=@DATE@ |
|
447 DF:=@DF@ |
|
448 DIFF:=@DIFF@ |
|
449 FIND:=@FIND@ |
|
450 FIND_DELETE:=@FIND_DELETE@ |
|
451 ECHO:=@ECHO@ |
|
452 EGREP:=@EGREP@ |
|
453 FGREP:=@FGREP@ |
|
454 GREP:=@GREP@ |
|
455 HEAD:=@HEAD@ |
|
456 LS:=@LS@ |
|
457 LN:=@LN@ |
|
458 MKDIR:=@MKDIR@ |
|
459 MV:=@MV@ |
|
460 NAWK:=@NAWK@ |
|
461 PRINTF:=@PRINTF@ |
|
462 PWD:=@THEPWDCMD@ |
|
463 RM:=@RM@ |
|
464 SED:=@SED@ |
|
465 SH:=@SH@ |
|
466 SORT:=@SORT@ |
|
467 TAR:=@TAR@ |
|
468 TAIL:=@TAIL@ |
|
469 TEE:=@TEE@ |
|
470 TR:=@TR@ |
|
471 TOUCH:=@TOUCH@ |
|
472 WC:=@WC@ |
|
473 XARGS:=@XARGS@ |
|
474 ZIPEXE:=@ZIP@ |
|
475 ZIP:=@ZIP@ |
|
476 UNZIP:=@UNZIP@ |
|
477 MT:=@UNCYGDRIVE@ @MT@ |
|
478 RC:=@UNCYGDRIVE@ @RC@ |
|
479 DUMPBIN:=@UNCYGDRIVE@ @DUMPBIN@ |
|
480 CYGPATH:=@CYGPATH@ |
|
481 LDD:=@LDD@ |
|
482 OTOOL:=@OTOOL@ |
|
483 READELF:=@READELF@ |
|
484 EXPR:=@EXPR@ |
|
485 FILE:=@FILE@ |
|
486 |
|
487 UNCYGDRIVE:=@UNCYGDRIVE@ |
|
488 |
|
489 # Where the build output is stored for your convenience. |
|
490 BUILD_LOG:=@BUILD_LOG@ |
|
491 BUILD_LOG_WRAPPER:=@BUILD_LOG_WRAPPER@ |
|
492 |
|
493 # Build setup |
|
494 ENABLE_DOCS:=@ENABLE_DOCS@ |
|
495 GENERATE_DOCS:=@ENABLE_DOCS@ |
|
496 DISABLE_NIMBUS:=@DISABLE_NIMBUS@ |
|
497 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@ |
|
498 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@ |
|
499 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@ |
|
500 CHECK_FOR_VCINSTALLDIR=@CHECK_FOR_VCINSTALLDIR@ |
|
501 MSVCRNN_DLL:=@MSVCR100DLL@ |
|
502 |
|
503 # ADD_SRCS takes a single argument with source roots |
|
504 # and appends any corresponding source roots found |
|
505 # below --with-add-source-root and below |
|
506 # --with-override-source-root. It is the responsibility |
|
507 # of the next macro to get rid of superfluous files. |
|
508 ADD_SRCS=$1 |
|
509 ifneq (,$(ADD_SRC_ROOT)) |
|
510 # Append wildcard rule to pickup any matching source roots found below ADD_SRC_ROOT |
|
511 ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(ADD_SRC_ROOT),$1)) |
|
512 endif |
|
513 ifneq (,$(OVERRIDE_SRC_ROOT)) |
|
514 # Append wildcard rule to pickup any matching source roots found below OVERRIDE_SRC_ROOT |
|
515 ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(OVERRIDE_SRC_ROOT),$1)) |
|
516 endif |
|
517 |
|
518 # OVR_SRCS creates a filter expression to filter out sources in |
|
519 # the original source directory that lie inside directories below |
|
520 # --with-override-source-root. |
|
521 # Use := here since we want to scan for these files here. To avoid recomputation later. |
|
522 # We cannot do the scan in configure, since that would force us to rerun configure when |
|
523 # we add overridden sources. |
|
524 ifneq (,$(OVERRIDE_SRC_ROOT)) |
|
525 OVR_SRCS:=$(addsuffix %,$(subst $(OVERRIDE_SRC_ROOT),$(SRC_ROOT),$(sort $(dir $(shell $(FIND) $(OVERRIDE_SRC_ROOT) -type f))))) |
|
526 else |
|
527 OVR_SRCS:= |
|
528 endif |
|
529 |
|
530 #################################################### |
|
531 # |
|
532 # INSTALLATION |
|
533 # |
|
534 |
|
535 # Common prefix for all installed files. Defaults to /usr/local, |
|
536 # but /opt/myjdk is another common version. |
|
537 INSTALL_PREFIX=@prefix@ |
|
538 |
|
539 # Directories containing architecture-dependent files should be relative to exec_prefix |
|
540 INSTALL_EXECPREFIX=@exec_prefix@ |
|
541 |
|
542 # java,javac,javah,javap etc are installed here. |
|
543 INSTALL_BINDIR=@bindir@ |
|
544 |
|
545 # Read only architecture-independent data |
|
546 INSTALL_DATADIR=@datadir@ |
|
547 |
|
548 # Root of above. |
|
549 INSTALL_DATAROOTDIR=@datarootdir@ |
|
550 |
|
551 # Doc files, other than info and man. |
|
552 INSTALL_DOCDIR=@docdir@ |
|
553 |
|
554 # Html documentation |
|
555 INSTALL_HTMLDIR=@htmldir@ |
|
556 |
|
557 # Installing C header files, JNI headers for example. |
|
558 INSTALL_INCLUDEDIR=@includedir@ |
|
559 |
|
560 # Installing library files.... |
|
561 INSTALL_INCLUDEDIR=@libdir@ |
|
562 |
|
563 # Executables that other programs run. |
|
564 INSTALL_LIBEXECDIR=@libexecdir@ |
|
565 |
|
566 # Locale-dependent but architecture-independent data, such as message catalogs. |
|
567 INSTALL_LOCALEDIR=@localedir@ |
|
568 |
|
569 # Modifiable single-machine data |
|
570 INSTALL_LOCALSTATEDIR=@localstatedir@ |
|
571 |
|
572 # Man pages |
|
573 INSTALL_MANDIR=@mandir@ |
|
574 |
|
575 # Modifiable architecture-independent data. |
|
576 INSTALL_SHAREDSTATEDIR=@sharedstatedir@ |
|
577 |
|
578 # Read-only single-machine data |
|
579 INSTALL_SYSCONFDIR=@sysconfdir@ |
|
580 |
|
581 |
|
582 #################################################### |
|
583 # |
|
584 # Misc |
|
585 # |
|
586 |
|
587 # Control wether Hotspot runs Queens test after building |
|
588 TEST_IN_BUILD=@TEST_IN_BUILD@ |