< prev index next >

make/defs.make

Print this page


   1 #
   2 # Copyright (c) 2006, 2013, 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.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #


 269 
 270 # We are trying to put platform specific defintions
 271 # files to make/$(OSNAME)/makefiles dictory. However
 272 # some definitions are common for both linux and solaris,
 273 # so we put them here.
 274 ifneq ($(OSNAME),windows)
 275   ABS_OUTPUTDIR     := $(shell mkdir -p $(OUTPUTDIR); $(CD) $(OUTPUTDIR); $(PWD))
 276   ABS_BOOTDIR       := $(shell $(CD) $(BOOTDIR); $(PWD))
 277   ABS_GAMMADIR      := $(shell $(CD) $(GAMMADIR); $(PWD))
 278   ABS_OS_MAKEFILE   := $(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME); $(PWD))/Makefile
 279 
 280   # uname, HotSpot source directory, build directory and JDK use different names
 281   # for CPU architectures.
 282   #   ARCH      - uname output
 283   #   SRCARCH   - where to find HotSpot cpu and os_cpu source files
 284   #   BUILDARCH - build directory
 285   #   LIBARCH   - directory name in JDK/JRE
 286 
 287   # Use uname output for SRCARCH, but deal with platform differences. If ARCH
 288   # is not explicitly listed below, it is treated as x86.
 289   SRCARCH     = $(ARCH/$(filter sparc sparc64 ia64 amd64 x86_64 arm ppc ppc64 aarch64 zero,$(ARCH)))
 290   ARCH/       = x86
 291   ARCH/sparc  = sparc
 292   ARCH/sparc64= sparc
 293   ARCH/ia64   = ia64
 294   ARCH/amd64  = x86
 295   ARCH/x86_64 = x86
 296   ARCH/ppc64  = ppc
 297   ARCH/ppc    = ppc
 298   ARCH/arm    = arm
 299   ARCH/aarch64= aarch64
 300   ARCH/zero   = zero
 301 
 302   # BUILDARCH is usually the same as SRCARCH, except for sparcv9
 303   BUILDARCH = $(SRCARCH)
 304   ifeq ($(BUILDARCH), x86)
 305     ifdef LP64
 306       BUILDARCH = amd64
 307     else
 308       BUILDARCH = i486
 309     endif
 310   endif
 311   ifeq ($(BUILDARCH), sparc)
 312     ifdef LP64
 313       BUILDARCH = sparcv9
 314     endif
 315   endif
 316   ifeq ($(BUILDARCH), ppc)
 317     ifdef LP64
 318       BUILDARCH = ppc64
 319     endif
 320   endif
 321 
 322   # LIBARCH is 1:1 mapping from BUILDARCH
 323   LIBARCH         = $(LIBARCH/$(BUILDARCH))
 324   LIBARCH/i486    = i386
 325   LIBARCH/amd64   = amd64
 326   LIBARCH/sparc   = sparc
 327   LIBARCH/sparcv9 = sparcv9
 328   LIBARCH/ia64    = ia64
 329   LIBARCH/ppc64   = ppc64
 330   LIBARCH/aarch64 = aarch64
 331   LIBARCH/ppc     = ppc
 332   LIBARCH/arm     = arm
 333   LIBARCH/zero    = $(ZERO_LIBARCH)
 334 
 335   LP64_ARCH = sparcv9 amd64 ia64 ppc64 aarch64 zero
 336 endif
 337 
 338 # Required make macro settings for all platforms
 339 MAKE_ARGS += BOOTDIR=$(ABS_BOOTDIR)
 340 MAKE_ARGS += OUTPUTDIR=$(ABS_OUTPUTDIR)
 341 MAKE_ARGS += GAMMADIR=$(ABS_GAMMADIR)
 342 MAKE_ARGS += MAKE_VERBOSE=$(MAKE_VERBOSE)
 343 MAKE_ARGS += JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
 344 
 345 # Pass HOTSPOT_BUILD_VERSION as argument to OS specific Makefile
 346 # to overwrite the default definition since OS specific Makefile also
 347 # includes this make/defs.make file.
 348 MAKE_ARGS += HOTSPOT_BUILD_VERSION=$(HOTSPOT_BUILD_VERSION)
 349 
 350 # Various export sub directories
 351 EXPORT_INCLUDE_DIR = $(EXPORT_PATH)/include
 352 EXPORT_DOCS_DIR = $(EXPORT_PATH)/docs


   1 #
   2 # Copyright (c) 2006, 2015, 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.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #


 269 
 270 # We are trying to put platform specific defintions
 271 # files to make/$(OSNAME)/makefiles dictory. However
 272 # some definitions are common for both linux and solaris,
 273 # so we put them here.
 274 ifneq ($(OSNAME),windows)
 275   ABS_OUTPUTDIR     := $(shell mkdir -p $(OUTPUTDIR); $(CD) $(OUTPUTDIR); $(PWD))
 276   ABS_BOOTDIR       := $(shell $(CD) $(BOOTDIR); $(PWD))
 277   ABS_GAMMADIR      := $(shell $(CD) $(GAMMADIR); $(PWD))
 278   ABS_OS_MAKEFILE   := $(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME); $(PWD))/Makefile
 279 
 280   # uname, HotSpot source directory, build directory and JDK use different names
 281   # for CPU architectures.
 282   #   ARCH      - uname output
 283   #   SRCARCH   - where to find HotSpot cpu and os_cpu source files
 284   #   BUILDARCH - build directory
 285   #   LIBARCH   - directory name in JDK/JRE
 286 
 287   # Use uname output for SRCARCH, but deal with platform differences. If ARCH
 288   # is not explicitly listed below, it is treated as x86.
 289   SRCARCH    ?= $(ARCH/$(filter sparc sparc64 ia64 amd64 x86_64 ppc ppc64 aarch64 zero,$(ARCH)))
 290   ARCH/       = x86
 291   ARCH/sparc  = sparc
 292   ARCH/sparc64= sparc
 293   ARCH/ia64   = ia64
 294   ARCH/amd64  = x86
 295   ARCH/x86_64 = x86
 296   ARCH/ppc64  = ppc
 297   ARCH/ppc    = ppc

 298   ARCH/aarch64= aarch64
 299   ARCH/zero   = zero
 300 
 301   # BUILDARCH is usually the same as SRCARCH, except for sparcv9
 302   BUILDARCH ?= $(SRCARCH)
 303   ifeq ($(BUILDARCH), x86)
 304     ifdef LP64
 305       BUILDARCH = amd64
 306     else
 307       BUILDARCH = i486
 308     endif
 309   endif
 310   ifeq ($(BUILDARCH), sparc)
 311     ifdef LP64
 312       BUILDARCH = sparcv9
 313     endif
 314   endif
 315   ifeq ($(BUILDARCH), ppc)
 316     ifdef LP64
 317       BUILDARCH = ppc64
 318     endif
 319   endif
 320 
 321   # LIBARCH is 1:1 mapping from BUILDARCH
 322   LIBARCH        ?= $(LIBARCH/$(BUILDARCH))
 323   LIBARCH/i486    = i386
 324   LIBARCH/amd64   = amd64
 325   LIBARCH/sparc   = sparc
 326   LIBARCH/sparcv9 = sparcv9
 327   LIBARCH/ia64    = ia64
 328   LIBARCH/ppc64   = ppc64
 329   LIBARCH/aarch64 = aarch64


 330   LIBARCH/zero    = $(ZERO_LIBARCH)
 331 
 332   LP64_ARCH = sparcv9 amd64 ia64 ppc64 aarch64 zero
 333 endif
 334 
 335 # Required make macro settings for all platforms
 336 MAKE_ARGS += BOOTDIR=$(ABS_BOOTDIR)
 337 MAKE_ARGS += OUTPUTDIR=$(ABS_OUTPUTDIR)
 338 MAKE_ARGS += GAMMADIR=$(ABS_GAMMADIR)
 339 MAKE_ARGS += MAKE_VERBOSE=$(MAKE_VERBOSE)
 340 MAKE_ARGS += JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
 341 
 342 # Pass HOTSPOT_BUILD_VERSION as argument to OS specific Makefile
 343 # to overwrite the default definition since OS specific Makefile also
 344 # includes this make/defs.make file.
 345 MAKE_ARGS += HOTSPOT_BUILD_VERSION=$(HOTSPOT_BUILD_VERSION)
 346 
 347 # Various export sub directories
 348 EXPORT_INCLUDE_DIR = $(EXPORT_PATH)/include
 349 EXPORT_DOCS_DIR = $(EXPORT_PATH)/docs


< prev index next >