jdk/make/common/shared/Defs-macosx.gmk

Print this page




 126   DEVTOOLS_PATH =$(PACKAGE_PATH)/bin/
 127 endif
 128 
 129 # _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK.
 130 # _BOOTDIR2: Second choice
 131 ifndef ALT_BOOTDIR
 132   _BOOTDIR1  =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
 133   _BOOTDIR2  =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION)
 134 endif
 135 
 136 # Always build headless on Bsd
 137 BUILD_HEADLESS = true
 138 LIBM=-lm
 139 
 140 ifeq ($(OS_VENDOR), Apple)
 141   _CUPS_HEADERS_PATH=/usr/include
 142 else
 143   _CUPS_HEADERS_PATH=$(PACKAGE_PATH)/include
 144 endif
 145 


 146 # Import JDK images allow for partial builds, components not built are
 147 #    imported (or copied from) these import areas when needed.
 148 
 149 # BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for 
 150 #   multiple platforms, e.g. windows-i586, solaris-sparc, bsd-586, etc.
 151 ifdef ALT_BUILD_JDK_IMPORT_PATH
 152   BUILD_JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH))
 153 else
 154   BUILD_JDK_IMPORT_PATH   = $(PROMOTED_BUILD_BINARIES)
 155 endif
 156 BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH)
 157 
 158 # JDK_IMPORT_PATH: location of JDK install tree (this version) to import
 159 ifdef ALT_JDK_IMPORT_PATH
 160   JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_JDK_IMPORT_PATH))
 161 else
 162   JDK_IMPORT_PATH   = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT)
 163 endif
 164 JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH)
 165 










 166 # HOTSPOT_IMPORT_PATH: location of hotspot pre-built files
 167 ifdef ALT_HOTSPOT_IMPORT_PATH
 168   HOTSPOT_IMPORT_PATH :=$(call FullPath,$(ALT_HOTSPOT_IMPORT_PATH))
 169 else
 170   HOTSPOT_IMPORT_PATH =$(JDK_IMPORT_PATH)
 171 endif
 172 HOTSPOT_IMPORT_PATH:=$(call AltCheckValue,HOTSPOT_IMPORT_PATH)
 173 
 174 # check if the HOTSPOT_IMPORT_PATH is a modules image or not
 175 HOTSPOT_IMPORT_MODULES_IMAGE := $(shell \
 176       if [ -d $(HOTSPOT_IMPORT_PATH)/jre/$(ARCH_VM_SUBDIR) ] ; then \
 177         echo "false"; \
 178       elif [ -d $(HOTSPOT_IMPORT_PATH)/lib/modules ] ; then \
 179         echo "true"; \
 180       else \
 181         echo "false"; \
 182       fi \
 183       )
 184 
 185 # MMM ARCH_VM_SUBDIR=jre/lib on Mac OS ..




 126   DEVTOOLS_PATH =$(PACKAGE_PATH)/bin/
 127 endif
 128 
 129 # _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK.
 130 # _BOOTDIR2: Second choice
 131 ifndef ALT_BOOTDIR
 132   _BOOTDIR1  =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
 133   _BOOTDIR2  =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION)
 134 endif
 135 
 136 # Always build headless on Bsd
 137 BUILD_HEADLESS = true
 138 LIBM=-lm
 139 
 140 ifeq ($(OS_VENDOR), Apple)
 141   _CUPS_HEADERS_PATH=/usr/include
 142 else
 143   _CUPS_HEADERS_PATH=$(PACKAGE_PATH)/include
 144 endif
 145 
 146 _BDB_HEADERS_PATH=/usr/include
 147 
 148 # Import JDK images allow for partial builds, components not built are
 149 #    imported (or copied from) these import areas when needed.
 150 
 151 # BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for
 152 #   multiple platforms, e.g. windows-i586, solaris-sparc, bsd-586, etc.
 153 ifdef ALT_BUILD_JDK_IMPORT_PATH
 154   BUILD_JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH))
 155 else
 156   BUILD_JDK_IMPORT_PATH   = $(PROMOTED_BUILD_BINARIES)
 157 endif
 158 BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH)
 159 
 160 # JDK_IMPORT_PATH: location of JDK install tree (this version) to import
 161 ifdef ALT_JDK_IMPORT_PATH
 162   JDK_IMPORT_PATH  :=$(call FullPath,$(ALT_JDK_IMPORT_PATH))
 163 else
 164   JDK_IMPORT_PATH   = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT)
 165 endif
 166 JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH)
 167 
 168 # BDB_IMPORT_PATH: location of bdb pre-built/generated files
 169 ifndef USE_SYSTEM_BDB
 170   ifdef ALT_BDB_IMPORT_PATH
 171     BDB_IMPORT_PATH :=$(call FullPath,$(ALT_BDB_IMPORT_PATH))
 172   else
 173     BDB_IMPORT_PATH =  #$(JDK_IMPORT_PATH)   # Can't import from JDK
 174   endif
 175   #BDB_IMPORT_PATH:=$(call AltCheckValue,BDB_IMPORT_PATH) # TODO: disable for now
 176 endif
 177 
 178 # HOTSPOT_IMPORT_PATH: location of hotspot pre-built files
 179 ifdef ALT_HOTSPOT_IMPORT_PATH
 180   HOTSPOT_IMPORT_PATH :=$(call FullPath,$(ALT_HOTSPOT_IMPORT_PATH))
 181 else
 182   HOTSPOT_IMPORT_PATH =$(JDK_IMPORT_PATH)
 183 endif
 184 HOTSPOT_IMPORT_PATH:=$(call AltCheckValue,HOTSPOT_IMPORT_PATH)
 185 
 186 # check if the HOTSPOT_IMPORT_PATH is a modules image or not
 187 HOTSPOT_IMPORT_MODULES_IMAGE := $(shell \
 188       if [ -d $(HOTSPOT_IMPORT_PATH)/jre/$(ARCH_VM_SUBDIR) ] ; then \
 189         echo "false"; \
 190       elif [ -d $(HOTSPOT_IMPORT_PATH)/lib/modules ] ; then \
 191         echo "true"; \
 192       else \
 193         echo "false"; \
 194       fi \
 195       )
 196 
 197 # MMM ARCH_VM_SUBDIR=jre/lib on Mac OS ..