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