|
Java example source code file (build.make)
The build.make Java example source code# # Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the Free Software Foundation. # # This code is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # version 2 for more details (a copy is included in the LICENSE file that # accompanied this code). # # You should have received a copy of the GNU General Public License version # 2 along with this work; if not, write to the Free Software Foundation, # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. # # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA # or visit www.oracle.com if you need additional information or have any # questions. # # # Note: this makefile is invoked both from build.bat and from the J2SE # control workspace in exactly the same manner; the required # environment variables (Variant, WorkSpace, BootStrapDir, BuildUser, HOTSPOT_BUILD_VERSION) # are passed in as command line arguments. # Note: Running nmake or build.bat from the Windows command shell requires # that "sh" be accessible on the PATH. An MKS install does this. # SA components are built if BUILD_WIN_SA=1 is specified. # See notes in README. This produces files: # 1. sa-jdi.jar - This is built before building jvm.dll # 2. sawindbg.dll - Native library for SA - This is built after jvm.dll # - Also, .lib, .map, .pdb. # # Please refer to ./makefiles/sa.make # If we haven't set an ARCH yet use x86 # create.bat and build.bat will set it, if used. !ifndef ARCH ARCH=x86 !endif # Must be one of these values (if value comes in from env, can't trust it) !if "$(ARCH)" != "x86" !if "$(ARCH)" != "ia64" ARCH=x86 !endif !endif # At this point we should be certain that ARCH has a definition # now determine the BUILDARCH # # the default BUILDARCH BUILDARCH=i486 # Allow control workspace to force Itanium or AMD64 builds with LP64 ARCH_TEXT= !ifdef LP64 !if "$(LP64)" == "1" ARCH_TEXT=64-Bit !if "$(ARCH)" == "x86" BUILDARCH=amd64 !else BUILDARCH=ia64 !endif !endif !endif !if "$(BUILDARCH)" != "ia64" !ifndef CC_INTERP !ifndef FORCE_TIERED FORCE_TIERED=1 !endif !endif !endif !if "$(BUILDARCH)" == "amd64" Platform_arch=x86 Platform_arch_model=x86_64 !endif !if "$(BUILDARCH)" == "i486" Platform_arch=x86 Platform_arch_model=x86_32 !endif # Supply these from the command line or the environment # It doesn't make sense to default this one Variant= # It doesn't make sense to default this one WorkSpace= variantDir = windows_$(BUILDARCH)_$(Variant) realVariant=$(Variant) VARIANT_TEXT=Core !if "$(Variant)" == "compiler1" VARIANT_TEXT=Client !elseif "$(Variant)" == "compiler2" !if "$(FORCE_TIERED)" == "1" VARIANT_TEXT=Server realVariant=tiered !else VARIANT_TEXT=Server !endif !elseif "$(Variant)" == "tiered" VARIANT_TEXT=Tiered !endif ######################################################################### # Parameters for VERSIONINFO resource for jvm.dll. # These can be overridden via the nmake.exe command line. # They are overridden by RE during the control builds. # !include "$(WorkSpace)/make/hotspot_version" # Define HOTSPOT_VM_DISTRO based on settings in make/openjdk_distro # or make/hotspot_distro. !ifndef HOTSPOT_VM_DISTRO !if exists($(WorkSpace)\src\closed) # if the build is for JDK6 or earlier version, it should include jdk6_hotspot_distro, # instead of hotspot_distro. JDK6_OR_EARLIER=0 !if "$(JDK_MAJOR_VERSION)" != "" && "$(JDK_MINOR_VERSION)" != "" && "$(JDK_MICRO_VERSION)" != "" !if $(JDK_MAJOR_VERSION) == 1 && $(JDK_MINOR_VERSION) < 7 JDK6_OR_EARLIER=1 !endif !else !if $(JDK_MAJOR_VER) == 1 && $(JDK_MINOR_VER) < 7 JDK6_OR_EARLIER=1 !endif !endif !if $(JDK6_OR_EARLIER) == 1 !include $(WorkSpace)\make\jdk6_hotspot_distro !else !include $(WorkSpace)\make\hotspot_distro !endif !else !include $(WorkSpace)\make\openjdk_distro !endif !endif # Following the Web Start / Plugin model here.... # We can have update versions like "01a", but Windows requires # we use only integers in the file version field. So: # JDK_UPDATE_VER = JDK_UPDATE_VERSION * 10 + EXCEPTION_VERSION # JDK_UPDATE_VER=0 JDK_BUILD_NUMBER=0 HS_FILEDESC=$(HOTSPOT_VM_DISTRO) $(ARCH_TEXT) $(VARIANT_TEXT) VM # JDK ProductVersion: # 1.5.0_<wx>-b Other Java examples (source code examples)Here is a short list of links related to this Java build.make source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.