Mercurial > hg > truffle
annotate make/windows/projectfiles/common/Makefile @ 1978:2ca799d83d3c
Merge
author | ohair |
---|---|
date | Tue, 30 Nov 2010 18:10:20 -0800 |
parents | f95d63e2154a c7db7adb83b4 |
children | aa6e219afbf1 |
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 | |
1972 | 25 !include local.make |
26 | |
0 | 27 WorkSpace=$(HOTSPOTWORKSPACE) |
28 | |
29 !ifdef ALT_BOOTDIR | |
30 BootStrapDir=$(ALT_BOOTDIR) | |
31 !else | |
32 !ifdef BOOTDIR | |
33 BootStrapDir=$(BOOTDIR) | |
34 !else | |
35 !ifdef JAVA_HOME | |
36 BootStrapDir=$(JAVA_HOME) | |
37 !endif | |
38 !endif | |
39 !endif | |
40 | |
1972 | 41 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/projectcreator.make |
0 | 42 |
43 # Pick up rules for building JVMTI (JSR-163) | |
1972 | 44 JvmtiOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\jvmtifiles |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
45 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/jvmti.make |
0 | 46 |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
47 Platform=$(HOTSPOTWORKSPACE)/make/windows/platform_$(BUILDARCH) |
0 | 48 |
49 !if "$(Variant)" == "compiler2" | |
50 # 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
|
51 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make |
0 | 52 !endif |
53 | |
54 !if "$(Variant)" == "tiered" | |
55 # 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
|
56 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make |
0 | 57 !endif |
58 | |
1972 | 59 default:: $(AdditionalTargets) $(JvmtiGeneratedFiles) |
0 | 60 |
61 !include $(HOTSPOTWORKSPACE)/make/hotspot_version | |
62 | |
63 !if "$(HOTSPOT_RELEASE_VERSION)" != "" | |
64 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)" | |
65 !else | |
66 HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)" | |
67 !endif | |
1977
c7db7adb83b4
6987107: Add variable to add to but not modify non-fcs version string
ohair
parents:
1552
diff
changeset
|
68 !if "$(USER_RELEASE_SUFFIX)" != "" |
c7db7adb83b4
6987107: Add variable to add to but not modify non-fcs version string
ohair
parents:
1552
diff
changeset
|
69 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
|
70 !else |
0 | 71 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
|
72 !endif |
0 | 73 !if "$(HOTSPOT_BUILD_VERSION)" != "" |
74 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)" | |
75 !endif | |
76 !if "$(JRE_RELEASE_VERSION)" != "" | |
77 JRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)" | |
78 !else | |
79 JRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)" | |
80 !endif | |
81 | |
82 # Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set, | |
83 # and if it is not see if we have the src/closed directory | |
84 !if "$(HOTSPOT_VM_DISTRO)" != "" | |
85 HOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)" | |
86 !else | |
87 !if exists($(HOTSPOTWORKSPACE)\src\closed) | |
88 HOTSPOT_VM_DISTRO="Java HotSpot(TM)" | |
89 !else | |
90 HOTSPOT_VM_DISTRO="OpenJDK" | |
91 !endif | |
92 !endif | |
93 | |
1972 | 94 ProjectCreatorIDEOptions = $(ProjectCreatorIDEOptions) \ |
0 | 95 -platform $(Platform) \ |
96 -define HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \ | |
97 -define JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \ | |
98 -define HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\" | |
99 | |
1972 | 100 $(HOTSPOTBUILDSPACE)/$(ProjectFile): local.make $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class |
101 @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions) | |
0 | 102 |
103 clean: | |
1972 | 104 @rm -rf $(HOTSPOTBUILDSPACE)/classes |
105 @rm -r ../$(ProjectFile) | |
0 | 106 |
1972 | 107 $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources) |
0 | 108 @if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes |
109 @mkdir $(HOTSPOTBUILDSPACE)\classes | |
1972 | 110 @$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources) |
0 | 111 |
112 FORCE: |