Makefile 3.7 KB
Newer Older
D
duke 已提交
1
#
2
# Copyright (c) 1999, 2012, 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 27 28
!ifdef LOCAL_MAKE
!include $(LOCAL_MAKE)
!endif

29

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

!ifdef ALT_BOOTDIR
BootStrapDir=$(ALT_BOOTDIR)
!else
!ifdef BOOTDIR
BootStrapDir=$(BOOTDIR)
!else
!ifdef JAVA_HOME
BootStrapDir=$(JAVA_HOME)
40 41 42 43
!else
!ifdef HOTSPOTJDKDIST
BootStrapDir=$(HOTSPOTJDKDIST)
!endif
D
duke 已提交
44 45 46 47
!endif
!endif
!endif

48 49


50
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/projectcreator.make
51
!include $(WorkSpace)/make/windows/makefiles/compile.make
D
duke 已提交
52 53

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

!if "$(Variant)" == "compiler2"
# Pick up rules for building adlc
59
!include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
D
duke 已提交
60 61 62 63
!endif

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

67 68
HS_INTERNAL_NAME=jvm

69
default:: $(AdditionalTargets) $(JvmtiGeneratedFiles)
D
duke 已提交
70 71 72

!include $(HOTSPOTWORKSPACE)/make/hotspot_version

73
!if "$(USER_RELEASE_SUFFIX)" != ""
74
HOTSPOT_BUILD_VERSION = internal-$(USER_RELEASE_SUFFIX)
75
!else
76
HOTSPOT_BUILD_VERSION = internal
77
!endif
78 79 80 81
!if "$(HOTSPOT_RELEASE_VERSION)" != ""
HOTSPOT_RELEASE_VERSION="\\\"$(HOTSPOT_RELEASE_VERSION)\\\""
!else
HOTSPOT_RELEASE_VERSION="\\\"$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)-$(HOTSPOT_BUILD_VERSION)\\\""
D
duke 已提交
82 83
!endif
!if "$(JRE_RELEASE_VERSION)" != ""
84
JRE_RELEASE_VERSION="\\\"$(JRE_RELEASE_VERSION)\\\""
D
duke 已提交
85
!else
86
JRE_RELEASE_VERSION="\\\"$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)\\\""
D
duke 已提交
87 88 89 90 91
!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)" != ""
92
HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)
D
duke 已提交
93 94
!else
!if exists($(HOTSPOTWORKSPACE)\src\closed)
95
HOTSPOT_VM_DISTRO="\\\"Java HotSpot(TM)\\\""
D
duke 已提交
96
!else
97
HOTSPOT_VM_DISTRO="\\\"OpenJDK\\\""
D
duke 已提交
98 99 100
!endif
!endif

101 102
ReleaseOptions = -define HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION) -define JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) -define HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)
ProjectCreatorIDEOptions = $(ProjectCreatorIDEOptions) $(ReleaseOptions)
D
duke 已提交
103

104
$(HOTSPOTBUILDSPACE)/$(ProjectFile): $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class
105
	@$(RUN_JAVA) -Djava.class.path="$(HOTSPOTBUILDSPACE)/classes" ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions)
D
duke 已提交
106 107

clean:
108
	@rm -rf $(HOTSPOTBUILDSPACE)/classes
109
	@rm -r $(HOTSPOTBUILDSPACE)/$(ProjectFile)
D
duke 已提交
110

111
$(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources)
D
duke 已提交
112 113
	@if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
	@mkdir $(HOTSPOTBUILDSPACE)\classes
114
	@$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources)
D
duke 已提交
115 116

FORCE: