comparison make/linux/makefiles/buildtree.make @ 8879:bab5cbf74b5f

8011198: LP64 setting is not preserved on Solaris after 8006965 Summary: Fixed incremental build makefiles generated by buildtree.make. Consolidated unix build.sh. Reviewed-by: twisti
author kvn
date Thu, 04 Apr 2013 12:18:46 -0700
parents 98f3af397705
children b9a918201d47 f36e073d56a4
comparison
equal deleted inserted replaced
8878:573cf206e381 8879:bab5cbf74b5f
1 # 1 #
2 # Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 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 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. 7 # published by the Free Software Foundation.
180 180
181 # Convenience macro which takes a source relative path, applies $(1) to the 181 # Convenience macro which takes a source relative path, applies $(1) to the
182 # absolute path, and then replaces $(GAMMADIR) in the result with a 182 # absolute path, and then replaces $(GAMMADIR) in the result with a
183 # literal "$(GAMMADIR)/" suitable for inclusion in a Makefile. 183 # literal "$(GAMMADIR)/" suitable for inclusion in a Makefile.
184 gamma-path=$(subst $(GAMMADIR),\$$(GAMMADIR),$(call $(1),$(HS_COMMON_SRC)/$(2))) 184 gamma-path=$(subst $(GAMMADIR),\$$(GAMMADIR),$(call $(1),$(HS_COMMON_SRC)/$(2)))
185
186 # This bit is needed to enable local rebuilds.
187 # Unless the makefile itself sets LP64, any environmental
188 # setting of LP64 will interfere with the build.
189 LP64_SETTING/32 = LP64 = \#empty
190 LP64_SETTING/64 = LP64 = 1
191
192 DATA_MODE/i486 = 32
193 DATA_MODE/sparc = 32
194 DATA_MODE/sparcv9 = 64
195 DATA_MODE/amd64 = 64
196
197 DATA_MODE = $(DATA_MODE/$(BUILDARCH))
185 198
186 flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst 199 flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
187 @echo Creating $@ ... 200 @echo Creating $@ ...
188 $(QUIETLY) ( \ 201 $(QUIETLY) ( \
189 $(BUILDTREE_COMMENT); \ 202 $(BUILDTREE_COMMENT); \
203 echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \ 216 echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \
204 echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \ 217 echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \
205 echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \ 218 echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \
206 echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \ 219 echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \
207 echo "OPENJDK = $(OPENJDK)"; \ 220 echo "OPENJDK = $(OPENJDK)"; \
221 echo "$(LP64_SETTING/$(DATA_MODE))"; \
208 echo; \ 222 echo; \
209 echo "# Used for platform dispatching"; \ 223 echo "# Used for platform dispatching"; \
210 echo "TARGET_DEFINES = -DTARGET_OS_FAMILY_\$$(Platform_os_family)"; \ 224 echo "TARGET_DEFINES = -DTARGET_OS_FAMILY_\$$(Platform_os_family)"; \
211 echo "TARGET_DEFINES += -DTARGET_ARCH_\$$(Platform_arch)"; \ 225 echo "TARGET_DEFINES += -DTARGET_ARCH_\$$(Platform_arch)"; \
212 echo "TARGET_DEFINES += -DTARGET_ARCH_MODEL_\$$(Platform_arch_model)"; \ 226 echo "TARGET_DEFINES += -DTARGET_ARCH_MODEL_\$$(Platform_arch_model)"; \