1 #
2 # Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
3 # Copyright 2012, 2013 SAP AG. All rights reserved.
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 #
6 # This code is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License version 2 only, as
8 # published by the Free Software Foundation.
9 #
10 # This code is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 # version 2 for more details (a copy is included in the LICENSE file that
14 # accompanied this code).
15 #
16 # You should have received a copy of the GNU General Public License version
17 # 2 along with this work; if not, write to the Free Software Foundation,
18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 #
20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 # or visit www.oracle.com if you need additional information or have any
22 # questions.
120 LIBS += -lm -ldl -lpthread
121
122 # By default, link the *.o into the library, not the executable.
123 LINK_INTO$(LINK_INTO) = LIBJVM
124
125 JDK_LIBDIR = $(JAVA_HOME)/lib/$(LIBARCH)
126
127 #----------------------------------------------------------------------
128 # jvm_db & dtrace
129 include $(MAKEFILES_DIR)/dtrace.make
130
131 #----------------------------------------------------------------------
132 # JVM
133
134 JVM = jvm
135 LIBJVM = lib$(JVM).so
136
137 LIBJVM_DEBUGINFO = lib$(JVM).debuginfo
138 LIBJVM_DIZ = lib$(JVM).diz
139
140 SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt
141
142 SOURCE_PATHS=\
143 $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
144 \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) \))
145 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
146 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
147 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(SRCARCH)/vm
148 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_family)_$(SRCARCH)/vm
149
150 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
151 CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/tracefiles
152
153 ifneq ($(INCLUDE_TRACE), false)
154 CORE_PATHS+=$(shell if [ -d $(HS_ALT_SRC)/share/vm/jfr ]; then \
155 find $(HS_ALT_SRC)/share/vm/jfr -type d; \
156 fi)
157 endif
158
159 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
160 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
|
1 #
2 # Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
3 # Copyright 2012, 2013 SAP AG. All rights reserved.
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 #
6 # This code is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License version 2 only, as
8 # published by the Free Software Foundation.
9 #
10 # This code is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 # version 2 for more details (a copy is included in the LICENSE file that
14 # accompanied this code).
15 #
16 # You should have received a copy of the GNU General Public License version
17 # 2 along with this work; if not, write to the Free Software Foundation,
18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 #
20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 # or visit www.oracle.com if you need additional information or have any
22 # questions.
120 LIBS += -lm -ldl -lpthread
121
122 # By default, link the *.o into the library, not the executable.
123 LINK_INTO$(LINK_INTO) = LIBJVM
124
125 JDK_LIBDIR = $(JAVA_HOME)/lib/$(LIBARCH)
126
127 #----------------------------------------------------------------------
128 # jvm_db & dtrace
129 include $(MAKEFILES_DIR)/dtrace.make
130
131 #----------------------------------------------------------------------
132 # JVM
133
134 JVM = jvm
135 LIBJVM = lib$(JVM).so
136
137 LIBJVM_DEBUGINFO = lib$(JVM).debuginfo
138 LIBJVM_DIZ = lib$(JVM).diz
139
140 SPECIAL_PATHS:=adlc c1 gc opto shark libadt
141
142 SOURCE_PATHS=\
143 $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
144 \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) \))
145 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
146 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
147 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(SRCARCH)/vm
148 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_family)_$(SRCARCH)/vm
149
150 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
151 CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/tracefiles
152
153 ifneq ($(INCLUDE_TRACE), false)
154 CORE_PATHS+=$(shell if [ -d $(HS_ALT_SRC)/share/vm/jfr ]; then \
155 find $(HS_ALT_SRC)/share/vm/jfr -type d; \
156 fi)
157 endif
158
159 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
160 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
|