< prev index next >

make/linux/makefiles/vm.make

Print this page




 151 LIBJVM_DIZ         = lib$(JVM).diz
 152 
 153 ifeq ($(ENABLE_JFR),false)
 154 EXCLUDE_JFR_PATHS:= -o -name jfr -prune
 155 endif
 156 SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt
 157 
 158 SOURCE_PATHS=\
 159   $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
 160       \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) $(EXCLUDE_JFR_PATHS) \))
 161 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
 162 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
 163 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm
 164 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm
 165 
 166 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
 167 CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/jfrfiles
 168 
 169 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
 170 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1

 171 
 172 COMPILER2_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/opto)
 173 COMPILER2_PATHS += $(call altsrc,$(HS_COMMON_SRC)/share/vm/libadt)
 174 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/opto
 175 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/libadt
 176 COMPILER2_PATHS += $(GENERATED)/adfiles
 177 
 178 SHARK_PATHS := $(GAMMADIR)/src/share/vm/shark
 179 
 180 # Include dirs per type.
 181 Src_Dirs/CORE      := $(CORE_PATHS)
 182 Src_Dirs/COMPILER1 := $(CORE_PATHS) $(COMPILER1_PATHS)
 183 Src_Dirs/COMPILER2 := $(CORE_PATHS) $(COMPILER2_PATHS)
 184 Src_Dirs/TIERED    := $(CORE_PATHS) $(COMPILER1_PATHS) $(COMPILER2_PATHS)
 185 Src_Dirs/ZERO      := $(CORE_PATHS)
 186 Src_Dirs/SHARK     := $(CORE_PATHS) $(SHARK_PATHS)
 187 Src_Dirs := $(Src_Dirs/$(TYPE))
 188 
 189 COMPILER2_SPECIFIC_FILES := opto libadt bcEscapeAnalyzer.cpp c2_\* runtime_\*
 190 COMPILER1_SPECIFIC_FILES := c1_\*
 191 SHARK_SPECIFIC_FILES     := shark
 192 ZERO_SPECIFIC_FILES      := zero
 193 
 194 # Always exclude these.
 195 Src_Files_EXCLUDE += jsig.c jvmtiEnvRecommended.cpp jvmtiEnvStub.cpp
 196 
 197 # Exclude per type.
 198 Src_Files_EXCLUDE/CORE      := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
 199 Src_Files_EXCLUDE/COMPILER1 := $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
 200 Src_Files_EXCLUDE/COMPILER2 := $(COMPILER1_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES)
 201 Src_Files_EXCLUDE/TIERED    := $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES)
 202 Src_Files_EXCLUDE/ZERO      := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
 203 Src_Files_EXCLUDE/SHARK     := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES)
 204 
 205 Src_Files_EXCLUDE +=  $(Src_Files_EXCLUDE/$(TYPE))
 206 
 207 # Special handling of arch model.
 208 ifeq ($(Platform_arch_model), x86_32)
 209 Src_Files_EXCLUDE += \*x86_64\*
 210 endif
 211 ifeq ($(Platform_arch_model), x86_64)
 212 Src_Files_EXCLUDE += \*x86_32\*
 213 endif
 214 
 215 # Alternate vm.make
 216 # This has to be included here to allow changes to the source
 217 # directories and excluded files before they are expanded
 218 # by the definition of Src_Files.
 219 -include $(HS_ALT_MAKE)/$(Platform_os_family)/makefiles/vm.make
 220 
 221 # Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE.
 222 define findsrc
 223         $(notdir $(shell find $(1)/. ! -name . -prune \
 224                 -a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \
 225                 -a ! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \)))
 226 endef
 227 
 228 Src_Files := $(foreach e,$(Src_Dirs),$(call findsrc,$(e)))
 229 
 230 Obj_Files = $(sort $(addsuffix .o,$(basename $(Src_Files))))
 231 
 232 JVM_OBJ_FILES = $(Obj_Files)
 233 
 234 vm_version.o: $(filter-out vm_version.o,$(JVM_OBJ_FILES))
 235 
 236 mapfile : $(MAPFILE) vm.def mapfile_ext
 237         rm -f $@
 238         awk '{ if ($$0 ~ "INSERT VTABLE SYMBOLS HERE")  \
 239                  { system ("cat mapfile_ext"); system ("cat vm.def"); } \
 240                else                                     \
 241                  { print $$0 }                          \
 242              }' > $@ < $(MAPFILE)
 243 
 244 mapfile_reorder : mapfile $(REORDERFILE)




 151 LIBJVM_DIZ         = lib$(JVM).diz
 152 
 153 ifeq ($(ENABLE_JFR),false)
 154 EXCLUDE_JFR_PATHS:= -o -name jfr -prune
 155 endif
 156 SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt
 157 
 158 SOURCE_PATHS=\
 159   $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
 160       \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) $(EXCLUDE_JFR_PATHS) \))
 161 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
 162 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
 163 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm
 164 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm
 165 
 166 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
 167 CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/jfrfiles
 168 
 169 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
 170 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
 171 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/gc_implementation/shenandoah/c1
 172 
 173 COMPILER2_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/opto)
 174 COMPILER2_PATHS += $(call altsrc,$(HS_COMMON_SRC)/share/vm/libadt)
 175 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/opto
 176 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/libadt
 177 COMPILER2_PATHS += $(GENERATED)/adfiles
 178 
 179 SHARK_PATHS := $(GAMMADIR)/src/share/vm/shark
 180 
 181 # Include dirs per type.
 182 Src_Dirs/CORE      := $(CORE_PATHS)
 183 Src_Dirs/COMPILER1 := $(CORE_PATHS) $(COMPILER1_PATHS)
 184 Src_Dirs/COMPILER2 := $(CORE_PATHS) $(COMPILER2_PATHS)
 185 Src_Dirs/TIERED    := $(CORE_PATHS) $(COMPILER1_PATHS) $(COMPILER2_PATHS)
 186 Src_Dirs/ZERO      := $(CORE_PATHS)
 187 Src_Dirs/SHARK     := $(CORE_PATHS) $(SHARK_PATHS)
 188 Src_Dirs := $(Src_Dirs/$(TYPE))
 189 
 190 COMPILER2_SPECIFIC_FILES := opto libadt bcEscapeAnalyzer.cpp c2_\* runtime_\* shenandoahBarrierSetC2.cpp shenandoahSupport.cpp
 191 COMPILER1_SPECIFIC_FILES := c1_\* shenandoahBarrierSetC1.cpp
 192 SHARK_SPECIFIC_FILES     := shark
 193 ZERO_SPECIFIC_FILES      := zero
 194 
 195 # Always exclude these.
 196 Src_Files_EXCLUDE += jsig.c jvmtiEnvRecommended.cpp jvmtiEnvStub.cpp
 197 
 198 # Exclude per type.
 199 Src_Files_EXCLUDE/CORE      := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
 200 Src_Files_EXCLUDE/COMPILER1 := $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
 201 Src_Files_EXCLUDE/COMPILER2 := $(COMPILER1_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES)
 202 Src_Files_EXCLUDE/TIERED    := $(ZERO_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES)
 203 Src_Files_EXCLUDE/ZERO      := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(SHARK_SPECIFIC_FILES) ciTypeFlow.cpp
 204 Src_Files_EXCLUDE/SHARK     := $(COMPILER1_SPECIFIC_FILES) $(COMPILER2_SPECIFIC_FILES) $(ZERO_SPECIFIC_FILES)
 205 
 206 Src_Files_EXCLUDE +=  $(Src_Files_EXCLUDE/$(TYPE))
 207 
 208 # Special handling of arch model.
 209 ifeq ($(Platform_arch_model), x86_32)
 210 Src_Files_EXCLUDE += \*x86_64\*
 211 endif
 212 ifeq ($(Platform_arch_model), x86_64)
 213 Src_Files_EXCLUDE += \*x86_32\*
 214 endif
 215 
 216 # Alternate vm.make
 217 # This has to be included here to allow changes to the source
 218 # directories and excluded files before they are expanded
 219 # by the definition of Src_Files.
 220 -include $(HS_ALT_MAKE)/$(Platform_os_family)/makefiles/vm.make
 221 
 222 # Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE.
 223 define findsrc
 224         $(notdir $(shell find $(1)/. ! -name . -prune \
 225                 -a \( -name \*.c -o -name \*.cpp -o -name \*.s -o -name \*.S \) \
 226                 -a ! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \)))
 227 endef
 228 
 229 Src_Files := $(foreach e,$(Src_Dirs),$(call findsrc,$(e)))
 230 
 231 Obj_Files = $(sort $(addsuffix .o,$(basename $(Src_Files))))
 232 
 233 JVM_OBJ_FILES = $(Obj_Files)
 234 
 235 vm_version.o: $(filter-out vm_version.o,$(JVM_OBJ_FILES))
 236 
 237 mapfile : $(MAPFILE) vm.def mapfile_ext
 238         rm -f $@
 239         awk '{ if ($$0 ~ "INSERT VTABLE SYMBOLS HERE")  \
 240                  { system ("cat mapfile_ext"); system ("cat vm.def"); } \
 241                else                                     \
 242                  { print $$0 }                          \
 243              }' > $@ < $(MAPFILE)
 244 
 245 mapfile_reorder : mapfile $(REORDERFILE)


< prev index next >