make/windows/makefiles/defs.make

Print this page




 171 
 172 # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined
 173 # and added to MAKE_ARGS list in $(GAMMADIR)/make/defs.make.
 174 
 175 # next parameters are defined in $(GAMMADIR)/make/defs.make.
 176 MAKE_ARGS += JDK_MKTG_VERSION=$(JDK_MKTG_VERSION)
 177 MAKE_ARGS += JDK_MAJOR_VER=$(JDK_MAJOR_VERSION)
 178 MAKE_ARGS += JDK_MINOR_VER=$(JDK_MINOR_VERSION)
 179 MAKE_ARGS += JDK_MICRO_VER=$(JDK_MICRO_VERSION)
 180 
 181 ifdef COOKED_JDK_UPDATE_VERSION
 182   MAKE_ARGS += JDK_UPDATE_VER=$(COOKED_JDK_UPDATE_VERSION)
 183 endif
 184 
 185 # COOKED_BUILD_NUMBER should only be set if we have a numeric
 186 # build number.  It must not be zero padded.
 187 ifdef COOKED_BUILD_NUMBER
 188   MAKE_ARGS += JDK_BUILD_NUMBER=$(COOKED_BUILD_NUMBER)
 189 endif
 190 
 191 NMAKE= MAKEFLAGS= MFLAGS= nmake /NOLOGO




 192 
 193 # Check for CYGWIN
 194 ifneq (,$(findstring CYGWIN,$(shell uname)))
 195   USING_CYGWIN=true
 196 else
 197   USING_CYGWIN=false
 198 endif




 199 # FIXUP: The subdirectory for a debug build is NOT the same on all platforms
 200 VM_DEBUG=debug
 201 
 202 # Windows wants particular paths due to nmake (must be after macros defined)
 203 #   It is important that gnumake invokes nmake with C:\\...\\  formated
 204 #   strings so that nmake gets C:\...\ style strings.
 205 # Check for CYGWIN
 206 ifeq ($(USING_CYGWIN), true)
 207   ABS_OUTPUTDIR   := $(subst /,\\,$(shell /bin/cygpath -m -a "$(OUTPUTDIR)"))
 208   ABS_BOOTDIR     := $(subst /,\\,$(shell /bin/cygpath -m -a "$(BOOTDIR)"))
 209   ABS_GAMMADIR    := $(subst /,\\,$(shell /bin/cygpath -m -a "$(GAMMADIR)"))
 210   ABS_OS_MAKEFILE := $(shell /bin/cygpath -m -a "$(HS_MAKE_DIR)/$(OSNAME)")/build.make
 211 else





 212   ABS_OUTPUTDIR   := $(subst /,\\,$(shell $(CD) $(OUTPUTDIR);$(PWD)))
 213   ABS_BOOTDIR     := $(subst /,\\,$(shell $(CD) $(BOOTDIR);$(PWD)))
 214   ABS_GAMMADIR    := $(subst /,\\,$(shell $(CD) $(GAMMADIR);$(PWD)))
 215   ABS_OS_MAKEFILE := $(subst /,\\,$(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME);$(PWD))/build.make)
 216 endif
 217 
 218 # Disable building SA on windows until we are sure
 219 # we want to release it.  If we build it here,
 220 # the SDK makefiles will copy it over and put it into
 221 # the created image.
 222 BUILD_WIN_SA = 1
 223 ifneq ($(ALT_BUILD_WIN_SA),)
 224   BUILD_WIN_SA = $(ALT_BUILD_WIN_SA)
 225 endif
 226 
 227 ifeq ($(BUILD_WIN_SA), 1)
 228   ifeq ($(ARCH),ia64)
 229     BUILD_WIN_SA = 0
 230   endif
 231 endif




 171 
 172 # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined
 173 # and added to MAKE_ARGS list in $(GAMMADIR)/make/defs.make.
 174 
 175 # next parameters are defined in $(GAMMADIR)/make/defs.make.
 176 MAKE_ARGS += JDK_MKTG_VERSION=$(JDK_MKTG_VERSION)
 177 MAKE_ARGS += JDK_MAJOR_VER=$(JDK_MAJOR_VERSION)
 178 MAKE_ARGS += JDK_MINOR_VER=$(JDK_MINOR_VERSION)
 179 MAKE_ARGS += JDK_MICRO_VER=$(JDK_MICRO_VERSION)
 180 
 181 ifdef COOKED_JDK_UPDATE_VERSION
 182   MAKE_ARGS += JDK_UPDATE_VER=$(COOKED_JDK_UPDATE_VERSION)
 183 endif
 184 
 185 # COOKED_BUILD_NUMBER should only be set if we have a numeric
 186 # build number.  It must not be zero padded.
 187 ifdef COOKED_BUILD_NUMBER
 188   MAKE_ARGS += JDK_BUILD_NUMBER=$(COOKED_BUILD_NUMBER)
 189 endif
 190 
 191 NMAKE= MAKEFLAGS= MFLAGS= nmake -NOLOGO
 192 ifndef SYSTEM_UNAME
 193   SYSTEM_UNAME := $(shell uname)
 194   export SYSTEM_UNAME
 195 endif
 196 
 197 # Check for CYGWIN
 198 ifneq (,$(findstring CYGWIN,$(SYSTEM_UNAME)))
 199   USING_CYGWIN=true
 200 else
 201   USING_CYGWIN=false
 202 endif
 203 # Check for MinGW
 204 ifneq (,$(findstring MINGW,$(SYSTEM_UNAME)))
 205   USING_MINGW=true
 206 endif
 207 # FIXUP: The subdirectory for a debug build is NOT the same on all platforms
 208 VM_DEBUG=debug
 209 
 210 # Windows wants particular paths due to nmake (must be after macros defined)
 211 #   It is important that gnumake invokes nmake with C:\\...\\  formated
 212 #   strings so that nmake gets C:\...\ style strings.
 213 # Check for CYGWIN
 214 ifeq ($(USING_CYGWIN), true)
 215   ABS_OUTPUTDIR   := $(subst /,\\,$(shell /bin/cygpath -m -a "$(OUTPUTDIR)"))
 216   ABS_BOOTDIR     := $(subst /,\\,$(shell /bin/cygpath -m -a "$(BOOTDIR)"))
 217   ABS_GAMMADIR    := $(subst /,\\,$(shell /bin/cygpath -m -a "$(GAMMADIR)"))
 218   ABS_OS_MAKEFILE := $(shell /bin/cygpath -m -a "$(HS_MAKE_DIR)/$(OSNAME)")/build.make
 219 else ifeq ($(USING_MINGW), true)
 220     ABS_OUTPUTDIR   := $(shell $(CD) $(OUTPUTDIR);$(PWD))
 221     ABS_BOOTDIR     := $(shell $(CD) $(BOOTDIR);$(PWD))
 222     ABS_GAMMADIR    := $(shell $(CD) $(GAMMADIR);$(PWD))
 223     ABS_OS_MAKEFILE := $(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME);$(PWD))/build.make
 224   else
 225     ABS_OUTPUTDIR   := $(subst /,\\,$(shell $(CD) $(OUTPUTDIR);$(PWD)))
 226     ABS_BOOTDIR     := $(subst /,\\,$(shell $(CD) $(BOOTDIR);$(PWD)))
 227     ABS_GAMMADIR    := $(subst /,\\,$(shell $(CD) $(GAMMADIR);$(PWD)))
 228     ABS_OS_MAKEFILE := $(subst /,\\,$(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME);$(PWD))/build.make)
 229 endif
 230 
 231 # Disable building SA on windows until we are sure
 232 # we want to release it.  If we build it here,
 233 # the SDK makefiles will copy it over and put it into
 234 # the created image.
 235 BUILD_WIN_SA = 1
 236 ifneq ($(ALT_BUILD_WIN_SA),)
 237   BUILD_WIN_SA = $(ALT_BUILD_WIN_SA)
 238 endif
 239 
 240 ifeq ($(BUILD_WIN_SA), 1)
 241   ifeq ($(ARCH),ia64)
 242     BUILD_WIN_SA = 0
 243   endif
 244 endif