< prev index next >

make/linux/makefiles/vm.make

Print this page




  37 
  38 GENERATED     = ../generated
  39 DEP_DIR       = $(GENERATED)/dependencies
  40 
  41 # reads the generated files defining the set of .o's and the .o .h dependencies
  42 -include $(DEP_DIR)/*.d
  43 
  44 # read machine-specific adjustments (%%% should do this via buildtree.make?)
  45 ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true)
  46   include $(MAKEFILES_DIR)/zeroshark.make
  47 else
  48   BUILDARCH_MAKE = $(MAKEFILES_DIR)/$(BUILDARCH).make
  49   ALT_BUILDARCH_MAKE = $(HS_ALT_MAKE)/$(Platform_os_family)/makefiles/$(BUILDARCH).make
  50   include $(if $(wildcard $(ALT_BUILDARCH_MAKE)),$(ALT_BUILDARCH_MAKE),$(BUILDARCH_MAKE))
  51 endif
  52 
  53 # set VPATH so make knows where to look for source files
  54 # Src_Dirs_V is everything in src/share/vm/*, plus the right os/*/vm and cpu/*/vm
  55 # The adfiles directory contains ad_<arch>.[ch]pp.
  56 # The jvmtifiles directory contains jvmti*.[ch]pp
  57 Src_Dirs_V += $(GENERATED)/adfiles $(GENERATED)/jvmtifiles $(GENERATED)/tracefiles
  58 VPATH += $(Src_Dirs_V:%=%:)
  59 
  60 # set INCLUDES for C preprocessor.
  61 Src_Dirs_I += $(GENERATED)
  62 # The order is important for the precompiled headers to work.
  63 INCLUDES += $(PRECOMPILED_HEADER_DIR:%=-I%) $(Src_Dirs_I:%=-I%)
  64 
  65 # SYMFLAG is used by {jsig,saproc}.make
  66 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
  67   # always build with debug info when we can create .debuginfo files
  68   SYMFLAG = -g
  69 else
  70   ifeq (${VERSION}, debug)
  71     SYMFLAG = -g
  72   else
  73     SYMFLAG =
  74   endif
  75 endif
  76 
  77 # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined


 132 LIBS += -lm -ldl -lpthread
 133 
 134 # By default, link the *.o into the library, not the executable.
 135 LINK_INTO$(LINK_INTO) = LIBJVM
 136 
 137 JDK_LIBDIR = $(JAVA_HOME)/jre/lib/$(LIBARCH)
 138 
 139 #----------------------------------------------------------------------
 140 # jvm_db & dtrace
 141 include $(MAKEFILES_DIR)/dtrace.make
 142 
 143 #----------------------------------------------------------------------
 144 # JVM
 145 
 146 JVM      = jvm
 147 LIBJVM   = lib$(JVM).so
 148 
 149 LIBJVM_DEBUGINFO   = lib$(JVM).debuginfo
 150 LIBJVM_DIZ         = lib$(JVM).diz
 151 



 152 SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt
 153 
 154 SOURCE_PATHS=\
 155   $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
 156       \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) \))
 157 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
 158 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
 159 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm
 160 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm
 161 
 162 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
 163 CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/tracefiles
 164 
 165 ifneq ($(INCLUDE_TRACE), false)
 166 CORE_PATHS+=$(shell if [ -d $(HS_ALT_SRC)/share/vm/jfr ]; then \
 167   find $(HS_ALT_SRC)/share/vm/jfr -type d; \
 168   fi)
 169 endif
 170 
 171 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
 172 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
 173 
 174 COMPILER2_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/opto)
 175 COMPILER2_PATHS += $(call altsrc,$(HS_COMMON_SRC)/share/vm/libadt)
 176 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/opto
 177 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/libadt
 178 COMPILER2_PATHS += $(GENERATED)/adfiles
 179 
 180 SHARK_PATHS := $(GAMMADIR)/src/share/vm/shark
 181 
 182 # Include dirs per type.
 183 Src_Dirs/CORE      := $(CORE_PATHS)
 184 Src_Dirs/COMPILER1 := $(CORE_PATHS) $(COMPILER1_PATHS)
 185 Src_Dirs/COMPILER2 := $(CORE_PATHS) $(COMPILER2_PATHS)
 186 Src_Dirs/TIERED    := $(CORE_PATHS) $(COMPILER1_PATHS) $(COMPILER2_PATHS)
 187 Src_Dirs/ZERO      := $(CORE_PATHS)
 188 Src_Dirs/SHARK     := $(CORE_PATHS) $(SHARK_PATHS)
 189 Src_Dirs := $(Src_Dirs/$(TYPE))




  37 
  38 GENERATED     = ../generated
  39 DEP_DIR       = $(GENERATED)/dependencies
  40 
  41 # reads the generated files defining the set of .o's and the .o .h dependencies
  42 -include $(DEP_DIR)/*.d
  43 
  44 # read machine-specific adjustments (%%% should do this via buildtree.make?)
  45 ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true)
  46   include $(MAKEFILES_DIR)/zeroshark.make
  47 else
  48   BUILDARCH_MAKE = $(MAKEFILES_DIR)/$(BUILDARCH).make
  49   ALT_BUILDARCH_MAKE = $(HS_ALT_MAKE)/$(Platform_os_family)/makefiles/$(BUILDARCH).make
  50   include $(if $(wildcard $(ALT_BUILDARCH_MAKE)),$(ALT_BUILDARCH_MAKE),$(BUILDARCH_MAKE))
  51 endif
  52 
  53 # set VPATH so make knows where to look for source files
  54 # Src_Dirs_V is everything in src/share/vm/*, plus the right os/*/vm and cpu/*/vm
  55 # The adfiles directory contains ad_<arch>.[ch]pp.
  56 # The jvmtifiles directory contains jvmti*.[ch]pp
  57 Src_Dirs_V += $(GENERATED)/adfiles $(GENERATED)/jvmtifiles $(GENERATED)/jfrfiles
  58 VPATH += $(Src_Dirs_V:%=%:)
  59 
  60 # set INCLUDES for C preprocessor.
  61 Src_Dirs_I += $(GENERATED)
  62 # The order is important for the precompiled headers to work.
  63 INCLUDES += $(PRECOMPILED_HEADER_DIR:%=-I%) $(Src_Dirs_I:%=-I%)
  64 
  65 # SYMFLAG is used by {jsig,saproc}.make
  66 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
  67   # always build with debug info when we can create .debuginfo files
  68   SYMFLAG = -g
  69 else
  70   ifeq (${VERSION}, debug)
  71     SYMFLAG = -g
  72   else
  73     SYMFLAG =
  74   endif
  75 endif
  76 
  77 # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined


 132 LIBS += -lm -ldl -lpthread
 133 
 134 # By default, link the *.o into the library, not the executable.
 135 LINK_INTO$(LINK_INTO) = LIBJVM
 136 
 137 JDK_LIBDIR = $(JAVA_HOME)/jre/lib/$(LIBARCH)
 138 
 139 #----------------------------------------------------------------------
 140 # jvm_db & dtrace
 141 include $(MAKEFILES_DIR)/dtrace.make
 142 
 143 #----------------------------------------------------------------------
 144 # JVM
 145 
 146 JVM      = jvm
 147 LIBJVM   = lib$(JVM).so
 148 
 149 LIBJVM_DEBUGINFO   = lib$(JVM).debuginfo
 150 LIBJVM_DIZ         = lib$(JVM).diz
 151 
 152 ifeq ($(ENABLE_JFR),false)
 153 EXCLUDE_JFR_PATHS:= -o -name jfr -prune
 154 endif
 155 SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt
 156 
 157 SOURCE_PATHS=\
 158   $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
 159       \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) $(EXCLUDE_JFR_PATHS) \))
 160 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
 161 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
 162 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm
 163 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm
 164 
 165 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
 166 CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/jfrfiles






 167 
 168 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
 169 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
 170 
 171 COMPILER2_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/opto)
 172 COMPILER2_PATHS += $(call altsrc,$(HS_COMMON_SRC)/share/vm/libadt)
 173 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/opto
 174 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/libadt
 175 COMPILER2_PATHS += $(GENERATED)/adfiles
 176 
 177 SHARK_PATHS := $(GAMMADIR)/src/share/vm/shark
 178 
 179 # Include dirs per type.
 180 Src_Dirs/CORE      := $(CORE_PATHS)
 181 Src_Dirs/COMPILER1 := $(CORE_PATHS) $(COMPILER1_PATHS)
 182 Src_Dirs/COMPILER2 := $(CORE_PATHS) $(COMPILER2_PATHS)
 183 Src_Dirs/TIERED    := $(CORE_PATHS) $(COMPILER1_PATHS) $(COMPILER2_PATHS)
 184 Src_Dirs/ZERO      := $(CORE_PATHS)
 185 Src_Dirs/SHARK     := $(CORE_PATHS) $(SHARK_PATHS)
 186 Src_Dirs := $(Src_Dirs/$(TYPE))


< prev index next >