Makefile revision 1879
5937N/A#
5937N/A# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
5937N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5937N/A#
5937N/A# This code is free software; you can redistribute it and/or modify it
5937N/A# under the terms of the GNU General Public License version 2 only, as
5937N/A# published by the Free Software Foundation.
5937N/A#
5937N/A# This code is distributed in the hope that it will be useful, but WITHOUT
5937N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5937N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5937N/A# version 2 for more details (a copy is included in the LICENSE file that
5937N/A# accompanied this code).
5937N/A#
5937N/A# You should have received a copy of the GNU General Public License version
5937N/A# 2 along with this work; if not, write to the Free Software Foundation,
5937N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5937N/A#
5937N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5937N/A# or visit www.oracle.com if you need additional information or have any
5937N/A# questions.
5937N/A#
5937N/A#
5937N/A
5937N/A!include local.make
5937N/A
5937N/AWorkSpace=$(HOTSPOTWORKSPACE)
5937N/A
5937N/A!ifdef ALT_BOOTDIR
5937N/ABootStrapDir=$(ALT_BOOTDIR)
5937N/A!else
5937N/A!ifdef BOOTDIR
5937N/ABootStrapDir=$(BOOTDIR)
5937N/A!else
5937N/A!ifdef JAVA_HOME
5937N/ABootStrapDir=$(JAVA_HOME)
5937N/A!endif
5937N/A!endif
5937N/A!endif
5937N/A
5937N/A!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/projectcreator.make
5937N/A
5937N/A# Pick up rules for building JVMTI (JSR-163)
5937N/AJvmtiOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\jvmtifiles
5937N/A!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make
5937N/A
5937N/APlatform=$(HOTSPOTWORKSPACE)/make/windows/platform_$(BUILDARCH)
5937N/A
5937N/A!if "$(Variant)" == "compiler2"
5937N/A# Pick up rules for building adlc
5937N/A!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
5937N/A!endif
5937N/A
5937N/A!if "$(Variant)" == "tiered"
5937N/A# Pick up rules for building adlc
5937N/A!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
5937N/A!endif
5937N/A
5937N/Adefault:: $(AdditionalTargets) $(JvmtiGeneratedFiles)
5937N/A
5937N/A!include $(HOTSPOTWORKSPACE)/make/hotspot_version
5937N/A
5937N/A!if "$(HOTSPOT_RELEASE_VERSION)" != ""
5937N/AHOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)"
5937N/A!else
5937N/AHOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)"
5937N/A!endif
5937N/AHOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal
5937N/A!if "$(HOTSPOT_BUILD_VERSION)" != ""
5971N/AHOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)"
5937N/A!endif
5971N/A!if "$(JRE_RELEASE_VERSION)" != ""
5937N/AJRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)"
5937N/A!else
5937N/AJRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)"
!endif
# Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
# and if it is not see if we have the src/closed directory
!if "$(HOTSPOT_VM_DISTRO)" != ""
HOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)"
!else
!if exists($(HOTSPOTWORKSPACE)\src\closed)
HOTSPOT_VM_DISTRO="Java HotSpot(TM)"
!else
HOTSPOT_VM_DISTRO="OpenJDK"
!endif
!endif
ProjectCreatorIDEOptions = $(ProjectCreatorIDEOptions) \
-platform $(Platform) \
-define HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \
-define JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \
-define HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\"
$(HOTSPOTBUILDSPACE)/$(ProjectFile): local.make $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class
@$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions)
clean:
@rm -rf $(HOTSPOTBUILDSPACE)/classes
@rm -r ../$(ProjectFile)
$(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources)
@if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
@mkdir $(HOTSPOTBUILDSPACE)\classes
@$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources)
FORCE: