< prev index next >

make/defs.make

Print this page




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

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

 329   LIBARCH/sparc   = sparc
 330   LIBARCH/sparcv9 = sparcv9
 331   LIBARCH/ia64    = ia64
 332   LIBARCH/ppc64   = ppc64
 333   LIBARCH/zero    = $(ZERO_LIBARCH)
 334 
 335   LP64_ARCH += sparcv9 amd64 ia64 ppc64 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 += HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION)
 344 MAKE_ARGS += JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
 345 
 346 # Pass HOTSPOT_BUILD_VERSION as argument to OS specific Makefile
 347 # to overwrite the default definition since OS specific Makefile also
 348 # includes this make/defs.make file.
 349 MAKE_ARGS += HOTSPOT_BUILD_VERSION=$(HOTSPOT_BUILD_VERSION)
 350 
 351 # Various export sub directories
 352 EXPORT_INCLUDE_DIR = $(EXPORT_PATH)/include
 353 EXPORT_DOCS_DIR = $(EXPORT_PATH)/docs
 354 EXPORT_LIB_DIR = $(EXPORT_PATH)/lib
 355 EXPORT_JRE_DIR = $(EXPORT_PATH)/jre




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


< prev index next >