annotate make/windows/projectfiles/common/Makefile @ 14094:3f27e57439ed

Truffle/Instrumentation: significant rearrangement (including moved class) and extension of the Truffle Instrumentation Framework. New interfaces include DebugContext (which can be attached to the ExecutionContext), through which access is provided to possibly language-specific (a) node instrumentation, (b) debug services manager, (c) notification when programs halt, (d) display of language values, and (e) display of variable identifiers.
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Mon, 03 Feb 2014 20:58:23 -0800
parents bd0e82136b03
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 10277
diff changeset
2 # Copyright (c) 1999, 2013, 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
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
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
29
0
a61af66fc99e Initial load
duke
parents:
diff changeset
30 WorkSpace=$(HOTSPOTWORKSPACE)
a61af66fc99e Initial load
duke
parents:
diff changeset
31
a61af66fc99e Initial load
duke
parents:
diff changeset
32 !ifdef ALT_BOOTDIR
a61af66fc99e Initial load
duke
parents:
diff changeset
33 BootStrapDir=$(ALT_BOOTDIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
34 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
35 !ifdef BOOTDIR
a61af66fc99e Initial load
duke
parents:
diff changeset
36 BootStrapDir=$(BOOTDIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
37 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
38 !ifdef JAVA_HOME
a61af66fc99e Initial load
duke
parents:
diff changeset
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
a61af66fc99e Initial load
duke
parents:
diff changeset
44 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
45 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
46 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
47
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 10277
diff changeset
48 # if hotspot-only build and/or OPENJDK isn't passed down, need to set OPENJDK
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 10277
diff changeset
49 !ifndef OPENJDK
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 10277
diff changeset
50 !if !exists($(WorkSpace)\src\closed)
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 10277
diff changeset
51 OPENJDK=true
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 10277
diff changeset
52 !endif
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 10277
diff changeset
53 !endif
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1978
diff changeset
54
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1978
diff changeset
55
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
56 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/projectcreator.make
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1978
diff changeset
57 !include $(WorkSpace)/make/windows/makefiles/compile.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
58
a61af66fc99e Initial load
duke
parents:
diff changeset
59 # Pick up rules for building JVMTI (JSR-163)
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
60 JvmtiOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\jvmtifiles
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/jvmti.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
62
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 10277
diff changeset
63 # Pick up rules for building trace
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 10277
diff changeset
64 TraceOutDir=$(HOTSPOTBUILDSPACE)\$(Variant)\generated\tracefiles
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 10277
diff changeset
65 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/trace.make
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 10277
diff changeset
66
0
a61af66fc99e Initial load
duke
parents:
diff changeset
67 !if "$(Variant)" == "compiler2"
a61af66fc99e Initial load
duke
parents:
diff changeset
68 # 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
69 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
70 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
71
a61af66fc99e Initial load
duke
parents:
diff changeset
72 !if "$(Variant)" == "tiered"
a61af66fc99e Initial load
duke
parents:
diff changeset
73 # 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
74 !include $(HOTSPOTWORKSPACE)/make/windows/makefiles/adlc.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
75 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
76
2027
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1978
diff changeset
77 HS_INTERNAL_NAME=jvm
aa6e219afbf1 7006354: Updates to Visual Studio project creation and development launcher
sla
parents: 1978
diff changeset
78
10405
f2110083203d 8005849: JEP 167: Event-Based JVM Tracing
sla
parents: 10277
diff changeset
79 default:: $(AdditionalTargets) $(JvmtiGeneratedFiles) $(TraceGeneratedFiles)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
80
a61af66fc99e Initial load
duke
parents:
diff changeset
81 !include $(HOTSPOTWORKSPACE)/make/hotspot_version
a61af66fc99e Initial load
duke
parents:
diff changeset
82
7202
b7ff5879152e 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 6842
diff changeset
83 !if "$(USER_RELEASE_SUFFIX)" != ""
b7ff5879152e 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 6842
diff changeset
84 HOTSPOT_BUILD_VERSION = internal-$(USER_RELEASE_SUFFIX)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
85 !else
7202
b7ff5879152e 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 6842
diff changeset
86 HOTSPOT_BUILD_VERSION = internal
0
a61af66fc99e Initial load
duke
parents:
diff changeset
87 !endif
7202
b7ff5879152e 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 6842
diff changeset
88 !if "$(HOTSPOT_RELEASE_VERSION)" != ""
b7ff5879152e 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 6842
diff changeset
89 HOTSPOT_RELEASE_VERSION="\\\"$(HOTSPOT_RELEASE_VERSION)\\\""
1977
c7db7adb83b4 6987107: Add variable to add to but not modify non-fcs version string
ohair
parents: 1552
diff changeset
90 !else
7202
b7ff5879152e 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 6842
diff changeset
91 HOTSPOT_RELEASE_VERSION="\\\"$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)-$(HOTSPOT_BUILD_VERSION)\\\""
0
a61af66fc99e Initial load
duke
parents:
diff changeset
92 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
93 !if "$(JRE_RELEASE_VERSION)" != ""
7202
b7ff5879152e 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 6842
diff changeset
94 JRE_RELEASE_VERSION="\\\"$(JRE_RELEASE_VERSION)\\\""
0
a61af66fc99e Initial load
duke
parents:
diff changeset
95 !else
7202
b7ff5879152e 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 6842
diff changeset
96 JRE_RELEASE_VERSION="\\\"$(JDK_MAJOR_VER).$(JDK_MINOR_VER).$(JDK_MICRO_VER)\\\""
0
a61af66fc99e Initial load
duke
parents:
diff changeset
97 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
98
a61af66fc99e Initial load
duke
parents:
diff changeset
99 # Define HOTSPOT_VM_DISTRO if HOTSPOT_VM_DISTRO is set,
a61af66fc99e Initial load
duke
parents:
diff changeset
100 # and if it is not see if we have the src/closed directory
a61af66fc99e Initial load
duke
parents:
diff changeset
101 !if "$(HOTSPOT_VM_DISTRO)" != ""
7202
b7ff5879152e 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 6842
diff changeset
102 HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
103 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
104 !if exists($(HOTSPOTWORKSPACE)\src\closed)
7202
b7ff5879152e 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 6842
diff changeset
105 HOTSPOT_VM_DISTRO="\\\"Java HotSpot(TM)\\\""
0
a61af66fc99e Initial load
duke
parents:
diff changeset
106 !else
7202
b7ff5879152e 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 6842
diff changeset
107 HOTSPOT_VM_DISTRO="\\\"OpenJDK\\\""
0
a61af66fc99e Initial load
duke
parents:
diff changeset
108 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
109 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
110
7202
b7ff5879152e 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 6842
diff changeset
111 ReleaseOptions = -define HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION) -define JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) -define HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)
b7ff5879152e 8003934: Fix generation of malformed options to Projectcreator
neliasso
parents: 6842
diff changeset
112 ProjectCreatorIDEOptions = $(ProjectCreatorIDEOptions) $(ReleaseOptions)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
113
2233
15d6977f04b0 7017824: Add support for creating 64-bit Visual Studio projects
sla
parents: 2027
diff changeset
114 $(HOTSPOTBUILDSPACE)/$(ProjectFile): $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class
12021
bd0e82136b03 8022740: Visual 2008 IDE build is broken
iklam
parents: 10405
diff changeset
115 @if "$(MSC_VER)"=="1500" echo Make sure you have VS2008 SP1 or later, or you may see 'expanded command line too long'
6606
98625323d3a3 7190512: Fix for 7181175 broke hotspot/make/windows/create.bat builds
tbell
parents: 2233
diff changeset
116 @$(RUN_JAVA) -Djava.class.path="$(HOTSPOTBUILDSPACE)/classes" ProjectCreator WinGammaPlatform$(VcVersion) $(ProjectCreatorIDEOptions)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
117
a61af66fc99e Initial load
duke
parents:
diff changeset
118 clean:
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
119 @rm -rf $(HOTSPOTBUILDSPACE)/classes
2233
15d6977f04b0 7017824: Add support for creating 64-bit Visual Studio projects
sla
parents: 2027
diff changeset
120 @rm -r $(HOTSPOTBUILDSPACE)/$(ProjectFile)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
121
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
122 $(HOTSPOTBUILDSPACE)/classes/ProjectCreator.class: $(ProjectCreatorSources)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
123 @if exist $(HOTSPOTBUILDSPACE)\classes rmdir /s /q $(HOTSPOTBUILDSPACE)\classes
a61af66fc99e Initial load
duke
parents:
diff changeset
124 @mkdir $(HOTSPOTBUILDSPACE)\classes
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
125 @$(COMPILE_JAVAC) -classpath $(HOTSPOTWORKSPACE)\src\share\tools\ProjectCreator -d $(HOTSPOTBUILDSPACE)/classes $(ProjectCreatorSources)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
126
a61af66fc99e Initial load
duke
parents:
diff changeset
127 FORCE: