make/linux/makefiles/vm.make

Print this page




 222 Src_Files := $(foreach e,$(Src_Dirs),$(call findsrc,$(e)))
 223 
 224 Obj_Files = $(sort $(addsuffix .o,$(basename $(Src_Files))))
 225 
 226 JVM_OBJ_FILES = $(Obj_Files)
 227 
 228 vm_version.o: $(filter-out vm_version.o,$(JVM_OBJ_FILES))
 229 
 230 mapfile : $(MAPFILE) vm.def mapfile_ext
 231         rm -f $@
 232         awk '{ if ($$0 ~ "INSERT VTABLE SYMBOLS HERE")  \
 233                  { system ("cat mapfile_ext"); system ("cat vm.def"); } \
 234                else                                     \
 235                  { print $$0 }                          \
 236              }' > $@ < $(MAPFILE)
 237 
 238 mapfile_reorder : mapfile $(REORDERFILE)
 239         rm -f $@
 240         cat $^ > $@
 241 





 242 vm.def: $(Res_Files) $(Obj_Files)
 243         sh $(GAMMADIR)/make/linux/makefiles/build_vm_def.sh *.o > $@

 244 
 245 mapfile_ext:
 246         rm -f $@
 247         touch $@
 248         if [ -f $(HS_ALT_MAKE)/linux/makefiles/mapfile-ext ]; then \
 249           cat $(HS_ALT_MAKE)/linux/makefiles/mapfile-ext > $@; \
 250         fi
 251 
 252 ifeq ($(JVM_VARIANT_ZEROSHARK), true)
 253   STATIC_CXX = false
 254 else
 255   ifeq ($(ZERO_LIBARCH), ppc64)
 256     STATIC_CXX = false
 257   else
 258     STATIC_CXX = true
 259   endif
 260 endif
 261 
 262 ifeq ($(LINK_INTO),AOUT)
 263   LIBJVM.o                 =




 222 Src_Files := $(foreach e,$(Src_Dirs),$(call findsrc,$(e)))
 223 
 224 Obj_Files = $(sort $(addsuffix .o,$(basename $(Src_Files))))
 225 
 226 JVM_OBJ_FILES = $(Obj_Files)
 227 
 228 vm_version.o: $(filter-out vm_version.o,$(JVM_OBJ_FILES))
 229 
 230 mapfile : $(MAPFILE) vm.def mapfile_ext
 231         rm -f $@
 232         awk '{ if ($$0 ~ "INSERT VTABLE SYMBOLS HERE")  \
 233                  { system ("cat mapfile_ext"); system ("cat vm.def"); } \
 234                else                                     \
 235                  { print $$0 }                          \
 236              }' > $@ < $(MAPFILE)
 237 
 238 mapfile_reorder : mapfile $(REORDERFILE)
 239         rm -f $@
 240         cat $^ > $@
 241 
 242 VMDEF_PAT  = ^_ZTV
 243 VMDEF_PAT := ^gHotSpotVM|$(VMDEF_PAT)
 244 VMDEF_PAT := ^UseSharedSpaces$$|$(VMDEF_PAT)
 245 VMDEF_PAT := ^_ZN9Arguments17SharedArchivePathE$$|$(VMDEF_PAT)
 246 
 247 vm.def: $(Res_Files) $(Obj_Files)
 248         $(QUIETLY) $(NM) --defined-only *.o | awk '{ print $$3 }' | \
 249         grep -E '$(VMDEF_PAT)' | sort -u | awk '{ print "\t" $$1 ";" }' > $@
 250 
 251 mapfile_ext:
 252         rm -f $@
 253         touch $@
 254         if [ -f $(HS_ALT_MAKE)/linux/makefiles/mapfile-ext ]; then \
 255           cat $(HS_ALT_MAKE)/linux/makefiles/mapfile-ext > $@; \
 256         fi
 257 
 258 ifeq ($(JVM_VARIANT_ZEROSHARK), true)
 259   STATIC_CXX = false
 260 else
 261   ifeq ($(ZERO_LIBARCH), ppc64)
 262     STATIC_CXX = false
 263   else
 264     STATIC_CXX = true
 265   endif
 266 endif
 267 
 268 ifeq ($(LINK_INTO),AOUT)
 269   LIBJVM.o                 =