1 #
2 # Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
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 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
137 # jvm_db & dtrace
138 include $(MAKEFILES_DIR)/dtrace.make
139
140 #----------------------------------------------------------------------
141 # JVM
142
143 JVM = jvm
144 ifeq ($(OS_VENDOR), Darwin)
145 LIBJVM = lib$(JVM).dylib
146 CFLAGS += -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE
147
148 LIBJVM_DEBUGINFO = lib$(JVM).dylib.dSYM
149 LIBJVM_DIZ = lib$(JVM).diz
150 else
151 LIBJVM = lib$(JVM).so
152
153 LIBJVM_DEBUGINFO = lib$(JVM).debuginfo
154 LIBJVM_DIZ = lib$(JVM).diz
155 endif
156
157 SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt
158
159 SOURCE_PATHS=\
160 $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
161 \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) \))
162 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
163 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
164 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm
165 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm
166
167 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
168 CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/tracefiles
169
170 ifneq ($(INCLUDE_TRACE), false)
171 CORE_PATHS+=$(shell if [ -d $(HS_ALT_SRC)/share/vm/jfr ]; then \
172 find $(HS_ALT_SRC)/share/vm/jfr -type d; \
173 fi)
174 endif
175
176 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
177 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
|
1 #
2 # Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
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 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
137 # jvm_db & dtrace
138 include $(MAKEFILES_DIR)/dtrace.make
139
140 #----------------------------------------------------------------------
141 # JVM
142
143 JVM = jvm
144 ifeq ($(OS_VENDOR), Darwin)
145 LIBJVM = lib$(JVM).dylib
146 CFLAGS += -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE
147
148 LIBJVM_DEBUGINFO = lib$(JVM).dylib.dSYM
149 LIBJVM_DIZ = lib$(JVM).diz
150 else
151 LIBJVM = lib$(JVM).so
152
153 LIBJVM_DEBUGINFO = lib$(JVM).debuginfo
154 LIBJVM_DIZ = lib$(JVM).diz
155 endif
156
157 SPECIAL_PATHS:=adlc c1 gc opto shark libadt
158
159 SOURCE_PATHS=\
160 $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
161 \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) \))
162 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
163 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
164 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm
165 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm
166
167 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
168 CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/tracefiles
169
170 ifneq ($(INCLUDE_TRACE), false)
171 CORE_PATHS+=$(shell if [ -d $(HS_ALT_SRC)/share/vm/jfr ]; then \
172 find $(HS_ALT_SRC)/share/vm/jfr -type d; \
173 fi)
174 endif
175
176 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
177 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
|