hotspot/make/aix/makefiles/buildtree.make
changeset 33957 39113ae98993
parent 26691 40ea2c41f53b
child 34319 9d6dd3c5ca23
equal deleted inserted replaced
30850:56166ce66037 33957:39113ae98993
     1 #
     1 #
     2 # Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
     2 # Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
     3 # Copyright 2012, 2013 SAP AG. All rights reserved.
     3 # Copyright 2012, 2013 SAP AG. All rights reserved.
     4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5 #
     5 #
     6 # This code is free software; you can redistribute it and/or modify it
     6 # This code is free software; you can redistribute it and/or modify it
     7 # under the terms of the GNU General Public License version 2 only, as
     7 # under the terms of the GNU General Public License version 2 only, as
    35 # BUILDARCH     - build directory
    35 # BUILDARCH     - build directory
    36 # LIBARCH       - the corresponding directory in JDK/JRE
    36 # LIBARCH       - the corresponding directory in JDK/JRE
    37 # GAMMADIR	- top of workspace
    37 # GAMMADIR	- top of workspace
    38 # OS_FAMILY	- operating system
    38 # OS_FAMILY	- operating system
    39 # VARIANT	- core, compiler1, compiler2, or tiered
    39 # VARIANT	- core, compiler1, compiler2, or tiered
    40 # HOTSPOT_RELEASE_VERSION - <major_ver>.<minor_ver>.<micro_ver>[-<identifier>][-<debug_target>][-b<nn>]
    40 # VERSION_STRING - the JDK version string as specified by JEP-223
    41 # HOTSPOT_BUILD_VERSION   - internal, internal-$(USER_RELEASE_SUFFIX) or empty
    41 # HOTSPOT_VERSION_STRING - the same as VERSION_STRING, unless overridden by a standalone build
    42 # JRE_RELEASE_VERSION     - <major>.<minor>.<micro> (1.7.0)
       
    43 #
    42 #
    44 # Builds the directory trees with makefiles plus some convenience files in
    43 # Builds the directory trees with makefiles plus some convenience files in
    45 # each directory:
    44 # each directory:
    46 #
    45 #
    47 # Makefile	- for "make foo"
    46 # Makefile	- for "make foo"
   130 BUILDTREE_VARS	= GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \
   129 BUILDTREE_VARS	= GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \
   131 	SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT)
   130 	SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT)
   132 
   131 
   133 # Define variables to be set in flags.make.
   132 # Define variables to be set in flags.make.
   134 # Default values are set in make/defs.make.
   133 # Default values are set in make/defs.make.
   135 ifeq ($(HOTSPOT_BUILD_VERSION),)
   134 
   136   HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)
       
   137 else
       
   138   HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
       
   139 endif
       
   140 # Set BUILD_USER from system-dependent hints:  $LOGNAME, $(whoami)
   135 # Set BUILD_USER from system-dependent hints:  $LOGNAME, $(whoami)
   141 ifndef HOTSPOT_BUILD_USER
   136 ifndef HOTSPOT_BUILD_USER
   142   HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME)
   137   HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME)
   143 endif
   138 endif
   144 ifndef HOTSPOT_BUILD_USER
   139 ifndef HOTSPOT_BUILD_USER
   159   ifneq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true)
   154   ifneq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true)
   160     OPENJDK=true
   155     OPENJDK=true
   161   endif
   156   endif
   162 endif
   157 endif
   163 
   158 
   164 BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HS_BUILD_VER) HOTSPOT_BUILD_VERSION=  JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
   159 BUILDTREE_VARS += HOTSPOT_VERSION_STRING=$(HOTSPOT_VERSION_STRING) VERSION_STRING=$(VERSION_STRING)
   165 
   160 
   166 BUILDTREE	= \
   161 BUILDTREE	= \
   167 	$(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS)
   162 	$(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS)
   168 
   163 
   169 BUILDTREE_COMMENT	= echo "\# Generated by $(BUILDTREE_MAKE)"
   164 BUILDTREE_COMMENT	= echo "\# Generated by $(BUILDTREE_MAKE)"
   208 	echo "SYSDEFS = \$$(Platform_sysdefs)"; \
   203 	echo "SYSDEFS = \$$(Platform_sysdefs)"; \
   209 	echo "SRCARCH = $(SRCARCH)"; \
   204 	echo "SRCARCH = $(SRCARCH)"; \
   210 	echo "BUILDARCH = $(BUILDARCH)"; \
   205 	echo "BUILDARCH = $(BUILDARCH)"; \
   211 	echo "LIBARCH = $(LIBARCH)"; \
   206 	echo "LIBARCH = $(LIBARCH)"; \
   212 	echo "TARGET = $(TARGET)"; \
   207 	echo "TARGET = $(TARGET)"; \
   213 	echo "HS_BUILD_VER = $(HS_BUILD_VER)"; \
   208 	echo "HOTSPOT_VERSION_STRING = $(HOTSPOT_VERSION_STRING)"; \
   214 	echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \
   209 	echo "VERSION_STRING = $(VERSION_STRING)"; \
   215 	echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \
   210 	echo "SA_BUILD_VERSION = $(HOTSPOT_VERSION_STRING)"; \
   216 	echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \
   211 	echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \
   217 	echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \
   212 	echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \
   218 	echo "OPENJDK = $(OPENJDK)"; \
   213 	echo "OPENJDK = $(OPENJDK)"; \
   219 	echo "$(LP64_SETTING/$(DATA_MODE))"; \
   214 	echo "$(LP64_SETTING/$(DATA_MODE))"; \
   220 	echo; \
   215 	echo; \