< prev index next >

make/linux/makefiles/vm.make

Print this page




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




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


< prev index next >