1 #
2 # Copyright (c) 1998, 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 #
146 LIBS += -lkstat
147
148 # By default, link the *.o into the library, not the executable.
149 LINK_INTO$(LINK_INTO) = LIBJVM
150
151 JDK_LIBDIR = $(JAVA_HOME)/lib/$(LIBARCH)
152
153 #----------------------------------------------------------------------
154 # jvm_db & dtrace
155 include $(MAKEFILES_DIR)/dtrace.make
156
157 #----------------------------------------------------------------------
158 # JVM
159
160 JVM = jvm
161 LIBJVM = lib$(JVM).so
162
163 LIBJVM_DEBUGINFO = lib$(JVM).debuginfo
164 LIBJVM_DIZ = lib$(JVM).diz
165
166 SPECIAL_PATHS:=adlc c1 dist gc_implementation opto shark libadt
167
168 SOURCE_PATHS=\
169 $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
170 \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) \))
171 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
172 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
173 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm
174 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm
175
176 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
177 CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/tracefiles
178
179 ifneq ($(INCLUDE_TRACE), false)
180 CORE_PATHS+=$(shell if [ -d $(HS_ALT_SRC)/share/vm/jfr ]; then \
181 find $(HS_ALT_SRC)/share/vm/jfr -type d; \
182 fi)
183 endif
184
185 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
186 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
|
1 #
2 # Copyright (c) 1998, 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 #
146 LIBS += -lkstat
147
148 # By default, link the *.o into the library, not the executable.
149 LINK_INTO$(LINK_INTO) = LIBJVM
150
151 JDK_LIBDIR = $(JAVA_HOME)/lib/$(LIBARCH)
152
153 #----------------------------------------------------------------------
154 # jvm_db & dtrace
155 include $(MAKEFILES_DIR)/dtrace.make
156
157 #----------------------------------------------------------------------
158 # JVM
159
160 JVM = jvm
161 LIBJVM = lib$(JVM).so
162
163 LIBJVM_DEBUGINFO = lib$(JVM).debuginfo
164 LIBJVM_DIZ = lib$(JVM).diz
165
166 SPECIAL_PATHS:=adlc c1 dist gc opto shark libadt
167
168 SOURCE_PATHS=\
169 $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
170 \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) \))
171 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
172 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
173 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm
174 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm
175
176 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
177 CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/tracefiles
178
179 ifneq ($(INCLUDE_TRACE), false)
180 CORE_PATHS+=$(shell if [ -d $(HS_ALT_SRC)/share/vm/jfr ]; then \
181 find $(HS_ALT_SRC)/share/vm/jfr -type d; \
182 fi)
183 endif
184
185 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
186 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
|