annotate make/bsd/makefiles/vm.make @ 7408:892acf0431ef

7153050: remove crufty '_g' support from HotSpot repo makefiles Summary: Phase 1 is removing '_g' support from the Makefiles. Reviewed-by: dcubed, sspitsyn, coleenp, tbell Contributed-by: ron.durbin@oracle.com
author dcubed
date Fri, 14 Dec 2012 10:06:52 -0800
parents fb19af007ffc
children 989155e2d07a e7e9e08147fc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
1 #
5915
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4891
diff changeset
2 # Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
4 #
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
5 # This code is free software; you can redistribute it and/or modify it
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
6 # under the terms of the GNU General Public License version 2 only, as
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
7 # published by the Free Software Foundation.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
8 #
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
9 # This code is distributed in the hope that it will be useful, but WITHOUT
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
12 # version 2 for more details (a copy is included in the LICENSE file that
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
13 # accompanied this code).
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
14 #
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License version
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
16 # 2 along with this work; if not, write to the Free Software Foundation,
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
18 #
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
20 # or visit www.oracle.com if you need additional information or have any
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
21 # questions.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
22 #
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
23 #
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
24
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
25 # Rules to build JVM and related libraries, included from vm.make in the build
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
26 # directory.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
27
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
28 # Common build rules.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
29 MAKEFILES_DIR=$(GAMMADIR)/make/$(Platform_os_family)/makefiles
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
30 include $(MAKEFILES_DIR)/rules.make
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
31 include $(GAMMADIR)/make/altsrc.make
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
32
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
33 default: build
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
34
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
35 #----------------------------------------------------------------------
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
36 # Defs
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
37
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
38 GENERATED = ../generated
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
39 DEP_DIR = $(GENERATED)/dependencies
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
40
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
41 # reads the generated files defining the set of .o's and the .o .h dependencies
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
42 -include $(DEP_DIR)/*.d
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
43
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
44 # read machine-specific adjustments (%%% should do this via buildtree.make?)
5946
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
45 ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true)
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
46 include $(MAKEFILES_DIR)/zeroshark.make
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
47 else
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
48 include $(MAKEFILES_DIR)/$(BUILDARCH).make
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
49 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
50
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
51 # set VPATH so make knows where to look for source files
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
52 # Src_Dirs_V is everything in src/share/vm/*, plus the right os/*/vm and cpu/*/vm
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
53 # The adfiles directory contains ad_<arch>.[ch]pp.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
54 # The jvmtifiles directory contains jvmti*.[ch]pp
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
55 Src_Dirs_V += $(GENERATED)/adfiles $(GENERATED)/jvmtifiles
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
56 VPATH += $(Src_Dirs_V:%=%:)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
57
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
58 # set INCLUDES for C preprocessor.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
59 Src_Dirs_I += $(GENERATED)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
60 # The order is important for the precompiled headers to work.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
61 INCLUDES += $(PRECOMPILED_HEADER_DIR:%=-I%) $(Src_Dirs_I:%=-I%)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
62
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
63 ifeq (${VERSION}, debug)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
64 SYMFLAG = -g
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
65 else
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
66 SYMFLAG =
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
67 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
68
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
69 # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
70 # in $(GAMMADIR)/make/defs.make
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
71 ifeq ($(HOTSPOT_BUILD_VERSION),)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
72 BUILD_VERSION = -DHOTSPOT_RELEASE_VERSION="\"$(HOTSPOT_RELEASE_VERSION)\""
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
73 else
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
74 BUILD_VERSION = -DHOTSPOT_RELEASE_VERSION="\"$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)\""
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
75 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
76
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
77 # The following variables are defined in the generated flags.make file.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
78 BUILD_VERSION = -DHOTSPOT_RELEASE_VERSION="\"$(HS_BUILD_VER)\""
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
79 JRE_VERSION = -DJRE_RELEASE_VERSION="\"$(JRE_RELEASE_VER)\""
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
80 HS_LIB_ARCH = -DHOTSPOT_LIB_ARCH=\"$(LIBARCH)\"
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
81 BUILD_TARGET = -DHOTSPOT_BUILD_TARGET="\"$(TARGET)\""
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
82 BUILD_USER = -DHOTSPOT_BUILD_USER="\"$(HOTSPOT_BUILD_USER)\""
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
83 VM_DISTRO = -DHOTSPOT_VM_DISTRO="\"$(HOTSPOT_VM_DISTRO)\""
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
84
4891
719f7007c8e8 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 4890
diff changeset
85 CXXFLAGS = \
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
86 ${SYSDEFS} \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
87 ${INCLUDES} \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
88 ${BUILD_VERSION} \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
89 ${BUILD_TARGET} \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
90 ${BUILD_USER} \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
91 ${HS_LIB_ARCH} \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
92 ${VM_DISTRO}
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
93
4890
c77d473e71f7 7132779: build-infra merge: Enable ccache to work for most developer builds.
ohrstrom
parents: 4846
diff changeset
94 # This is VERY important! The version define must only be supplied to vm_version.o
c77d473e71f7 7132779: build-infra merge: Enable ccache to work for most developer builds.
ohrstrom
parents: 4846
diff changeset
95 # If not, ccache will not re-use the cache at all, since the version string might contain
c77d473e71f7 7132779: build-infra merge: Enable ccache to work for most developer builds.
ohrstrom
parents: 4846
diff changeset
96 # a time and date.
4891
719f7007c8e8 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 4890
diff changeset
97 vm_version.o: CXXFLAGS += ${JRE_VERSION}
4890
c77d473e71f7 7132779: build-infra merge: Enable ccache to work for most developer builds.
ohrstrom
parents: 4846
diff changeset
98
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
99 ifdef DEFAULT_LIBPATH
4891
719f7007c8e8 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 4890
diff changeset
100 CXXFLAGS += -DDEFAULT_LIBPATH="\"$(DEFAULT_LIBPATH)\""
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
101 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
102
4800
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents: 4006
diff changeset
103 ifndef JAVASE_EMBEDDED
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents: 4006
diff changeset
104 CFLAGS += -DINCLUDE_TRACE
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents: 4006
diff changeset
105 endif
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents: 4006
diff changeset
106
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
107 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
108 CFLAGS += $(CFLAGS_WARN/BYFILE)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
109
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
110 # Do not use C++ exception handling
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
111 CFLAGS += $(CFLAGS/NOEX)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
112
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
113 # Extra flags from gnumake's invocation or environment
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
114 CFLAGS += $(EXTRA_CFLAGS)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
115 LFLAGS += $(EXTRA_CFLAGS)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
116
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
117 # Don't set excutable bit on stack segment
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
118 # the same could be done by separate execstack command
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents: 3960
diff changeset
119 # Darwin is non-executable-stack by default
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
120 ifneq ($(OS_VENDOR), Darwin)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
121 LFLAGS += -Xlinker -z -Xlinker noexecstack
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
122 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
123
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
124 LIBS += -lm -pthread
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
125
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
126 # By default, link the *.o into the library, not the executable.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
127 LINK_INTO$(LINK_INTO) = LIBJVM
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
128
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
129 JDK_LIBDIR = $(JAVA_HOME)/jre/lib/$(LIBARCH)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
130
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
131 #----------------------------------------------------------------------
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
132 # jvm_db & dtrace
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
133 include $(MAKEFILES_DIR)/dtrace.make
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
134
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
135 #----------------------------------------------------------------------
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
136 # JVM
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
137
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
138 JVM = jvm
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
139 ifeq ($(OS_VENDOR), Darwin)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
140 LIBJVM = lib$(JVM).dylib
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
141 CFLAGS += -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
142 else
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
143 LIBJVM = lib$(JVM).so
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
144 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
145
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
146 SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
147
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
148 SOURCE_PATHS=\
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
149 $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
150 \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) \))
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
151 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
152 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
153 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
154 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
155
4800
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents: 4006
diff changeset
156 ifndef JAVASE_EMBEDDED
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents: 4006
diff changeset
157 SOURCE_PATHS+=$(shell if [ -d $(HS_ALT_SRC)/share/vm/jfr ]; then \
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents: 4006
diff changeset
158 find $(HS_ALT_SRC)/share/vm/jfr -type d; \
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents: 4006
diff changeset
159 fi)
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents: 4006
diff changeset
160 endif
94ec88ca68e2 7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents: 4006
diff changeset
161
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
162 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
163 CORE_PATHS+=$(GENERATED)/jvmtifiles
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
164
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
165 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
166 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
167
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
168 COMPILER2_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/opto)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
169 COMPILER2_PATHS += $(call altsrc,$(HS_COMMON_SRC)/share/vm/libadt)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
170 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/opto
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
171 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/libadt
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
172 COMPILER2_PATHS += $(GENERATED)/adfiles
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
173
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
174 SHARK_PATHS := $(GAMMADIR)/src/share/vm/shark
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
175
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
176 # Include dirs per type.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
177 Src_Dirs/CORE := $(CORE_PATHS)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
178 Src_Dirs/COMPILER1 := $(CORE_PATHS) $(COMPILER1_PATHS)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
179 Src_Dirs/COMPILER2 := $(CORE_PATHS) $(COMPILER2_PATHS)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
180 Src_Dirs/TIERED := $(CORE_PATHS) $(COMPILER1_PATHS) $(COMPILER2_PATHS)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
181 Src_Dirs/ZERO := $(CORE_PATHS)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
182 Src_Dirs/SHARK := $(CORE_PATHS) $(SHARK_PATHS)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
183 Src_Dirs := $(Src_Dirs/$(TYPE))
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
184
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
185 COMPILER2_SPECIFIC_FILES := opto libadt bcEscapeAnalyzer.cpp chaitin\* c2_\* runtime_\*
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
186 COMPILER1_SPECIFIC_FILES := c1_\*
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
187 SHARK_SPECIFIC_FILES := shark
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
188 ZERO_SPECIFIC_FILES := zero
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
189
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
190 # Always exclude these.
6854
fb19af007ffc 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 6776
diff changeset
191 Src_Files_EXCLUDE += jsig.c jvmtiEnvRecommended.cpp jvmtiEnvStub.cpp
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
192
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
193 # Exclude per type.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
194 Src_Files_EXCLUDE/CORE := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
195 Src_Files_EXCLUDE/COMPILER1 := $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
196 Src_Files_EXCLUDE/COMPILER2 := $(COMPILER1_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
197 Src_Files_EXCLUDE/TIERED := $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
198 Src_Files_EXCLUDE/ZERO := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
199 Src_Files_EXCLUDE/SHARK := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
200
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
201 Src_Files_EXCLUDE += $(Src_Files_EXCLUDE/$(TYPE))
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
202
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
203 # Special handling of arch model.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
204 ifeq ($(Platform_arch_model), x86_32)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
205 Src_Files_EXCLUDE += \*x86_64\*
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
206 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
207 ifeq ($(Platform_arch_model), x86_64)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
208 Src_Files_EXCLUDE += \*x86_32\*
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
209 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
210
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
211 # Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
212 define findsrc
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
213 $(notdir $(shell find $(1)/. ! -name . -prune \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
214 -a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
215 -a ! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \)))
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
216 endef
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
217
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
218 Src_Files := $(foreach e,$(Src_Dirs),$(call findsrc,$(e)))
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
219
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
220 Obj_Files = $(sort $(addsuffix .o,$(basename $(Src_Files))))
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
221
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
222 JVM_OBJ_FILES = $(Obj_Files)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
223
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
224 vm_version.o: $(filter-out vm_version.o,$(JVM_OBJ_FILES))
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
225
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
226 mapfile : $(MAPFILE) vm.def
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
227 rm -f $@
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
228 awk '{ if ($$0 ~ "INSERT VTABLE SYMBOLS HERE") \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
229 { system ("cat vm.def"); } \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
230 else \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
231 { print $$0 } \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
232 }' > $@ < $(MAPFILE)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
233
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
234 mapfile_reorder : mapfile $(REORDERFILE)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
235 rm -f $@
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
236 cat $^ > $@
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
237
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
238 vm.def: $(Res_Files) $(Obj_Files)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
239 sh $(GAMMADIR)/make/bsd/makefiles/build_vm_def.sh *.o > $@
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
240
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
241 STATIC_CXX = false
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
242
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
243 ifeq ($(LINK_INTO),AOUT)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
244 LIBJVM.o =
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
245 LIBJVM_MAPFILE =
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
246 LIBS_VM = $(LIBS)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
247 else
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
248 LIBJVM.o = $(JVM_OBJ_FILES)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
249 LIBJVM_MAPFILE$(LDNOMAP) = mapfile_reorder
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
250 LFLAGS_VM$(LDNOMAP) += $(MAPFLAG:FILENAME=$(LIBJVM_MAPFILE))
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
251 LFLAGS_VM += $(SONAMEFLAG:SONAME=$(LIBJVM))
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
252
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
253 ifeq ($(OS_VENDOR), Darwin)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
254 LFLAGS_VM += -Xlinker -rpath -Xlinker @loader_path/.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
255 LFLAGS_VM += -Xlinker -rpath -Xlinker @loader_path/..
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
256 LFLAGS_VM += -Xlinker -install_name -Xlinker @rpath/$(@F)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
257 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
258
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
259 # JVM is statically linked with libgcc[_s] and libstdc++; this is needed to
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
260 # get around library dependency and compatibility issues. Must use gcc not
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
261 # g++ to link.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
262 ifeq ($(STATIC_CXX), true)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
263 LFLAGS_VM += $(STATIC_LIBGCC)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
264 LIBS_VM += $(STATIC_STDCXX)
4891
719f7007c8e8 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 4890
diff changeset
265 LINK_VM = $(LINK_LIB.CC)
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
266 else
4891
719f7007c8e8 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 4890
diff changeset
267 LINK_VM = $(LINK_LIB.CXX)
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
268 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
269
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
270 LIBS_VM += $(LIBS)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
271 endif
5946
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
272 ifeq ($(JVM_VARIANT_ZERO), true)
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
273 LIBS_VM += $(LIBFFI_LIBS)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
274 endif
5946
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
275 ifeq ($(JVM_VARIANT_ZEROSHARK), true)
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
276 LIBS_VM += $(LIBFFI_LIBS) $(LLVM_LIBS)
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
277 LFLAGS_VM += $(LLVM_LDFLAGS)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
278 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
279
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
280
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
281 # rule for building precompiled header
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
282 $(PRECOMPILED_HEADER):
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
283 $(QUIETLY) echo Generating precompiled header $@
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
284 $(QUIETLY) mkdir -p $(PRECOMPILED_HEADER_DIR)
4891
719f7007c8e8 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 4890
diff changeset
285 $(QUIETLY) $(COMPILE.CXX) $(DEPFLAGS) -x c++-header $(PRECOMPILED_HEADER_SRC) -o $@ $(COMPILE_DONE)
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
286
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
287 # making the library:
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
288
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
289 ifneq ($(JVM_BASE_ADDR),)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
290 # By default shared library is linked at base address == 0. Modify the
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
291 # linker script if JVM prefers a different base location. It can also be
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
292 # implemented with 'prelink -r'. But 'prelink' is not (yet) available on
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
293 # our build platform (AS-2.1).
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
294 LD_SCRIPT = libjvm.so.lds
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
295 $(LD_SCRIPT): $(LIBJVM_MAPFILE)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
296 $(QUIETLY) { \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
297 rm -rf $@; \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
298 $(LINK_VM) -Wl,--verbose $(LFLAGS_VM) 2>&1 | \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
299 sed -e '/^======/,/^======/!d' \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
300 -e '/^======/d' \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
301 -e 's/0\( + SIZEOF_HEADERS\)/$(JVM_BASE_ADDR)\1/' \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
302 > $@; \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
303 }
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
304 LD_SCRIPT_FLAG = -Wl,-T,$(LD_SCRIPT)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
305 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
306
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
307 $(LIBJVM): $(LIBJVM.o) $(LIBJVM_MAPFILE) $(LD_SCRIPT)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
308 $(QUIETLY) { \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
309 echo Linking vm...; \
4891
719f7007c8e8 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 4890
diff changeset
310 $(LINK_LIB.CXX/PRE_HOOK) \
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
311 $(LINK_VM) $(LD_SCRIPT_FLAG) \
6776
37518f191ddb 7198329: Add $(sort) to object files used in links makes binarties more consistent
ohair
parents: 5946
diff changeset
312 $(LFLAGS_VM) -o $@ $(sort $(LIBJVM.o)) $(LIBS_VM); \
4891
719f7007c8e8 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 4890
diff changeset
313 $(LINK_LIB.CXX/POST_HOOK) \
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
314 rm -f $@.1; ln -s $@ $@.1; \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
315 }
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
316
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
317 DEST_JVM = $(JDK_LIBDIR)/$(VM_SUBDIR)/$(LIBJVM)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
318
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
319 install_jvm: $(LIBJVM)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
320 @echo "Copying $(LIBJVM) to $(DEST_JVM)"
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
321 $(QUIETLY) cp -f $(LIBJVM) $(DEST_JVM) && echo "Done"
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
322
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
323 #----------------------------------------------------------------------
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
324 # Other files
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
325
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
326 # Gamma launcher
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
327 include $(MAKEFILES_DIR)/launcher.make
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
328
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
329 # Signal interposition library
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
330 include $(MAKEFILES_DIR)/jsig.make
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
331
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
332 # Serviceability agent
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
333 include $(MAKEFILES_DIR)/saproc.make
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
334
5915
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4891
diff changeset
335 # Whitebox testing API
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4891
diff changeset
336 include $(MAKEFILES_DIR)/wb.make
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4891
diff changeset
337
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
338 #----------------------------------------------------------------------
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
339
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents: 3960
diff changeset
340 ifeq ($(OS_VENDOR), Darwin)
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents: 3960
diff changeset
341 $(LIBJVM).dSYM: $(LIBJVM)
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents: 3960
diff changeset
342 dsymutil $(LIBJVM)
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents: 3960
diff changeset
343
4846
e8a4934564b2 7125793: MAC: test_gamma should always work
phh
parents: 4800
diff changeset
344 # no libjvm_db for macosx
5915
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4891
diff changeset
345 build: $(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(BUILDLIBSAPROC) dtraceCheck $(LIBJVM).dSYM $(WB_JAR)
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents: 3960
diff changeset
346 echo "Doing vm.make build:"
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents: 3960
diff changeset
347 else
5915
2d503de963b3 7148152: Add whitebox testing API to HotSpot
mgerdin
parents: 4891
diff changeset
348 build: $(LIBJVM) $(LAUNCHER) $(LIBJSIG) $(LIBJVM_DB) $(BUILDLIBSAPROC) $(WB_JAR)
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents: 3960
diff changeset
349 endif
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
350
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
351 install: install_jvm install_jsig install_saproc
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
352
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
353 .PHONY: default build install install_jvm