Makefile 3.7 KB
Newer Older
D
duke 已提交
1
#
2
# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
D
duke 已提交
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# 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.
#
19 20 21
# 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.
D
duke 已提交
22 23 24
#  
#

25 26
!include local.make

D
duke 已提交
27 28 29 30 31 32 33 34 35 36 37 38 39 40
WorkSpace=$(HOTSPOTWORKSPACE)

!ifdef ALT_BOOTDIR
BootStrapDir=$(ALT_BOOTDIR)
!else
!ifdef BOOTDIR
BootStrapDir=$(BOOTDIR)
!else
!ifdef JAVA_HOME
BootStrapDir=$(JAVA_HOME)
!endif
!endif
!endif

41
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/projectcreator.make
D
duke 已提交
42 43

# Pick up rules for building JVMTI (JSR-163)
44
JvmtiOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\jvmtifiles
45
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make
D
duke 已提交
46

47
Platform=$(HOTSPOTWORKSPACE)/make/windows/platform_$(BUILDARCH)
D
duke 已提交
48 49 50

!if "$(Variant)" == "compiler2"
# Pick up rules for building adlc
51
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
D
duke 已提交
52 53 54 55
!endif

!if "$(Variant)" == "tiered"
# Pick up rules for building adlc
56
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
D
duke 已提交
57 58
!endif

59
default:: $(AdditionalTargets) $(JvmtiGeneratedFiles)
D
duke 已提交
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89

!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
HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal
!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

90
ProjectCreatorIDEOptions =       $(ProjectCreatorIDEOptions) \
D
duke 已提交
91 92 93 94 95
      -platform            $(Platform) \
      -define              HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \
      -define              JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \
      -define              HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\"

96 97
$(HOTSPOTBUILDSPACE)/$(ProjectFile): local.make $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class
	@$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions)
D
duke 已提交
98 99

clean:
100 101
	@rm -rf $(HOTSPOTBUILDSPACE)/classes
	@rm -r ../$(ProjectFile)
D
duke 已提交
102

103
$(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources)
D
duke 已提交
104 105
	@if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
	@mkdir $(HOTSPOTBUILDSPACE)\classes
106
	@$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources)
D
duke 已提交
107 108

FORCE: