21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
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 |
22 # or visit www.oracle.com if you need additional information or have any |
23 # questions. |
23 # questions. |
24 # |
24 # |
25 |
25 |
26 # Configured @DATE_WHEN_CONFIGURED@ to build for a @HOST@ system, |
26 # Configured @DATE_WHEN_CONFIGURED@ to build for a @OPENJDK_TARGET_SYSTEM@ system, |
27 # using ./configure @CONFIGURE_COMMAND_LINE@ |
27 # using 'configure @CONFIGURE_COMMAND_LINE@' |
28 |
28 |
29 # When calling macros, the spaces between arguments are |
29 # When calling macros, the spaces between arguments are |
30 # often semantically important! Sometimes we need to subst |
30 # often semantically important! Sometimes we need to subst |
31 # spaces and commas, therefore we need the following macros. |
31 # spaces and commas, therefore we need the following macros. |
32 X:= |
32 X:= |
65 SPEC:=@SPEC@ |
65 SPEC:=@SPEC@ |
66 |
66 |
67 # The "human readable" name of this configuration |
67 # The "human readable" name of this configuration |
68 CONF_NAME:=@CONF_NAME@ |
68 CONF_NAME:=@CONF_NAME@ |
69 |
69 |
70 # The built jdk will run in this host system. |
70 # The built jdk will run in this target system. |
71 HOST:=@HOST@ |
71 OPENJDK_TARGET_SYSTEM:=@OPENJDK_TARGET_SYSTEM@ |
72 HOST_OS:=@HOST_OS@ |
72 |
73 HOST_OS_FAMILY:=@HOST_OS_FAMILY@ |
73 OPENJDK_TARGET_OS:=@OPENJDK_TARGET_OS@ |
74 HOST_OS_API:=@HOST_OS_API@ |
74 OPENJDK_TARGET_OS_FAMILY:=@OPENJDK_TARGET_OS_FAMILY@ |
75 |
75 OPENJDK_TARGET_OS_API:=@OPENJDK_TARGET_OS_API@ |
76 HOST_CPU:=@HOST_CPU@ |
76 |
77 HOST_CPU_ARCH:=@HOST_CPU_ARCH@ |
77 OPENJDK_TARGET_CPU:=@OPENJDK_TARGET_CPU@ |
78 HOST_CPU_BITS:=@HOST_CPU_BITS@ |
78 OPENJDK_TARGET_CPU_ARCH:=@OPENJDK_TARGET_CPU_ARCH@ |
79 HOST_CPU_ENDIAN:=@HOST_CPU_ENDIAN@ |
79 OPENJDK_TARGET_CPU_BITS:=@OPENJDK_TARGET_CPU_BITS@ |
|
80 OPENJDK_TARGET_CPU_ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@ |
80 |
81 |
81 # We are building on this build system. |
82 # We are building on this build system. |
82 # When not cross-compiling, it is the same as the host. |
83 # When not cross-compiling, it is the same as the target. |
83 BUILD:=@BUILD@ |
84 OPENJDK_BUILD_SYSTEM:=@OPENJDK_BUILD_SYSTEM@ |
84 BUILD_OS:=@BUILD_OS@ |
85 |
85 BUILD_OS_FAMILY:=@BUILD_OS_FAMILY@ |
86 OPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@ |
86 BUILD_OS_API:=@BUILD_OS_API@ |
87 OPENJDK_BUILD_OS_FAMILY:=@OPENJDK_BUILD_OS_FAMILY@ |
87 |
88 OPENJDK_BUILD_OS_API:=@OPENJDK_BUILD_OS_API@ |
88 BUILD_CPU:=@BUILD_CPU@ |
89 |
89 BUILD_CPU_ARCH:=@BUILD_CPU_ARCH@ |
90 OPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@ |
90 BUILD_CPU_BITS:=@BUILD_CPU_BITS@ |
91 OPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@ |
91 BUILD_CPU_ENDIAN:=@BUILD_CPU_ENDIAN@ |
92 OPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@ |
|
93 OPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@ |
92 |
94 |
93 # Legacy OS values for use in release file. |
95 # Legacy OS values for use in release file. |
94 REQUIRED_OS_NAME:=@REQUIRED_OS_NAME@ |
96 REQUIRED_OS_NAME:=@REQUIRED_OS_NAME@ |
95 REQUIRED_OS_VERSION:=@REQUIRED_OS_VERSION@ |
97 REQUIRED_OS_VERSION:=@REQUIRED_OS_VERSION@ |
96 |
98 |
97 # Old name for HOST_OS (aix,bsd,hpux,linux,macosx,solaris,windows etc) |
99 # Old name for OPENJDK_TARGET_OS (aix,bsd,hpux,linux,macosx,solaris,windows etc) |
98 PLATFORM:=@HOST_OS@ |
100 PLATFORM:=@OPENJDK_TARGET_OS@ |
99 # Old name for HOST_CPU, uses i586 and amd64, instead of ia32 and x64. |
101 # Old name for OPENJDK_TARGET_CPU, uses i586 and amd64, instead of ia32 and x64. |
100 ARCH:=@LEGACY_HOST_CPU1@ |
102 ARCH:=@LEGACY_OPENJDK_TARGET_CPU1@ |
101 # Yet another name for arch used for an extra subdir below the jvm lib. |
103 # Yet another name for arch used for an extra subdir below the jvm lib. |
102 # Uses i386 and amd64, instead of ia32 and x64. |
104 # Uses i386 and amd64, instead of ia32 and x64. |
103 LIBARCH:=@LEGACY_HOST_CPU2@ |
105 LIBARCH:=@LEGACY_OPENJDK_TARGET_CPU2@ |
104 # Use to switch between solaris and windows subdirs in the jdk. |
106 # Use to switch between solaris and windows subdirs in the jdk. |
105 LEGACY_HOST_OS_API:=@LEGACY_HOST_OS_API@ |
107 LEGACY_OPENJDK_TARGET_OS_API:=@LEGACY_OPENJDK_TARGET_OS_API@ |
106 # 32 or 64 bit |
108 # 32 or 64 bit |
107 ARCH_DATA_MODEL:=@HOST_CPU_BITS@ |
109 ARCH_DATA_MODEL:=@OPENJDK_TARGET_CPU_BITS@ |
108 # Legacy setting for building for a 64 bit machine. |
110 # Legacy setting for building for a 64 bit machine. |
109 # If yes then this expands to _LP64:=1 |
111 # If yes then this expands to _LP64:=1 |
110 @LP64@ |
112 @LP64@ |
111 ENDIAN:=@HOST_CPU_ENDIAN@ |
113 ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@ |
112 @SET_OPENJDK@ |
114 @SET_OPENJDK@ |
113 JIGSAW:=@JIGSAW@ |
115 JIGSAW:=@JIGSAW@ |
114 LIBM:=-lm |
116 LIBM:=-lm |
115 LIBDL:=@LIBDL@ |
117 LIBDL:=@LIBDL@ |
116 |
118 |
200 # Legacy setting: debugging the class files? |
201 # Legacy setting: debugging the class files? |
201 DEBUG_CLASSFILES:=@DEBUG_CLASSFILES@ |
202 DEBUG_CLASSFILES:=@DEBUG_CLASSFILES@ |
202 # Legacy setting: -debug or -fastdebug |
203 # Legacy setting: -debug or -fastdebug |
203 BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@ |
204 BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@ |
204 |
205 |
205 LANGTOOLS_OUTPUTDIR:=@OUTPUT_ROOT@/langtools |
206 LANGTOOLS_OUTPUTDIR:=@LANGTOOLS_OUTPUTDIR@ |
206 LANGTOOLS_DIST:=@OUTPUT_ROOT@/langtools/dist |
207 CORBA_OUTPUTDIR:=@CORBA_OUTPUTDIR@ |
207 LANGTOOLS_MAKE_ARGS:=@LANGTOOLS_MAKE_ARGS@ |
208 JAXP_OUTPUTDIR:=@JAXP_OUTPUTDIR@ |
208 |
209 JAXWS_OUTPUTDIR:=@JAXWS_OUTPUTDIR@ |
209 CORBA_OUTPUTDIR:=@OUTPUT_ROOT@/corba |
210 HOTSPOT_OUTPUTDIR:=@HOTSPOT_OUTPUTDIR@ |
210 CORBA_DIST:=@OUTPUT_ROOT@/corba/dist |
|
211 CORBA_MAKE_ARGS:=@CORBA_MAKE_ARGS@ |
|
212 |
|
213 JAXP_OUTPUTDIR:=@OUTPUT_ROOT@/jaxp |
|
214 JAXP_DIST:=@OUTPUT_ROOT@/jaxp/dist |
|
215 JAXP_MAKE_ARGS:=@JAXP_MAKE_ARGS@ |
|
216 |
|
217 JAXWS_OUTPUTDIR:=@OUTPUT_ROOT@/jaxws |
|
218 JAXWS_DIST:=@OUTPUT_ROOT@/jaxws/dist |
|
219 JAXWS_MAKE_ARGS:=@JAXWS_MAKE_ARGS@ |
|
220 |
|
221 HOTSPOT_OUTPUTDIR:=@OUTPUT_ROOT@/hotspot |
|
222 HOTSPOT_DIST:=@OUTPUT_ROOT@/hotspot/dist |
|
223 HOTSPOT_MAKE_ARGS:=@HOTSPOT_MAKE_ARGS@ |
|
224 |
211 |
225 # This where a working jvm is built. |
212 # This where a working jvm is built. |
226 # You can run $(JDK_OUTPUTDIR)/bin/java |
213 # You can run $(JDK_OUTPUTDIR)/bin/java |
227 # Though the layout of the contents of $(JDK_OUTPUTDIR) is not |
214 # Though the layout of the contents of $(JDK_OUTPUTDIR) is not |
228 # yet the same as a default installation. |
215 # yet the same as a default installation. |
229 HOTSPOT_IMPORT_PATH:=@OUTPUT_ROOT@/hotspot/dist |
|
230 JDK_OUTPUTDIR:=@OUTPUT_ROOT@/jdk |
216 JDK_OUTPUTDIR:=@OUTPUT_ROOT@/jdk |
231 JDK_MAKE_ARGS:=@JDK_MAKE_ARGS@ |
|
232 |
217 |
233 # When you run "make install" it will create the standardized |
218 # When you run "make install" it will create the standardized |
234 # layout for the jdk and the jre inside the images subdir. |
219 # layout for the jdk and the jre inside the images subdir. |
235 # Then it will copy the contents of the jdk into the installation |
220 # Then it will copy the contents of the jdk into the installation |
236 # directory. |
221 # directory. |
237 IMAGES_OUTPUTDIR:=@OUTPUT_ROOT@/images |
222 IMAGES_OUTPUTDIR:=@OUTPUT_ROOT@/images |
238 IMAGES_MAKE_ARGS:=@IMAGES_MAKE_ARGS@ |
223 |
|
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@ |
|
229 |
239 # Legacy variables used by Release.gmk |
230 # Legacy variables used by Release.gmk |
240 JDK_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/j2sdk-image |
231 JDK_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/j2sdk-image |
241 JRE_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/j2re-image |
232 JRE_IMAGE_DIR:=$(IMAGES_OUTPUTDIR)/j2re-image |
242 |
233 |
243 # Can be /sparcv9 or /amd64 on Solaris |
234 # Can be /sparcv9 or /amd64 on Solaris |
244 ISA_DIR:=@LEGACY_HOST_CPU3@ |
235 ISA_DIR:=@LEGACY_OPENJDK_TARGET_CPU3@ |
245 BINDIR:=$(JDK_OUTPUTDIR)/bin$(ISA_DIR) |
236 BINDIR:=$(JDK_OUTPUTDIR)/bin$(ISA_DIR) |
246 |
237 |
247 # The boot jdk to use |
238 # The boot jdk to use |
248 ALT_BOOTDIR:=@BOOT_JDK@ |
239 ALT_BOOTDIR:=@BOOT_JDK@ |
249 BOOT_JDK:=@BOOT_JDK@ |
240 BOOT_JDK:=@BOOT_JDK@ |
250 BOOT_JDK_JVMARGS:=@BOOT_JDK_JVMARGS@ |
241 BOOT_JDK_JVMARGS:=@BOOT_JDK_JVMARGS@ |
251 BOOT_JAVAC_ARGS:=@BOOT_JAVAC_ARGS@ |
|
252 BOOT_RTJAR:=@BOOT_RTJAR@ |
242 BOOT_RTJAR:=@BOOT_RTJAR@ |
253 BOOT_TOOLSJAR:=@BOOT_TOOLSJAR@ |
243 BOOT_TOOLSJAR:=@BOOT_TOOLSJAR@ |
254 |
244 |
255 # When compiling Java source to be run by the boot jdk |
245 # When compiling Java source to be run by the boot jdk |
256 # use these extra flags, eg -source 6 -target 6 |
246 # use these extra flags, eg -source 6 -target 6 |
257 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@ |
247 BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@ |
258 |
248 |
259 # Information about the build system |
249 # Information about the build system |
260 NUM_CORES:=@NUM_CORES@ |
250 NUM_CORES:=@NUM_CORES@ |
261 # This is used from the libjvm build for C/C++ code. |
|
262 HOTSPOT_BUILD_JOBS:=@CONCURRENT_BUILD_JOBS@ |
|
263 # This is used from the jdk build for C/C++ code. |
251 # This is used from the jdk build for C/C++ code. |
264 PARALLEL_COMPILE_JOBS:=@CONCURRENT_BUILD_JOBS@ |
252 PARALLEL_COMPILE_JOBS:=@CONCURRENT_BUILD_JOBS@ |
265 # Store javac server synchronization files here, and |
253 # Store javac server synchronization files here, and |
266 # the javac server log files. |
254 # the javac server log files. |
267 JAVAC_SERVERS:=@JAVAC_SERVERS@ |
255 JAVAC_SERVERS:=@JAVAC_SERVERS@ |
280 JAVAC_SERVER_CORES:=@JAVAC_SERVER_CORES@ |
268 JAVAC_SERVER_CORES:=@JAVAC_SERVER_CORES@ |
281 # Should we use dependency tracking between Java packages? true or false. |
269 # Should we use dependency tracking between Java packages? true or false. |
282 JAVAC_USE_DEPS:=@JAVAC_USE_DEPS@ |
270 JAVAC_USE_DEPS:=@JAVAC_USE_DEPS@ |
283 # We can invoke javac: SINGLE_THREADED_BATCH or MULTI_CORE_CONCURRENT |
271 # We can invoke javac: SINGLE_THREADED_BATCH or MULTI_CORE_CONCURRENT |
284 JAVAC_USE_MODE:=@JAVAC_USE_MODE@ |
272 JAVAC_USE_MODE:=@JAVAC_USE_MODE@ |
|
273 # Enable not yet complete sjavac support. |
|
274 ENABLE_SJAVAC:=@ENABLE_SJAVAC@ |
285 |
275 |
286 # The OpenJDK makefiles should be changed to using the standard |
276 # The OpenJDK makefiles should be changed to using the standard |
287 # configure output ..._CFLAGS and ..._LIBS. In the meantime we |
277 # configure output ..._CFLAGS and ..._LIBS. In the meantime we |
288 # extract the information here. |
278 # extract the information here. |
289 FREETYPE2_LIB_PATH:=@FREETYPE2_LIB_PATH@ |
279 FREETYPE2_LIB_PATH:=@FREETYPE2_LIB_PATH@ |
373 |
363 |
374 # If cross compiling, then define CROSS_COMPILE_ARCH:=cpu_name here. |
364 # If cross compiling, then define CROSS_COMPILE_ARCH:=cpu_name here. |
375 @DEFINE_CROSS_COMPILE_ARCH@ |
365 @DEFINE_CROSS_COMPILE_ARCH@ |
376 # The HOSTCC should really be named BUILDCC, ie build executable for |
366 # The HOSTCC should really be named BUILDCC, ie build executable for |
377 # the build platform. Same as CC when not cross compiling. |
367 # the build platform. Same as CC when not cross compiling. |
378 HOSTCC:=@HOSTCC@ |
368 HOSTCC:=@UNCYGDRIVE@ @HOSTCC@ |
379 HOSTCXX:=@HOSTCXX@ |
369 HOSTCXX:=@UNCYGDRIVE@ @HOSTCXX@ |
380 # And of course, the jdk spells HOSTCC as NIO_CC/HOST_CC |
370 # And of course, the jdk spells HOSTCC as NIO_CC/HOST_CC |
381 HOST_CC:=@HOSTCC@ |
371 HOST_CC:=@UNCYGDRIVE@ @HOSTCC@ |
382 NIO_CC:=@HOSTCC@ |
372 NIO_CC:=@UNCYGDRIVE@ @HOSTCC@ |
383 |
373 |
384 AS:=@AS@ |
374 HOST_LD:=@UNCYGDRIVE@ @HOSTLD@ |
|
375 |
|
376 AS:=@UNCYGDRIVE@ @AS@ |
385 ASFLAGS:=@ASFLAGS@ |
377 ASFLAGS:=@ASFLAGS@ |
386 |
378 |
387 # AR is used to create a static library (is ar in posix, lib.exe in winapi) |
379 # AR is used to create a static library (is ar in posix, lib.exe in winapi) |
388 AR:=@UNCYGDRIVE@ @AR@ |
380 AR:=@UNCYGDRIVE@ @AR@ |
389 ARFLAGS:=@ARFLAGS@ |
381 ARFLAGS:=@ARFLAGS@ |
390 |
382 |
391 NM:=@NM@ |
383 NM:=@UNCYGDRIVE@ @NM@ |
392 STRIP:=@STRIP@ |
384 STRIP:=@UNCYGDRIVE@ @STRIP@ |
393 MCS:=@MCS@ |
385 MCS:=@UNCYGDRIVE@ @MCS@ |
394 |
386 |
395 # Command to create a shared library |
387 # Command to create a shared library |
396 SHARED_LIBRARY_FLAGS:=@SHARED_LIBRARY_FLAGS@ |
388 SHARED_LIBRARY_FLAGS:=@SHARED_LIBRARY_FLAGS@ |
397 |
389 |
398 # Options to linker to specify a mapfile. |
390 # Options to linker to specify a mapfile. |
401 |
393 |
402 # Options for C/CXX compiler to be used if linking is performed |
394 # Options for C/CXX compiler to be used if linking is performed |
403 # using reorder file |
395 # using reorder file |
404 C_FLAG_REORDER:=@C_FLAG_REORDER@ |
396 C_FLAG_REORDER:=@C_FLAG_REORDER@ |
405 CXX_FLAG_REORDER:=@CXX_FLAG_REORDER@ |
397 CXX_FLAG_REORDER:=@CXX_FLAG_REORDER@ |
|
398 |
|
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@ |
|
405 |
|
406 # |
|
407 # Compress (or not) jars |
|
408 COMPRESS_JARS=@COMPRESS_JARS@ |
406 |
409 |
407 # Options to linker to specify the library name. |
410 # Options to linker to specify the library name. |
408 # (Note absence of := assignment, because we do not want to evaluate the macro body here) |
411 # (Note absence of := assignment, because we do not want to evaluate the macro body here) |
409 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@ |
412 SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@ |
410 |
413 |
505 OTOOL:=@OTOOL@ |
508 OTOOL:=@OTOOL@ |
506 READELF:=@READELF@ |
509 READELF:=@READELF@ |
507 EXPR:=@EXPR@ |
510 EXPR:=@EXPR@ |
508 FILE:=@FILE@ |
511 FILE:=@FILE@ |
509 HG:=@HG@ |
512 HG:=@HG@ |
|
513 OBJCOPY:=@OBJCOPY@ |
510 |
514 |
511 UNCYGDRIVE:=@UNCYGDRIVE@ |
515 UNCYGDRIVE:=@UNCYGDRIVE@ |
512 |
516 |
513 # Where the build output is stored for your convenience. |
517 # Where the build output is stored for your convenience. |
514 BUILD_LOG:=@BUILD_LOG@ |
518 BUILD_LOG:=@BUILD_LOG@ |
|
519 BUILD_LOG_PREVIOUS:=@BUILD_LOG_PREVIOUS@ |
515 BUILD_LOG_WRAPPER:=@BUILD_LOG_WRAPPER@ |
520 BUILD_LOG_WRAPPER:=@BUILD_LOG_WRAPPER@ |
516 |
521 |
517 # Build setup |
522 # Build setup |
518 ENABLE_DOCS:=@ENABLE_DOCS@ |
523 ENABLE_DOCS:=@ENABLE_DOCS@ |
519 GENERATE_DOCS:=@ENABLE_DOCS@ |
524 GENERATE_DOCS:=@ENABLE_DOCS@ |
520 DISABLE_NIMBUS:=@DISABLE_NIMBUS@ |
525 DISABLE_NIMBUS:=@DISABLE_NIMBUS@ |
|
526 ENABLE_JFR=@ENABLE_JFR@ |
521 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@ |
527 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@ |
522 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@ |
528 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@ |
523 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@ |
529 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@ |
|
530 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@ |
524 CHECK_FOR_VCINSTALLDIR=@CHECK_FOR_VCINSTALLDIR@ |
531 CHECK_FOR_VCINSTALLDIR=@CHECK_FOR_VCINSTALLDIR@ |
525 MSVCRNN_DLL:=@MSVCR100DLL@ |
532 MSVCRNN_DLL:=@MSVCR100DLL@ |
|
533 |
526 |
534 |
527 # ADD_SRCS takes a single argument with source roots |
535 # ADD_SRCS takes a single argument with source roots |
528 # and appends any corresponding source roots found |
536 # and appends any corresponding source roots found |
529 # below --with-add-source-root and below |
537 # below --with-add-source-root and below |
530 # --with-override-source-root. It is the responsibility |
538 # --with-override-source-root. It is the responsibility |