50 |
50 |
51 # set VPATH so make knows where to look for source files |
51 # set VPATH so make knows where to look for source files |
52 # Src_Dirs_V is everything in src/share/vm/*, plus the right os/*/vm and cpu/*/vm |
52 # Src_Dirs_V is everything in src/share/vm/*, plus the right os/*/vm and cpu/*/vm |
53 # The adfiles directory contains ad_<arch>.[ch]pp. |
53 # The adfiles directory contains ad_<arch>.[ch]pp. |
54 # The jvmtifiles directory contains jvmti*.[ch]pp |
54 # The jvmtifiles directory contains jvmti*.[ch]pp |
55 Src_Dirs_V += $(GENERATED)/adfiles $(GENERATED)/jvmtifiles $(GENERATED)/tracefiles |
55 Src_Dirs_V += $(GENERATED)/adfiles $(GENERATED)/jvmtifiles $(GENERATED)/jfrfiles |
56 VPATH += $(Src_Dirs_V:%=%:) |
56 VPATH += $(Src_Dirs_V:%=%:) |
57 |
57 |
58 # set INCLUDES for C preprocessor. |
58 # set INCLUDES for C preprocessor. |
59 Src_Dirs_I += $(GENERATED) |
59 Src_Dirs_I += $(GENERATED) |
60 # The order is important for the precompiled headers to work. |
60 # The order is important for the precompiled headers to work. |
163 |
163 |
164 LIBJVM_DEBUGINFO = lib$(JVM).debuginfo |
164 LIBJVM_DEBUGINFO = lib$(JVM).debuginfo |
165 LIBJVM_DIZ = lib$(JVM).diz |
165 LIBJVM_DIZ = lib$(JVM).diz |
166 endif |
166 endif |
167 |
167 |
|
168 ifeq ($(ENABLE_JFR),false) |
|
169 EXCLUDE_JFR_PATHS:= -o -name jfr -prune |
|
170 endif |
168 SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt |
171 SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt |
169 |
172 |
170 SOURCE_PATHS=\ |
173 SOURCE_PATHS=\ |
171 $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \ |
174 $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \ |
172 \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) \)) |
175 \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) $(EXCLUDE_JFR_PATHS) \)) |
173 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm |
176 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm |
174 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm |
177 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm |
175 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm |
178 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm |
176 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm |
179 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm |
177 |
180 |
178 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path)) |
181 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path)) |
179 CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/tracefiles |
182 CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/jfrfiles |
180 |
|
181 ifneq ($(INCLUDE_TRACE), false) |
|
182 CORE_PATHS+=$(shell if [ -d $(HS_ALT_SRC)/share/vm/jfr ]; then \ |
|
183 find $(HS_ALT_SRC)/share/vm/jfr -type d; \ |
|
184 fi) |
|
185 endif |
|
186 |
183 |
187 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1) |
184 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1) |
188 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1 |
185 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1 |
189 |
186 |
190 COMPILER2_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/opto) |
187 COMPILER2_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/opto) |