annotate make/windows/projectfiles/common/Makefile @ 1972:f95d63e2154a

6989984: Use standard include model for Hospot Summary: Replaced MakeDeps and the includeDB files with more standardized solutions. Reviewed-by: coleenp, kvn, kamg
author stefank
date Tue, 23 Nov 2010 13:22:55 -0800
parents c18cbe5936b8
children 2ca799d83d3c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
2 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 #
a61af66fc99e Initial load
duke
parents:
diff changeset
5 # This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 # under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 # published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 #
a61af66fc99e Initial load
duke
parents:
diff changeset
9 # This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 # version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 # accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 #
a61af66fc99e Initial load
duke
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 # 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
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
a61af66fc99e Initial load
duke
parents:
diff changeset
22 #
a61af66fc99e Initial load
duke
parents:
diff changeset
23 #
a61af66fc99e Initial load
duke
parents:
diff changeset
24
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
25 !include local.make
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
26
0
a61af66fc99e Initial load
duke
parents:
diff changeset
27 WorkSpace=$(HOTSPOTWORKSPACE)
a61af66fc99e Initial load
duke
parents:
diff changeset
28
a61af66fc99e Initial load
duke
parents:
diff changeset
29 !ifdef ALT_BOOTDIR
a61af66fc99e Initial load
duke
parents:
diff changeset
30 BootStrapDir=$(ALT_BOOTDIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
31 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
32 !ifdef BOOTDIR
a61af66fc99e Initial load
duke
parents:
diff changeset
33 BootStrapDir=$(BOOTDIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
34 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
35 !ifdef JAVA_HOME
a61af66fc99e Initial load
duke
parents:
diff changeset
36 BootStrapDir=$(JAVA_HOME)
a61af66fc99e Initial load
duke
parents:
diff changeset
37 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
38 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
39 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
40
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
41 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/projectcreator.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
42
a61af66fc99e Initial load
duke
parents:
diff changeset
43 # Pick up rules for building JVMTI (JSR-163)
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
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
a61af66fc99e Initial load
duke
parents:
diff changeset
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
a61af66fc99e Initial load
duke
parents:
diff changeset
48
a61af66fc99e Initial load
duke
parents:
diff changeset
49 !if "$(Variant)" == "compiler2"
a61af66fc99e Initial load
duke
parents:
diff changeset
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
a61af66fc99e Initial load
duke
parents:
diff changeset
52 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
53
a61af66fc99e Initial load
duke
parents:
diff changeset
54 !if "$(Variant)" == "tiered"
a61af66fc99e Initial load
duke
parents:
diff changeset
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
a61af66fc99e Initial load
duke
parents:
diff changeset
57 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
58
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
59 default:: $(AdditionalTargets) $(JvmtiGeneratedFiles)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
60
a61af66fc99e Initial load
duke
parents:
diff changeset
61 !include $(HOTSPOTWORKSPACE)/make/hotspot_version
a61af66fc99e Initial load
duke
parents:
diff changeset
62
a61af66fc99e Initial load
duke
parents:
diff changeset
63 !if "$(HOTSPOT_RELEASE_VERSION)" != ""
a61af66fc99e Initial load
duke
parents:
diff changeset
64 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)"
a61af66fc99e Initial load
duke
parents:
diff changeset
65 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
66 HOTSPOT_RELEASE_VERSION="$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)"
a61af66fc99e Initial load
duke
parents:
diff changeset
67 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
68 HOTSPOT_BUILD_VERSION$(HOTSPOT_BUILD_VERSION) = internal
a61af66fc99e Initial load
duke
parents:
diff changeset
69 !if "$(HOTSPOT_BUILD_VERSION)" != ""
a61af66fc99e Initial load
duke
parents:
diff changeset
70 HOTSPOT_RELEASE_VERSION="$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)"
a61af66fc99e Initial load
duke
parents:
diff changeset
71 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
72 !if "$(JRE_RELEASE_VERSION)" != ""
a61af66fc99e Initial load
duke
parents:
diff changeset
73 JRE_RELEASE_VERSION="$(JRE_RELEASE_VERSION)"
a61af66fc99e Initial load
duke
parents:
diff changeset
74 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
75 JRE_RELEASE_VERSION="$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)"
a61af66fc99e Initial load
duke
parents:
diff changeset
76 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
77
a61af66fc99e Initial load
duke
parents:
diff changeset
78 # Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
a61af66fc99e Initial load
duke
parents:
diff changeset
79 # and if it is not see if we have the src/closed directory
a61af66fc99e Initial load
duke
parents:
diff changeset
80 !if "$(HOTSPOT_VM_DISTRO)" != ""
a61af66fc99e Initial load
duke
parents:
diff changeset
81 HOTSPOT_VM_DISTRO="$(HOTSPOT_VM_DISTRO)"
a61af66fc99e Initial load
duke
parents:
diff changeset
82 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
83 !if exists($(HOTSPOTWORKSPACE)\src\closed)
a61af66fc99e Initial load
duke
parents:
diff changeset
84 HOTSPOT_VM_DISTRO="Java HotSpot(TM)"
a61af66fc99e Initial load
duke
parents:
diff changeset
85 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
86 HOTSPOT_VM_DISTRO="OpenJDK"
a61af66fc99e Initial load
duke
parents:
diff changeset
87 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
88 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
89
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
90 ProjectCreatorIDEOptions = $(ProjectCreatorIDEOptions) \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
91 -platform $(Platform) \
a61af66fc99e Initial load
duke
parents:
diff changeset
92 -define HOTSPOT_RELEASE_VERSION=\\\"$(HOTSPOT_RELEASE_VERSION)\\\" \
a61af66fc99e Initial load
duke
parents:
diff changeset
93 -define JRE_RELEASE_VERSION=\\\"$(JRE_RELEASE_VERSION)\\\" \
a61af66fc99e Initial load
duke
parents:
diff changeset
94 -define HOTSPOT_VM_DISTRO=\\\"$(HOTSPOT_VM_DISTRO)\\\"
a61af66fc99e Initial load
duke
parents:
diff changeset
95
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
96 $(HOTSPOTBUILDSPACE)/$(ProjectFile): local.make $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
97 @$(RUN_JAVA) -Djava.class.path=$(HOTSPOTBUILDSPACE)/classes ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
98
a61af66fc99e Initial load
duke
parents:
diff changeset
99 clean:
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
100 @rm -rf $(HOTSPOTBUILDSPACE)/classes
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
101 @rm -r ../$(ProjectFile)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
102
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
103 $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
104 @if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
a61af66fc99e Initial load
duke
parents:
diff changeset
105 @mkdir $(HOTSPOTBUILDSPACE)\classes
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
106 @$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
107
a61af66fc99e Initial load
duke
parents:
diff changeset
108 FORCE: