2007-12-01 00:00:00 +00:00
|
|
|
#
|
2011-02-10 12:03:22 +00:00
|
|
|
# Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
|
2007-12-01 00:00:00 +00:00
|
|
|
# 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.
|
|
|
|
#
|
2010-05-28 02:08:38 +00:00
|
|
|
# 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.
|
2007-12-01 00:00:00 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2010-12-15 15:11:31 +00:00
|
|
|
!ifdef LOCAL_MAKE
|
|
|
|
!include $(LOCAL_MAKE)
|
|
|
|
!endif
|
|
|
|
|
2010-11-23 21:22:55 +00:00
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
WorkSpace=$(HOTSPOTWORKSPACE)
|
|
|
|
|
|
|
|
!ifdef ALT_BOOTDIR
|
|
|
|
BootStrapDir=$(ALT_BOOTDIR)
|
|
|
|
!else
|
|
|
|
!ifdef BOOTDIR
|
|
|
|
BootStrapDir=$(BOOTDIR)
|
|
|
|
!else
|
|
|
|
!ifdef JAVA_HOME
|
|
|
|
BootStrapDir=$(JAVA_HOME)
|
2010-12-15 15:11:31 +00:00
|
|
|
!else
|
|
|
|
!ifdef HOTSPOTJDKDIST
|
|
|
|
BootStrapDir=$(HOTSPOTJDKDIST)
|
|
|
|
!endif
|
2007-12-01 00:00:00 +00:00
|
|
|
!endif
|
|
|
|
!endif
|
|
|
|
!endif
|
|
|
|
|
2010-12-15 15:11:31 +00:00
|
|
|
|
|
|
|
|
2010-11-23 21:22:55 +00:00
|
|
|
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/projectcreator.make
|
2010-12-15 15:11:31 +00:00
|
|
|
!include $(WorkSpace)/make/windows/makefiles/compile.make
|
2007-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
# Pick up rules for building JVMTI (JSR-163)
|
2010-11-23 21:22:55 +00:00
|
|
|
JvmtiOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\jvmtifiles
|
2008-04-09 18:22:48 +00:00
|
|
|
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make
|
2007-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
!if "$(Variant)" == "compiler2"
|
|
|
|
# Pick up rules for building adlc
|
2008-04-09 18:22:48 +00:00
|
|
|
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
|
2007-12-01 00:00:00 +00:00
|
|
|
!endif
|
|
|
|
|
|
|
|
!if "$(Variant)" == "tiered"
|
|
|
|
# Pick up rules for building adlc
|
2008-04-09 18:22:48 +00:00
|
|
|
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
|
2007-12-01 00:00:00 +00:00
|
|
|
!endif
|
|
|
|
|
2010-12-15 15:11:31 +00:00
|
|
|
HS_INTERNAL_NAME=jvm
|
|
|
|
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/launcher.make
|
|
|
|
|
2010-11-23 21:22:55 +00:00
|
|
|
default:: $(AdditionalTargets) $(JvmtiGeneratedFiles)
|
2007-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
!include $(HOTSPOTWORKSPACE)/make/hotspot_version
|
|
|
|
|
|
|
|
!if "$(HOTSPOT_RELEASE_VERSION)" != ""
|
|
|
|
HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)"
|
|
|
|
!else
|
|
|
|
HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)"
|
|
|
|
!endif
|
2010-12-01 02:07:18 +00:00
|
|
|
!if "$(USER_RELEASE_SUFFIX)" != ""
|
|
|
|
HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal-$(USER_RELEASE_SUFFIX)
|
|
|
|
!else
|
2007-12-01 00:00:00 +00:00
|
|
|
HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal
|
2010-12-01 02:07:18 +00:00
|
|
|
!endif
|
2007-12-01 00:00:00 +00:00
|
|
|
!if "$(HOTSPOT_BUILD_VERSION)" != ""
|
|
|
|
HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)"
|
|
|
|
!endif
|
|
|
|
!if "$(JRE_RELEASE_VERSION)" != ""
|
|
|
|
JRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)"
|
|
|
|
!else
|
|
|
|
JRE_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
|
|
|
|
|
2010-11-23 21:22:55 +00:00
|
|
|
ProjectCreatorIDEOptions = $(ProjectCreatorIDEOptions) \
|
2007-12-01 00:00:00 +00:00
|
|
|
-define HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \
|
|
|
|
-define JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \
|
|
|
|
-define HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\"
|
|
|
|
|
2011-02-10 12:03:22 +00:00
|
|
|
$(HOTSPOTBUILDSPACE)/$(ProjectFile): $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class
|
2010-11-23 21:22:55 +00:00
|
|
|
@$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions)
|
2007-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
clean:
|
2010-11-23 21:22:55 +00:00
|
|
|
@rm -rf $(HOTSPOTBUILDSPACE)/classes
|
2011-02-10 12:03:22 +00:00
|
|
|
@rm -r $(HOTSPOTBUILDSPACE)/$(ProjectFile)
|
2007-12-01 00:00:00 +00:00
|
|
|
|
2010-11-23 21:22:55 +00:00
|
|
|
$(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources)
|
2007-12-01 00:00:00 +00:00
|
|
|
@if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
|
|
|
|
@mkdir $(HOTSPOTBUILDSPACE)\classes
|
2010-11-23 21:22:55 +00:00
|
|
|
@$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources)
|
2007-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
FORCE:
|