1 #
2 # Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation.
8 #
9 # This code is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
63 # Pick up rules for building trace
64 TraceOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\tracefiles
65 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/trace.make
66
67 !if "$(Variant)" == "compiler2"
68 # Pick up rules for building adlc
69 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
70 !endif
71
72 !if "$(Variant)" == "tiered"
73 # Pick up rules for building adlc
74 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
75 !endif
76
77 HS_INTERNAL_NAME=jvm
78
79 default:: $(AdditionalTargets) $(JvmtiGeneratedFiles) $(TraceGeneratedFiles)
80
81 !include $(HOTSPOTWORKSPACE)/make/jdk_version
82
83 !if "$(USER_RELEASE_SUFFIX)" != ""
84 HOTSPOT_BUILD_VERSION = internal-$(USER_RELEASE_SUFFIX)
85 !else
86 HOTSPOT_BUILD_VERSION = internal
87 !endif
88 !if "$(JRE_RELEASE_VERSION)" != ""
89 JRE_RELEASE_VERSION="\\\"$(JRE_RELEASE_VERSION)\\\""
90 !else
91 JRE_RELEASE_VERSION="\\\"$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)\\\""
92 !endif
93 !if "$(HOTSPOT_RELEASE_VERSION)" != ""
94 HOTSPOT_RELEASE_VERSION="\\\"$(HOTSPOT_RELEASE_VERSION)\\\""
95 !else
96 HOTSPOT_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
97 !endif
98 # Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
99 # and if it is not see if we have the src/closed directory
100 !if "$(HOTSPOT_VM_DISTRO)" != ""
101 HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)
102 !else
103 !if exists($(HOTSPOTWORKSPACE)\src\closed)
104 HOTSPOT_VM_DISTRO="\\\"Java HotSpot(TM)\\\""
105 !else
106 HOTSPOT_VM_DISTRO="\\\"OpenJDK\\\""
107 !endif
108 !if "$(JDK_BUILD_NUMBER)" != ""
109 JDK_BUILD_NUMBER="\\\"$(JDK_BUILD_NUMBER)\\\""
110 !else
111 JDK_BUILD_NUMBER="\\\"00\\\""
112 !endif
113 !endif
114
115 JDK_MAJOR_VERSION="\\\"$(JDK_MAJOR_VER)\\\""
116 JDK_MINOR_VERSION="\\\"$(JDK_MINOR_VER)\\\""
117 JDK_MICRO_VERSION="\\\"$(JDK_MICRO_VER)\\\""
118
119 ReleaseOptions = -define HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION) -define JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) -define HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO) -define JDK_MAJOR_VERSION=$(JDK_MAJOR_VERSION) -define JDK_MINOR_VERSION=$(JDK_MINOR_VERSION) -define JDK_MICRO_VERSION=$(JDK_MICRO_VERSION) -define JDK_BUILD_NUMBER=$(JDK_BUILD_NUMBER) -define VISUAL_STUDIO_BUILD=true
120 ProjectCreatorIDEOptions = $(ProjectCreatorIDEOptions) $(ReleaseOptions)
121
122 $(HOTSPOTBUILDSPACE)/$(ProjectFile): $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class
123 @$(RUN_JAVA) -Djava.class.path="$(HOTSPOTBUILDSPACE)/classes" ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions)
124
125 clean:
126 @rm -rf $(HOTSPOTBUILDSPACE)/classes
127 @rm -r $(HOTSPOTBUILDSPACE)/$(ProjectFile)
128
129 $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources)
130 @if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
131 @mkdir $(HOTSPOTBUILDSPACE)\classes
132 @$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources)
133
134 FORCE:
|
1 #
2 # Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation.
8 #
9 # This code is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
63 # Pick up rules for building trace
64 TraceOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\tracefiles
65 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/trace.make
66
67 !if "$(Variant)" == "compiler2"
68 # Pick up rules for building adlc
69 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
70 !endif
71
72 !if "$(Variant)" == "tiered"
73 # Pick up rules for building adlc
74 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
75 !endif
76
77 HS_INTERNAL_NAME=jvm
78
79 default:: $(AdditionalTargets) $(JvmtiGeneratedFiles) $(TraceGeneratedFiles)
80
81 !include $(HOTSPOTWORKSPACE)/make/jdk_version
82
83 !if "$(VERSION_OPT)" != ""
84 HOTSPOT_BUILD_VERSION = internal-$(VERSION_OPT)
85 !else
86 HOTSPOT_BUILD_VERSION = internal
87 !endif
88 !if "$(VERSION_STRING)" != ""
89 JRE_RELEASE_VERSION="\\\"$(VERSION_STRING)\\\""
90 !else
91 JRE_RELEASE_VERSION="\\\"$(STANDALONE_JDK_MAJOR_VER).$(STANDALONE_JDK_MINOR_VER).$(STANDALONE_JDK_SECURITY_VER)\\\""
92 !endif
93 !if "$(HOTSPOT_RELEASE_VERSION)" != ""
94 HOTSPOT_RELEASE_VERSION="\\\"$(HOTSPOT_RELEASE_VERSION)\\\""
95 !else
96 HOTSPOT_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
97 !endif
98 # Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
99 # and if it is not see if we have the src/closed directory
100 !if "$(HOTSPOT_VM_DISTRO)" != ""
101 HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)
102 !else
103 !if exists($(HOTSPOTWORKSPACE)\src\closed)
104 HOTSPOT_VM_DISTRO="\\\"Java HotSpot(TM)\\\""
105 !else
106 HOTSPOT_VM_DISTRO="\\\"OpenJDK\\\""
107 !endif
108 !if "$(VERSION_BUILD)" == ""
109 VERSION_BUILD=0
110 !endif
111 !endif
112
113 VERSION_MAJOR=$(STANDALONE_JDK_MAJOR_VER)
114 VERSION_MINOR=$(STANDALONE_JDK_MINOR_VER)
115 VERSION_SECURITY=$(STANDALONE_JDK_SECURITY_VER)
116 VERSION_PATCH=$(STANDALONE_JDK_PATCH_VER)
117
118 ReleaseOptions = -define HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION) -define JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) -define HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO) -define VERSION_MAJOR=$(VERSION_MAJOR) -define VERSION_MINOR=$(VERSION_MINOR) -define VERSION_SECURITY=$(VERSION_SECURITY) -define VERSION_PATCH=$(VERSION_PATCH) -define VISUAL_STUDIO_BUILD=true
119 ProjectCreatorIDEOptions = $(ProjectCreatorIDEOptions) $(ReleaseOptions)
120
121 $(HOTSPOTBUILDSPACE)/$(ProjectFile): $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class
122 @$(RUN_JAVA) -Djava.class.path="$(HOTSPOTBUILDSPACE)/classes" ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions)
123
124 clean:
125 @rm -rf $(HOTSPOTBUILDSPACE)/classes
126 @rm -r $(HOTSPOTBUILDSPACE)/$(ProjectFile)
127
128 $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources)
129 @if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
130 @mkdir $(HOTSPOTBUILDSPACE)\classes
131 @$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources)
132
133 FORCE:
|