< prev index next >

make/autoconf/buildjdk-spec.gmk.in

Print this page




  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 # This spec file is used to compile a BUILD_JDK while cross compiling. The
  27 # BUILD_JDK runs on the build/host platform and is of the same version as
  28 # the main build.
  29 
  30 # First include the real base spec.gmk file
  31 include @SPEC@
  32 
  33 CC := @BUILD_CC@
  34 CXX := @BUILD_CXX@
  35 # Ideally this should be probed by configure but that is tricky to implement,
  36 # and this should work in most cases.
  37 CPP := @BUILD_CC@ -E
  38 LD := @BUILD_LD@
  39 LDCXX := @BUILD_LDCXX@
  40 AS := @BUILD_AS@
  41 NM := @BUILD_NM@
  42 AR := @BUILD_AR@
  43 OBJCOPY := @BUILD_OBJCOPY@
  44 STRIP := @BUILD_STRIP@
  45 SYSROOT_CFLAGS := @BUILD_SYSROOT_CFLAGS@
  46 SYSROOT_LDFLAGS := @BUILD_SYSROOT_LDFLAGS@
  47 
  48 # These directories should not be moved to BUILDJDK_OUTPUTDIR
  49 HOTSPOT_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(HOTSPOT_OUTPUTDIR))
  50 BUILDTOOLS_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(BUILDTOOLS_OUTPUTDIR))
  51 SUPPORT_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(SUPPORT_OUTPUTDIR))
  52 JDK_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(JDK_OUTPUTDIR))
  53 IMAGES_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(IMAGES_OUTPUTDIR))
  54 
  55 OPENJDK_BUILD_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@
  56 OPENJDK_BUILD_CPU_LEGACY_LIB := @OPENJDK_BUILD_CPU_LEGACY_LIB@
  57 OPENJDK_TARGET_CPU := @OPENJDK_BUILD_CPU@
  58 OPENJDK_TARGET_CPU_ARCH := @OPENJDK_BUILD_CPU_ARCH@
  59 OPENJDK_TARGET_CPU_BITS := @OPENJDK_BUILD_CPU_BITS@
  60 OPENJDK_TARGET_CPU_ENDIAN := @OPENJDK_BUILD_CPU_ENDIAN@
  61 OPENJDK_TARGET_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@
  62 OPENJDK_TARGET_OS_INCLUDE_SUBDIR := @OPENJDK_BUILD_OS_INCLUDE_SUBDIR@
  63 
  64 HOTSPOT_TARGET_OS := @HOTSPOT_BUILD_OS@
  65 HOTSPOT_TARGET_OS_TYPE := @HOTSPOT_BUILD_OS_TYPE@
  66 HOTSPOT_TARGET_CPU := @HOTSPOT_BUILD_CPU@
  67 HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_BUILD_CPU_ARCH@
  68 HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_BUILD_CPU_DEFINE@
  69 
  70 CFLAGS_JDKLIB := @OPENJDK_BUILD_CFLAGS_JDKLIB@
  71 CXXFLAGS_JDKLIB := @OPENJDK_BUILD_CXXFLAGS_JDKLIB@
  72 LDFLAGS_JDKLIB := @OPENJDK_BUILD_LDFLAGS_JDKLIB@
  73 CFLAGS_JDKEXE := @OPENJDK_BUILD_CFLAGS_JDKEXE@
  74 CXXFLAGS_JDKEXE := @OPENJDK_BUILD_CXXFLAGS_JDKEXE@
  75 LDFLAGS_JDKEXE := @OPENJDK_BUILD_LDFLAGS_JDKEXE@
  76 
  77 JVM_CFLAGS := @OPENJDK_BUILD_JVM_CFLAGS@
  78 JVM_LDFLAGS := @OPENJDK_BUILD_JVM_LDFLAGS@
  79 JVM_ASFLAGS := @OPENJDK_BUILD_JVM_ASFLAGS@
  80 JVM_LIBS := @OPENJDK_BUILD_JVM_LIBS@
  81 
  82 FDLIBM_CFLAGS := @OPENJDK_BUILD_FDLIBM_CFLAGS@
  83 
  84 INTERIM_LANGTOOLS_ARGS := $(subst $(OUTPUTDIR),$(BUILDJDK_OUTPUTDIR),$(INTERIM_LANGTOOLS_ARGS))
  85 
  86 # The compiler for the build platform is likely not warning compatible with the official
  87 # compiler.
  88 WARNINGS_AS_ERRORS := false
  89 DISABLE_WARNING_PREFIX := @BUILD_CC_DISABLE_WARNING_PREFIX@
  90 
  91 # Save speed and disk space by not enabling debug symbols for the buildjdk
  92 ENABLE_DEBUG_SYMBOLS := false
  93 
  94 # Control wether Hotspot builds gtest tests
  95 BUILD_GTEST := false
  96 
  97 JVM_VARIANTS := server
  98 JVM_VARIANT_MAIN := server
  99 
 100 # Some users still set EXTRA_*FLAGS on the make command line. Must
 101 # make sure to override that when building buildjdk.
 102 override EXTRA_CFLAGS :=
 103 override EXTRA_CXXFLAGS :=
 104 override EXTRA_LDFLAGS :=


  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 # This spec file is used to compile a BUILD_JDK while cross compiling. The
  27 # BUILD_JDK runs on the build/host platform and is of the same version as
  28 # the main build.
  29 
  30 # First include the real base spec.gmk file
  31 include @SPEC@
  32 
  33 CC := @BUILD_CC@
  34 CXX := @BUILD_CXX@



  35 LD := @BUILD_LD@
  36 LDCXX := @BUILD_LDCXX@
  37 AS := @BUILD_AS@
  38 NM := @BUILD_NM@
  39 AR := @BUILD_AR@
  40 OBJCOPY := @BUILD_OBJCOPY@
  41 STRIP := @BUILD_STRIP@
  42 SYSROOT_CFLAGS := @BUILD_SYSROOT_CFLAGS@
  43 SYSROOT_LDFLAGS := @BUILD_SYSROOT_LDFLAGS@
  44 
  45 # These directories should not be moved to BUILDJDK_OUTPUTDIR
  46 HOTSPOT_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(HOTSPOT_OUTPUTDIR))

  47 SUPPORT_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(SUPPORT_OUTPUTDIR))
  48 JDK_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(JDK_OUTPUTDIR))
  49 IMAGES_OUTPUTDIR := $(patsubst $(OUTPUTDIR)%,$(BUILDJDK_OUTPUTDIR)%,$(IMAGES_OUTPUTDIR))
  50 
  51 OPENJDK_BUILD_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@
  52 OPENJDK_BUILD_CPU_LEGACY_LIB := @OPENJDK_BUILD_CPU_LEGACY_LIB@
  53 OPENJDK_TARGET_CPU := @OPENJDK_BUILD_CPU@
  54 OPENJDK_TARGET_CPU_ARCH := @OPENJDK_BUILD_CPU_ARCH@
  55 OPENJDK_TARGET_CPU_BITS := @OPENJDK_BUILD_CPU_BITS@
  56 OPENJDK_TARGET_CPU_ENDIAN := @OPENJDK_BUILD_CPU_ENDIAN@
  57 OPENJDK_TARGET_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@
  58 OPENJDK_TARGET_OS_INCLUDE_SUBDIR := @OPENJDK_BUILD_OS_INCLUDE_SUBDIR@
  59 
  60 HOTSPOT_TARGET_OS := @HOTSPOT_BUILD_OS@
  61 HOTSPOT_TARGET_OS_TYPE := @HOTSPOT_BUILD_OS_TYPE@
  62 HOTSPOT_TARGET_CPU := @HOTSPOT_BUILD_CPU@
  63 HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_BUILD_CPU_ARCH@
  64 HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_BUILD_CPU_DEFINE@
  65 
  66 CFLAGS_JDKLIB := @OPENJDK_BUILD_CFLAGS_JDKLIB@
  67 CXXFLAGS_JDKLIB := @OPENJDK_BUILD_CXXFLAGS_JDKLIB@
  68 LDFLAGS_JDKLIB := @OPENJDK_BUILD_LDFLAGS_JDKLIB@
  69 CFLAGS_JDKEXE := @OPENJDK_BUILD_CFLAGS_JDKEXE@
  70 CXXFLAGS_JDKEXE := @OPENJDK_BUILD_CXXFLAGS_JDKEXE@
  71 LDFLAGS_JDKEXE := @OPENJDK_BUILD_LDFLAGS_JDKEXE@
  72 
  73 JVM_CFLAGS := @OPENJDK_BUILD_JVM_CFLAGS@
  74 JVM_LDFLAGS := @OPENJDK_BUILD_JVM_LDFLAGS@
  75 JVM_ASFLAGS := @OPENJDK_BUILD_JVM_ASFLAGS@
  76 JVM_LIBS := @OPENJDK_BUILD_JVM_LIBS@




  77 
  78 # The compiler for the build platform is likely not warning compatible with the official
  79 # compiler.
  80 WARNINGS_AS_ERRORS := false
  81 DISABLE_WARNING_PREFIX := @BUILD_CC_DISABLE_WARNING_PREFIX@
  82 
  83 # Save speed and disk space by not enabling debug symbols for the buildjdk
  84 ENABLE_DEBUG_SYMBOLS := false
  85 
  86 # Control wether Hotspot builds gtest tests
  87 BUILD_GTEST := false
  88 
  89 JVM_VARIANTS := server
  90 JVM_VARIANT_MAIN := server
  91 
  92 # Some users still set EXTRA_*FLAGS on the make command line. Must
  93 # make sure to override that when building buildjdk.
  94 override EXTRA_CFLAGS :=
  95 override EXTRA_CXXFLAGS :=
  96 override EXTRA_LDFLAGS :=
< prev index next >