Mercurial > hg > truffle
annotate make/windows/projectfiles/common/Makefile @ 2213:020eee65316d
Adjustment to the Windows create script (new calling convention only has one argument).
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Mon, 21 Feb 2011 19:32:20 +0100 |
parents | aa6e219afbf1 |
children | 15d6977f04b0 |
rev | line source |
---|---|
0 | 1 # |
1972 | 2 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. |
0 | 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 # | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
971
diff
changeset
|
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
971
diff
changeset
|
20 # or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
971
diff
changeset
|
21 # questions. |
0 | 22 # |
23 # | |
24 | |
2027
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
25 !ifdef LOCAL_MAKE |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
26 !include $(LOCAL_MAKE) |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
27 !endif |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
28 |
1972 | 29 |
0 | 30 WorkSpace=$(HOTSPOTWORKSPACE) |
31 | |
32 !ifdef ALT_BOOTDIR | |
33 BootStrapDir=$(ALT_BOOTDIR) | |
34 !else | |
35 !ifdef BOOTDIR | |
36 BootStrapDir=$(BOOTDIR) | |
37 !else | |
38 !ifdef JAVA_HOME | |
39 BootStrapDir=$(JAVA_HOME) | |
2027
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
40 !else |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
41 !ifdef HOTSPOTJDKDIST |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
42 BootStrapDir=$(HOTSPOTJDKDIST) |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
43 !endif |
0 | 44 !endif |
45 !endif | |
46 !endif | |
47 | |
2027
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
48 |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
49 |
1972 | 50 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/projectcreator.make |
2027
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
51 !include $(WorkSpace)/make/windows/makefiles/compile.make |
0 | 52 |
53 # Pick up rules for building JVMTI (JSR-163) | |
1972 | 54 JvmtiOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\jvmtifiles |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
55 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make |
0 | 56 |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
57 Platform=$(HOTSPOTWORKSPACE)/make/windows/platform_$(BUILDARCH) |
0 | 58 |
59 !if "$(Variant)" == "compiler2" | |
60 # Pick up rules for building adlc | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
61 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make |
0 | 62 !endif |
63 | |
64 !if "$(Variant)" == "tiered" | |
65 # Pick up rules for building adlc | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
66 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make |
0 | 67 !endif |
68 | |
2027
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
69 HS_INTERNAL_NAME=jvm |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
70 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/launcher.make |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
71 |
1972 | 72 default:: $(AdditionalTargets) $(JvmtiGeneratedFiles) |
0 | 73 |
74 !include $(HOTSPOTWORKSPACE)/make/hotspot_version | |
75 | |
76 !if "$(HOTSPOT_RELEASE_VERSION)" != "" | |
77 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)" | |
78 !else | |
79 HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)" | |
80 !endif | |
1977
c7db7adb83b4
6987107: Add variable to add to but not modify non-fcs version string
ohair
parents:
1552
diff
changeset
|
81 !if "$(USER_RELEASE_SUFFIX)" != "" |
c7db7adb83b4
6987107: Add variable to add to but not modify non-fcs version string
ohair
parents:
1552
diff
changeset
|
82 HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal-$(USER_RELEASE_SUFFIX) |
c7db7adb83b4
6987107: Add variable to add to but not modify non-fcs version string
ohair
parents:
1552
diff
changeset
|
83 !else |
0 | 84 HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal |
1977
c7db7adb83b4
6987107: Add variable to add to but not modify non-fcs version string
ohair
parents:
1552
diff
changeset
|
85 !endif |
0 | 86 !if "$(HOTSPOT_BUILD_VERSION)" != "" |
87 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)" | |
88 !endif | |
89 !if "$(JRE_RELEASE_VERSION)" != "" | |
90 JRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)" | |
91 !else | |
92 JRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)" | |
93 !endif | |
94 | |
95 # Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set, | |
96 # and if it is not see if we have the src/closed directory | |
97 !if "$(HOTSPOT_VM_DISTRO)" != "" | |
98 HOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)" | |
99 !else | |
100 !if exists($(HOTSPOTWORKSPACE)\src\closed) | |
101 HOTSPOT_VM_DISTRO="Java HotSpot(TM)" | |
102 !else | |
103 HOTSPOT_VM_DISTRO="OpenJDK" | |
104 !endif | |
105 !endif | |
106 | |
1972 | 107 ProjectCreatorIDEOptions = $(ProjectCreatorIDEOptions) \ |
0 | 108 -platform $(Platform) \ |
109 -define HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \ | |
110 -define JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \ | |
111 -define HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\" | |
112 | |
2027
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
113 $(HOTSPOTBUILDROOT)/$(ProjectFile): $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class |
1972 | 114 @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions) |
0 | 115 |
116 clean: | |
1972 | 117 @rm -rf $(HOTSPOTBUILDSPACE)/classes |
118 @rm -r ../$(ProjectFile) | |
0 | 119 |
1972 | 120 $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources) |
0 | 121 @if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes |
122 @mkdir $(HOTSPOTBUILDSPACE)\classes | |
1972 | 123 @$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources) |
0 | 124 |
125 FORCE: |