make/windows/makefiles/defs.make

Print this page
rev 3161 : Enable OpenJDK builds on Windows with MinGW/MSYS


 114 
 115 # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined
 116 # and added to MAKE_ARGS list in $(GAMMADIR)/make/defs.make.
 117 
 118 # next parameters are defined in $(GAMMADIR)/make/defs.make.
 119 MAKE_ARGS += JDK_MKTG_VERSION=$(JDK_MKTG_VERSION)
 120 MAKE_ARGS += JDK_MAJOR_VER=$(JDK_MAJOR_VERSION)
 121 MAKE_ARGS += JDK_MINOR_VER=$(JDK_MINOR_VERSION)
 122 MAKE_ARGS += JDK_MICRO_VER=$(JDK_MICRO_VERSION)
 123 
 124 ifdef COOKED_JDK_UPDATE_VERSION
 125   MAKE_ARGS += JDK_UPDATE_VER=$(COOKED_JDK_UPDATE_VERSION)
 126 endif
 127 
 128 # COOKED_BUILD_NUMBER should only be set if we have a numeric
 129 # build number.  It must not be zero padded.
 130 ifdef COOKED_BUILD_NUMBER
 131   MAKE_ARGS += JDK_BUILD_NUMBER=$(COOKED_BUILD_NUMBER)
 132 endif
 133 
 134 NMAKE= MAKEFLAGS= MFLAGS= nmake /NOLOGO
 135 
 136 # Check for CYGWIN
 137 ifneq (,$(findstring CYGWIN,$(shell uname)))
 138   USING_CYGWIN=true
 139 else
 140   USING_CYGWIN=false
 141 endif




 142 # FIXUP: The subdirectory for a debug build is NOT the same on all platforms
 143 VM_DEBUG=debug
 144 
 145 # Windows wants particular paths due to nmake (must be after macros defined)
 146 #   It is important that gnumake invokes nmake with C:\\...\\  formated
 147 #   strings so that nmake gets C:\...\ style strings.
 148 # Check for CYGWIN
 149 ifeq ($(USING_CYGWIN), true)
 150   ABS_OUTPUTDIR   := $(subst /,\\,$(shell /bin/cygpath -m -a "$(OUTPUTDIR)"))
 151   ABS_BOOTDIR     := $(subst /,\\,$(shell /bin/cygpath -m -a "$(BOOTDIR)"))
 152   ABS_GAMMADIR    := $(subst /,\\,$(shell /bin/cygpath -m -a "$(GAMMADIR)"))
 153   ABS_OS_MAKEFILE := $(shell /bin/cygpath -m -a "$(HS_MAKE_DIR)/$(OSNAME)")/build.make
 154 else






 155   ABS_OUTPUTDIR   := $(subst /,\\,$(shell $(CD) $(OUTPUTDIR);$(PWD)))
 156   ABS_BOOTDIR     := $(subst /,\\,$(shell $(CD) $(BOOTDIR);$(PWD)))
 157   ABS_GAMMADIR    := $(subst /,\\,$(shell $(CD) $(GAMMADIR);$(PWD)))
 158   ABS_OS_MAKEFILE := $(subst /,\\,$(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME);$(PWD))/build.make)

 159 endif
 160 
 161 # Disable building SA on windows until we are sure
 162 # we want to release it.  If we build it here,
 163 # the SDK makefiles will copy it over and put it into
 164 # the created image.
 165 BUILD_WIN_SA = 1
 166 ifneq ($(ALT_BUILD_WIN_SA),)
 167   BUILD_WIN_SA = $(ALT_BUILD_WIN_SA)
 168 endif
 169 
 170 ifeq ($(BUILD_WIN_SA), 1)
 171   ifeq ($(ARCH),ia64)
 172     BUILD_WIN_SA = 0
 173   endif
 174 endif
 175 
 176 EXPORT_SERVER_DIR = $(EXPORT_JRE_BIN_DIR)/server
 177 EXPORT_CLIENT_DIR = $(EXPORT_JRE_BIN_DIR)/client
 178 EXPORT_KERNEL_DIR = $(EXPORT_JRE_BIN_DIR)/kernel




 114 
 115 # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined
 116 # and added to MAKE_ARGS list in $(GAMMADIR)/make/defs.make.
 117 
 118 # next parameters are defined in $(GAMMADIR)/make/defs.make.
 119 MAKE_ARGS += JDK_MKTG_VERSION=$(JDK_MKTG_VERSION)
 120 MAKE_ARGS += JDK_MAJOR_VER=$(JDK_MAJOR_VERSION)
 121 MAKE_ARGS += JDK_MINOR_VER=$(JDK_MINOR_VERSION)
 122 MAKE_ARGS += JDK_MICRO_VER=$(JDK_MICRO_VERSION)
 123 
 124 ifdef COOKED_JDK_UPDATE_VERSION
 125   MAKE_ARGS += JDK_UPDATE_VER=$(COOKED_JDK_UPDATE_VERSION)
 126 endif
 127 
 128 # COOKED_BUILD_NUMBER should only be set if we have a numeric
 129 # build number.  It must not be zero padded.
 130 ifdef COOKED_BUILD_NUMBER
 131   MAKE_ARGS += JDK_BUILD_NUMBER=$(COOKED_BUILD_NUMBER)
 132 endif
 133 
 134 NMAKE= MAKEFLAGS= MFLAGS= nmake -NOLOGO
 135 
 136 # Check for CYGWIN
 137 ifneq (,$(findstring CYGWIN,$(shell uname)))
 138   USING_CYGWIN=true
 139 else
 140   USING_CYGWIN=false
 141 endif
 142 # Check for MinGW
 143 ifneq (,$(findstring MINGW,$(SYSTEM_UNAME)))
 144   USING_MINGW=true
 145 endif
 146 # FIXUP: The subdirectory for a debug build is NOT the same on all platforms
 147 VM_DEBUG=debug
 148 
 149 # Windows wants particular paths due to nmake (must be after macros defined)
 150 #   It is important that gnumake invokes nmake with C:\\...\\  formated
 151 #   strings so that nmake gets C:\...\ style strings.
 152 # Check for CYGWIN
 153 ifeq ($(USING_CYGWIN), true)
 154   ABS_OUTPUTDIR   := $(subst /,\\,$(shell /bin/cygpath -m -a "$(OUTPUTDIR)"))
 155   ABS_BOOTDIR     := $(subst /,\\,$(shell /bin/cygpath -m -a "$(BOOTDIR)"))
 156   ABS_GAMMADIR    := $(subst /,\\,$(shell /bin/cygpath -m -a "$(GAMMADIR)"))
 157   ABS_OS_MAKEFILE := $(shell /bin/cygpath -m -a "$(HS_MAKE_DIR)/$(OSNAME)")/build.make
 158 else
 159   ifeq ($(USING_MINGW), true)
 160     ABS_OUTPUTDIR   := $(shell $(CD) $(OUTPUTDIR);$(PWD))
 161     ABS_BOOTDIR     := $(shell $(CD) $(BOOTDIR);$(PWD))
 162     ABS_GAMMADIR    := $(shell $(CD) $(GAMMADIR);$(PWD))
 163     ABS_OS_MAKEFILE := $(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME);$(PWD))/build.make
 164   else
 165     ABS_OUTPUTDIR   := $(subst /,\\,$(shell $(CD) $(OUTPUTDIR);$(PWD)))
 166     ABS_BOOTDIR     := $(subst /,\\,$(shell $(CD) $(BOOTDIR);$(PWD)))
 167     ABS_GAMMADIR    := $(subst /,\\,$(shell $(CD) $(GAMMADIR);$(PWD)))
 168     ABS_OS_MAKEFILE := $(subst /,\\,$(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME);$(PWD))/build.make)
 169   endif
 170 endif
 171 
 172 # Disable building SA on windows until we are sure
 173 # we want to release it.  If we build it here,
 174 # the SDK makefiles will copy it over and put it into
 175 # the created image.
 176 BUILD_WIN_SA = 1
 177 ifneq ($(ALT_BUILD_WIN_SA),)
 178   BUILD_WIN_SA = $(ALT_BUILD_WIN_SA)
 179 endif
 180 
 181 ifeq ($(BUILD_WIN_SA), 1)
 182   ifeq ($(ARCH),ia64)
 183     BUILD_WIN_SA = 0
 184   endif
 185 endif
 186 
 187 EXPORT_SERVER_DIR = $(EXPORT_JRE_BIN_DIR)/server
 188 EXPORT_CLIENT_DIR = $(EXPORT_JRE_BIN_DIR)/client
 189 EXPORT_KERNEL_DIR = $(EXPORT_JRE_BIN_DIR)/kernel