common/autoconf/spec.gmk.in

Tue, 03 Jul 2012 16:11:12 -0700

author
erikj
date
Tue, 03 Jul 2012 16:11:12 -0700
changeset 458
c8d320b48626
parent 445
efd26e051e50
child 478
2ba6f4da4bf3
permissions
-rw-r--r--

7181504: Update of latest build-infra Makefiles
Reviewed-by: ohair

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

mercurial