spec.gmk.in revision 423:e1830598f0b7
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.
32X:=
33SPACE:=$(X) $(X)
34COMMA:=,
35HASH:=\#
36SQUOTE:='
37#'
38DQUOTE:="
39#"
40define NEWLINE:=
41endef
42
43
44# Pass along the verbosity setting.
45ifeq (,$(findstring VERBOSE=,$(MAKE)))
46    MAKE:=$(MAKE) $(VERBOSE) VERBOSE="$(VERBOSE)"
47endif
48
49# No implicit variables or rules!
50ifeq (,$(findstring -R,$(MAKE)))
51    MAKE:=$(MAKE) -R
52endif
53
54# Specify where the spec file is.
55ifeq (,$(findstring SPEC=,$(MAKE)))
56    MAKE:=$(MAKE) SPEC=@SPEC@
57endif
58
59# Specify where the common include directory for makefiles is.
60ifeq (,$(findstring -I @SRC_ROOT@/common/makefiles,$(MAKE)))
61    MAKE:=$(MAKE) -I @SRC_ROOT@/common/makefiles
62endif
63
64# A self-referential reference to this file.
65SPEC:=@SPEC@
66
67# The built jdk will run in this host system.
68HOST:=@HOST@
69HOST_OS:=@HOST_OS@
70HOST_OS_FAMILY:=@HOST_OS_FAMILY@
71HOST_OS_API:=@HOST_OS_API@
72
73HOST_CPU:=@HOST_CPU@
74HOST_CPU_ARCH:=@HOST_CPU_ARCH@
75HOST_CPU_BITS:=@HOST_CPU_BITS@
76HOST_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.
80BUILD:=@BUILD@
81BUILD_OS:=@BUILD_OS@
82BUILD_OS_FAMILY:=@BUILD_OS_FAMILY@
83BUILD_OS_API:=@BUILD_OS_API@
84
85BUILD_CPU:=@BUILD_CPU@
86BUILD_CPU_ARCH:=@BUILD_CPU_ARCH@
87BUILD_CPU_BITS:=@BUILD_CPU_BITS@
88BUILD_CPU_ENDIAN:=@BUILD_CPU_ENDIAN@
89
90# Old name for HOST_OS (aix,bsd,hpux,linux,macosx,solaris,windows etc)
91PLATFORM:=@HOST_OS@
92# Old name for HOST_CPU, uses i586 and amd64, instead of ia32 and x64.
93ARCH:=@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.
96LIBARCH:=@LEGACY_HOST_CPU2@
97# Use to switch between solaris and windows subdirs in the jdk.
98LEGACY_HOST_OS_API:=@LEGACY_HOST_OS_API@
99# 32 or 64 bit
100ARCH_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@
104ENDIAN:=@HOST_CPU_ENDIAN@
105@SET_OPENJDK@
106JIGSAW:=@JIGSAW@
107LIBM:=-lm
108
109# colon or semicolon
110PATH_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.
119SYS_ROOT:=@SYS_ROOT@
120
121# Paths to the source code
122SRC_ROOT:=@SRC_ROOT@
123ADD_SRC_ROOT:=@ADD_SRC_ROOT@
124OVERRIDE_SRC_ROOT:=@OVERRIDE_SRC_ROOT@
125TOPDIR:=@SRC_ROOT@
126OUTPUT_ROOT:=@OUTPUT_ROOT@
127JDK_MAKE_SHARED_DIR:=@JDK_TOPDIR@/makefiles/common/shared
128JDK_TOPDIR:=@JDK_TOPDIR@
129LANGTOOLS_TOPDIR:=@LANGTOOLS_TOPDIR@
130CORBA_TOPDIR:=@CORBA_TOPDIR@
131JAXP_TOPDIR:=@JAXP_TOPDIR@
132JAXWS_TOPDIR:=@JAXWS_TOPDIR@
133HOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@
134COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
135
136# Information gathered from the version.numbers file.
137JDK_MAJOR_VERSION:=@JDK_MAJOR_VERSION@
138JDK_MINOR_VERSION:=@JDK_MINOR_VERSION@
139JDK_MICRO_VERSION:=@JDK_MICRO_VERSION@
140JDK_UPDATE_VERSION:=@JDK_UPDATE_VERSION@
141JDK_BUILD_NUMBER:=@JDK_BUILD_NUMBER@
142MILESTONE:=@MILESTONE@
143LAUNCHER_NAME:=@LAUNCHER_NAME@
144PRODUCT_NAME:=@PRODUCT_NAME@
145PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
146JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
147COMPANY_NAME:=@COMPANY_NAME@
148
149# Different version strings generated from the above information.
150JDK_VERSION:=@JDK_VERSION@
151RUNTIME_NAME:=@RUNTIME_NAME@
152FULL_VERSION:=@FULL_VERSION@
153JRE_RELEASE_VERSION:=@FULL_VERSION@
154RELEASE:=@RELEASE@
155COOKED_BUILD_NUMBER:=@COOKED_BUILD_NUMBER@
156
157# How to compile the code: release, fastdebug or slowdebug
158DEBUG_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.
162JDK_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)
170SUPPORT_HEADFUL:=@SUPPORT_HEADFUL@
171SUPPORT_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.
180DEFAULT_JVM_VARIANT:=@DEFAULT_JVM_VARIANT@
181JVM_VARIANTS:=@JVM_VARIANTS@
182JVM_VARIANT_SERVER:=@JVM_VARIANT_SERVER@
183JVM_VARIANT_CLIENT:=@JVM_VARIANT_CLIENT@
184JVM_VARIANT_KERNEL:=@JVM_VARIANT_KERNEL@
185JVM_VARIANT_ZERO:=@JVM_VARIANT_ZERO@
186JVM_VARIANT_ZEROSHARK:=@JVM_VARIANT_ZEROSHARK@
187
188# Legacy setting: OPT or DBG
189VARIANT:=@VARIANT@
190# Legacy setting: true or false
191FASTDEBUG:=@FASTDEBUG@
192# Legacy setting: debugging the class files?
193DEBUG_CLASSFILES:=@DEBUG_CLASSFILES@
194# Legacy setting: -debug or -fastdebug
195BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@
196
197LANGTOOLS_OUTPUTDIR:=@OUTPUT_ROOT@/langtools
198LANGTOOLS_DIST:=@OUTPUT_ROOT@/langtools/dist
199LANGTOOLS_MAKE_ARGS:=@LANGTOOLS_MAKE_ARGS@
200
201CORBA_OUTPUTDIR:=@OUTPUT_ROOT@/corba
202CORBA_DIST:=@OUTPUT_ROOT@/corba/dist
203CORBA_MAKE_ARGS:=@CORBA_MAKE_ARGS@
204
205JAXP_OUTPUTDIR:=@OUTPUT_ROOT@/jaxp
206JAXP_DIST:=@OUTPUT_ROOT@/jaxp/dist
207JAXP_MAKE_ARGS:=@JAXP_MAKE_ARGS@
208
209JAXWS_OUTPUTDIR:=@OUTPUT_ROOT@/jaxws
210JAXWS_DIST:=@OUTPUT_ROOT@/jaxws/dist
211JAXWS_MAKE_ARGS:=@JAXWS_MAKE_ARGS@
212
213HOTSPOT_OUTPUTDIR:=@OUTPUT_ROOT@/hotspot
214HOTSPOT_DIST:=@OUTPUT_ROOT@/hotspot/dist
215HOTSPOT_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.
221HOTSPOT_IMPORT_PATH:=@OUTPUT_ROOT@/hotspot/dist
222JDK_OUTPUTDIR:=@OUTPUT_ROOT@/jdk
223JDK_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.
229IMAGES_OUTPUTDIR:=@OUTPUT_ROOT@/images
230IMAGES_MAKE_ARGS:=@IMAGES_MAKE_ARGS@
231# Legacy variables used by Release.gmk
232JDK_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/j2sdk-image
233JRE_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/j2re-image
234
235# Can be /sparcv9 or /amd64 on Solaris
236ISA_DIR:=@LEGACY_HOST_CPU3@
237BINDIR:=$(JDK_OUTPUTDIR)/bin$(ISA_DIR)
238
239# The boot jdk to use
240ALT_BOOTDIR:=@BOOT_JDK@
241BOOT_JDK:=@BOOT_JDK@
242BOOT_JDK_JVMARGS:=@BOOT_JDK_JVMARGS@
243BOOT_JAVAC_ARGS:=@BOOT_JAVAC_ARGS@
244BOOT_RTJAR:=@BOOT_RTJAR@
245BOOT_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
249BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
250
251# Information about the build system
252NUM_CORES:=@NUM_CORES@
253# This is used from the libjvm build for C/C++ code.
254HOTSPOT_BUILD_JOBS:=@CONCURRENT_BUILD_JOBS@
255# This is used from the jdk build for C/C++ code.
256PARALLEL_COMPILE_JOBS:=@CONCURRENT_BUILD_JOBS@
257# Store javac server synchronization files here, and
258# the javac server log files.
259JAVAC_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.
266JAVAC_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.
272JAVAC_SERVER_CORES:=@JAVAC_SERVER_CORES@
273# Should we use dependency tracking between Java packages? true or false.
274JAVAC_USE_DEPS:=@JAVAC_USE_DEPS@
275# We can invoke javac: SINGLE_THREADED_BATCH or MULTI_CORE_CONCURRENT
276JAVAC_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.
281FREETYPE2_LIB_PATH:=@FREETYPE2_LIB_PATH@
282FREETYPE2_LIBS:=@FREETYPE2_LIBS@
283FREETYPE2_CFLAGS:=@FREETYPE2_CFLAGS@
284USING_SYSTEM_FT_LIB=@USING_SYSTEM_FT_LIB@
285ALT_CUPS_HEADERS_PATH:=$(patsubst -I%,%,$(filter -I%,@CUPS_CFLAGS@))
286CUPS_CFLAGS:=@CUPS_CFLAGS@
287
288PACKAGE_PATH=@PACKAGE_PATH@
289
290CACERTS_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 
296X_CFLAGS:=@X_CFLAGS@
297X_LIBS:=@X_LIBS@
298OPENWIN_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.
303COMPILER_TYPE:=@COMPILER_TYPE@
304
305CC_OUT_OPTION:=@CC_OUT_OPTION@
306EXE_OUT_OPTION:=@EXE_OUT_OPTION@
307LD_OUT_OPTION:=@LD_OUT_OPTION@
308AR_OUT_OPTION:=@AR_OUT_OPTION@
309
310# Flags used for overriding the default opt setting for a C/C++ source file.
311C_O_FLAG_HI:=@C_O_FLAG_HI@
312C_O_FLAG_NORM:=@C_O_FLAG_NORM@
313C_O_FLAG_NONE:=@C_O_FLAG_NONE@
314CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
315CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
316CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
317
318# Tools that potentially need to be cross compilation aware.
319CC:=@UNCYGDRIVE@ @CCACHE@ @CC@
320
321# CFLAGS used to compile the jdk native libraries (C-code)
322CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
323CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
324
325# CFLAGS used to compile the jdk native launchers (C-code)
326CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
327CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
328
329CXX:=@UNCYGDRIVE@ @CCACHE@ @CXX@
330#CXXFLAGS:=@CXXFLAGS@
331
332OBJC:=@CCACHE@ @OBJC@
333#OBJCFLAGS:=@OBJCFLAGS@
334
335CPP:=@UNCYGDRIVE@ @CPP@
336#CPPFLAGS:=@CPPFLAGS@
337
338# The linker can be gcc or ld on posix systems, or link.exe on winapi systems.
339LD:=@UNCYGDRIVE@ @LD@
340
341# LDFLAGS used to link the jdk native libraries (C-code)
342LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
343LDFLAGS_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.
347LDEXE:=@UNCYGDRIVE@ @LDEXE@
348
349# LDFLAGS used to link the jdk native launchers (C-code)
350LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
351LDFLAGS_JDKEXE_SUFFIX:=@LDFLAGS_JDKEXE_SUFFIX@
352
353# Sometimes a different linker is needed for c++ libs
354LDCXX:=@UNCYGDRIVE@ @LDCXX@
355# The flags for linking libstdc++ linker.
356LIBCXX:=@LIBCXX@
357
358# Sometimes a different linker is needed for c++ executables
359LDEXECXX:=@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.
365HOSTCC:=@HOSTCC@
366HOSTCXX:=@HOSTCXX@
367# And of course, the jdk spells HOSTCC as NIO_CC/HOST_CC 
368HOST_CC:=@HOSTCC@
369NIO_CC:=@HOSTCC@
370
371AS:=@AS@
372ASFLAGS:=@ASFLAGS@
373
374# AR is used to create a static library (is ar in posix, lib.exe in winapi)
375AR:=@UNCYGDRIVE@ @AR@
376ARFLAGS:=@ARFLAGS@
377
378NM:=@NM@
379STRIP:=@STRIP@
380MCS:=@MCS@
381
382# Command to create a shared library
383SHARED_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)
387SET_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)
391SET_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)
395SET_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)
401SHARED_LIBRARY=@SHARED_LIBRARY@
402STATIC_LIBRARY=@STATIC_LIBRARY@
403LIBRARY_PREFIX:=@LIBRARY_PREFIX@
404SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
405STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
406EXE_SUFFIX:=@EXE_SUFFIX@
407OBJ_SUFFIX:=@OBJ_SUFFIX@
408
409JAVA_FLAGS:=@BOOT_JDK_JVMARGS@
410
411JAVA=@UNCYGDRIVE@ @JAVA@ $(JAVA_FLAGS)
412
413JAVAC:=@UNCYGDRIVE@ @JAVAC@
414JAVAC_FLAGS:=@JAVAC_FLAGS@
415
416JAVAH:=@UNCYGDRIVE@ @JAVAH@
417
418JAR:=@UNCYGDRIVE@ @JAR@
419
420RMIC:=@UNCYGDRIVE@ @RMIC@
421
422BOOT_JAR_CMD:=@UNCYGDRIVE@ @JAR@
423BOOT_JAR_JFLAGS:=
424
425# Base flags for RC
426# Guarding this against resetting value. Legacy make files include spec multiple
427# times.
428ifndef RC_FLAGS
429RC_FLAGS:=@RC_FLAGS@
430endif
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.
434SERVER_JAVA:=@UNCYGDRIVE@ @SERVER_JAVA@
435
436# Tools adhering to a minimal and common standard of posix compliance.
437AWK:=@AWK@
438CAT:=@CAT@
439CCACHE:=@CCACHE@
440# CD is going away, but remains to cater for legacy makefiles.
441CD:=cd
442CHMOD:=@CHMOD@
443CP:=@CP@
444CPIO:=@CPIO@
445CUT:=@CUT@
446DATE:=@DATE@
447DF:=@DF@
448DIFF:=@DIFF@
449FIND:=@FIND@
450FIND_DELETE:=@FIND_DELETE@
451ECHO:=@ECHO@
452EGREP:=@EGREP@
453FGREP:=@FGREP@
454GREP:=@GREP@
455HEAD:=@HEAD@
456LS:=@LS@
457LN:=@LN@
458MKDIR:=@MKDIR@
459MV:=@MV@
460NAWK:=@NAWK@
461PRINTF:=@PRINTF@
462PWD:=@THEPWDCMD@
463RM:=@RM@
464SED:=@SED@
465SH:=@SH@
466SORT:=@SORT@
467TAR:=@TAR@
468TAIL:=@TAIL@
469TEE:=@TEE@
470TR:=@TR@
471TOUCH:=@TOUCH@
472WC:=@WC@
473XARGS:=@XARGS@
474ZIPEXE:=@ZIP@
475ZIP:=@ZIP@
476UNZIP:=@UNZIP@
477MT:=@UNCYGDRIVE@ @MT@
478RC:=@UNCYGDRIVE@ @RC@
479DUMPBIN:=@UNCYGDRIVE@ @DUMPBIN@
480CYGPATH:=@CYGPATH@
481LDD:=@LDD@
482OTOOL:=@OTOOL@
483READELF:=@READELF@
484EXPR:=@EXPR@
485FILE:=@FILE@
486
487UNCYGDRIVE:=@UNCYGDRIVE@
488
489# Where the build output is stored for your convenience.
490BUILD_LOG:=@BUILD_LOG@
491BUILD_LOG_WRAPPER:=@BUILD_LOG_WRAPPER@
492
493# Build setup
494ENABLE_DOCS:=@ENABLE_DOCS@
495GENERATE_DOCS:=@ENABLE_DOCS@
496DISABLE_NIMBUS:=@DISABLE_NIMBUS@
497USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
498USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
499USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
500CHECK_FOR_VCINSTALLDIR=@CHECK_FOR_VCINSTALLDIR@
501MSVCRNN_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.
508ADD_SRCS=$1
509ifneq (,$(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))
512endif
513ifneq (,$(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))
516endif
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.
524ifneq (,$(OVERRIDE_SRC_ROOT))
525    OVR_SRCS:=$(addsuffix %,$(subst $(OVERRIDE_SRC_ROOT),$(SRC_ROOT),$(sort $(dir $(shell $(FIND) $(OVERRIDE_SRC_ROOT) -type f)))))
526else
527    OVR_SRCS:=
528endif
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. 
537INSTALL_PREFIX=@prefix@
538
539# Directories containing architecture-dependent files should be relative to exec_prefix
540INSTALL_EXECPREFIX=@exec_prefix@
541
542# java,javac,javah,javap etc are installed here.
543INSTALL_BINDIR=@bindir@
544
545# Read only architecture-independent data
546INSTALL_DATADIR=@datadir@
547
548# Root of above.
549INSTALL_DATAROOTDIR=@datarootdir@
550
551# Doc files, other than info and man.
552INSTALL_DOCDIR=@docdir@
553
554# Html documentation
555INSTALL_HTMLDIR=@htmldir@
556
557# Installing C header files, JNI headers for example.
558INSTALL_INCLUDEDIR=@includedir@
559
560# Installing library files....
561INSTALL_INCLUDEDIR=@libdir@
562
563# Executables that other programs run.
564INSTALL_LIBEXECDIR=@libexecdir@
565
566# Locale-dependent but architecture-independent data, such as message catalogs. 
567INSTALL_LOCALEDIR=@localedir@
568
569# Modifiable single-machine data
570INSTALL_LOCALSTATEDIR=@localstatedir@
571
572# Man pages
573INSTALL_MANDIR=@mandir@
574
575# Modifiable architecture-independent data.
576INSTALL_SHAREDSTATEDIR=@sharedstatedir@
577
578# Read-only single-machine data
579INSTALL_SYSCONFDIR=@sysconfdir@
580
581
582####################################################
583#
584# Misc
585#
586
587# Control wether Hotspot runs Queens test after building
588TEST_IN_BUILD=@TEST_IN_BUILD@
589