hotspot/make/windows/build.make
changeset 34319 9d6dd3c5ca23
parent 33957 39113ae98993
parent 34289 2d1821a50263
child 37115 f9c20e87f9ec
equal deleted inserted replaced
34096:5ac6287ec71a 34319:9d6dd3c5ca23
    27 # environment variables (Variant, WorkSpace, BootStrapDir, BuildUser, HOTSPOT_BUILD_VERSION)
    27 # environment variables (Variant, WorkSpace, BootStrapDir, BuildUser, HOTSPOT_BUILD_VERSION)
    28 # are passed in as command line arguments.
    28 # are passed in as command line arguments.
    29 
    29 
    30 # Note: Running nmake or build.bat from the Windows command shell requires
    30 # Note: Running nmake or build.bat from the Windows command shell requires
    31 # that "sh" be accessible on the PATH. An MKS install does this.
    31 # that "sh" be accessible on the PATH. An MKS install does this.
    32 
       
    33 # SA components are built if BUILD_WIN_SA=1 is specified.
       
    34 # See notes in README. This produces files:
       
    35 #  1. sa-jdi.jar       - This is built before building jvm.dll
       
    36 #  2. sawindbg.dll     - Native library for SA - This is built after jvm.dll
       
    37 #                      - Also, .lib, .map, .pdb.
       
    38 #
       
    39 # Please refer to ./makefiles/sa.make
       
    40 
    32 
    41 # If we haven't set an ARCH yet use x86
    33 # If we haven't set an ARCH yet use x86
    42 # create.bat and build.bat will set it, if used.
    34 # create.bat and build.bat will set it, if used.
    43 !ifndef ARCH
    35 !ifndef ARCH
    44 ARCH=x86
    36 ARCH=x86
   166 !ifndef OPENJDK
   158 !ifndef OPENJDK
   167 !if !exists($(WorkSpace)\src\closed)
   159 !if !exists($(WorkSpace)\src\closed)
   168 OPENJDK=true
   160 OPENJDK=true
   169 !endif
   161 !endif
   170 !endif
   162 !endif
   171 
       
   172 # We don't support SA on ia64, and we can't
       
   173 # build it if we are using a version of Vis Studio
       
   174 # older than .Net 2003.
       
   175 # SA_INCLUDE and SA_LIB are hold-overs from a previous
       
   176 # implementation in which we could build SA using
       
   177 # Debugging Tools For Windows, in which the .h/.lib files
       
   178 # and the .dlls are in different places than
       
   179 # they are for Vis Studio .Net 2003.
       
   180 # If that code ever needs to be resurrected, these vars
       
   181 # can be set here.  They are used in makefiles/sa.make.
       
   182 
       
   183 checkSA::
       
   184 
       
   185 !if "$(BUILD_WIN_SA)" != "1"
       
   186 checkSA::
       
   187 	@echo     Not building SA:  BUILD_WIN_SA != 1
       
   188 
       
   189 !elseif "$(ARCH)" == "ia64"
       
   190 BUILD_WIN_SA = 0
       
   191 checkSA::
       
   192 	@echo     Not building SA:  ARCH = ia64
       
   193 
       
   194 !endif  # ! "$(BUILD_WIN_SA)" != "1"
       
   195 
   163 
   196 #########################################################################
   164 #########################################################################
   197 
   165 
   198 defaultTarget: product
   166 defaultTarget: product
   199 
   167 
   247 	@ echo HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)		>> $@
   215 	@ echo HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)		>> $@
   248 	@ if "$(OPENJDK)" NEQ "" echo OPENJDK=$(OPENJDK)	>> $@
   216 	@ if "$(OPENJDK)" NEQ "" echo OPENJDK=$(OPENJDK)	>> $@
   249 	@ echo HS_COPYRIGHT=$(HOTSPOT_VM_COPYRIGHT)		>> $@
   217 	@ echo HS_COPYRIGHT=$(HOTSPOT_VM_COPYRIGHT)		>> $@
   250 	@ echo HS_NAME=$(PRODUCT_NAME) $(VERSION_SHORT)		>> $@
   218 	@ echo HS_NAME=$(PRODUCT_NAME) $(VERSION_SHORT)		>> $@
   251 	@ echo HOTSPOT_VERSION_STRING=$(HOTSPOT_VERSION_STRING)	>> $@
   219 	@ echo HOTSPOT_VERSION_STRING=$(HOTSPOT_VERSION_STRING)	>> $@
   252 	@ echo BUILD_WIN_SA=$(BUILD_WIN_SA)    			>> $@
       
   253 	@ echo SA_BUILD_VERSION=$(HOTSPOT_VERSION_STRING)       >> $@
       
   254 	@ echo SA_INCLUDE=$(SA_INCLUDE)      			>> $@
       
   255 	@ echo SA_LIB=$(SA_LIB)         			>> $@
       
   256 	@ echo JDK_VER=$(JDK_VER)				>> $@
   220 	@ echo JDK_VER=$(JDK_VER)				>> $@
   257 	@ echo JDK_DOTVER=$(JDK_DOTVER)				>> $@
   221 	@ echo JDK_DOTVER=$(JDK_DOTVER)				>> $@
   258 	@ echo VERSION_STRING=$(VERSION_STRING)			>> $@
   222 	@ echo VERSION_STRING=$(VERSION_STRING)			>> $@
   259 	@ echo BUILDARCH=$(BUILDARCH)         			>> $@
   223 	@ echo BUILDARCH=$(BUILDARCH)         			>> $@
   260 	@ echo Platform_arch=$(Platform_arch)        		>> $@
   224 	@ echo Platform_arch=$(Platform_arch)        		>> $@
   269 	@ if "$(RM)" NEQ "" echo RM=$(RM)                       >> $@
   233 	@ if "$(RM)" NEQ "" echo RM=$(RM)                       >> $@
   270 	@ if "$(CP)" NEQ "" echo CP=$(CP)                       >> $@
   234 	@ if "$(CP)" NEQ "" echo CP=$(CP)                       >> $@
   271 	@ if "$(MV)" NEQ "" echo MV=$(MV)                       >> $@
   235 	@ if "$(MV)" NEQ "" echo MV=$(MV)                       >> $@
   272 	@ if "$(ZIPEXE)" NEQ "" echo ZIPEXE=$(ZIPEXE)           >> $@
   236 	@ if "$(ZIPEXE)" NEQ "" echo ZIPEXE=$(ZIPEXE)           >> $@
   273 
   237 
   274 checks: checkVariant checkWorkSpace checkSA
   238 checks: checkVariant checkWorkSpace
   275 
   239 
   276 checkVariant:
   240 checkVariant:
   277 	@ if "$(Variant)"=="" echo Need to specify "Variant=[tiered|compiler2|compiler1|core]" && false
   241 	@ if "$(Variant)"=="" echo Need to specify "Variant=[tiered|compiler2|compiler1|core]" && false
   278 	@ if "$(Variant)" NEQ "tiered" if "$(Variant)" NEQ "compiler2" if "$(Variant)" NEQ "compiler1" if "$(Variant)" NEQ "core" \
   242 	@ if "$(Variant)" NEQ "tiered" if "$(Variant)" NEQ "compiler2" if "$(Variant)" NEQ "compiler1" if "$(Variant)" NEQ "core" \
   279           echo Need to specify "Variant=[tiered|compiler2|compiler1|core]" && false
   243           echo Need to specify "Variant=[tiered|compiler2|compiler1|core]" && false