< prev index next >

make/bsd/makefiles/vm.make

Print this page




  35 #----------------------------------------------------------------------
  36 # Defs
  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   include $(MAKEFILES_DIR)/$(BUILDARCH).make
  49 endif
  50 
  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
  53 # The adfiles directory contains ad_<arch>.[ch]pp.
  54 # The jvmtifiles directory contains jvmti*.[ch]pp
  55 Src_Dirs_V += $(GENERATED)/adfiles $(GENERATED)/jvmtifiles $(GENERATED)/tracefiles
  56 VPATH += $(Src_Dirs_V:%=%:)
  57 
  58 # set INCLUDES for C preprocessor.
  59 Src_Dirs_I += $(GENERATED)
  60 # The order is important for the precompiled headers to work.
  61 INCLUDES += $(PRECOMPILED_HEADER_DIR:%=-I%) $(Src_Dirs_I:%=-I%)
  62 
  63 # SYMFLAG is used by {jsig,saproc}.make
  64 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
  65   # always build with debug info when we can create .dSYM/.debuginfo files
  66   SYMFLAG = -g
  67 else
  68   ifeq (${VERSION}, debug)
  69     SYMFLAG = -g
  70   else
  71     SYMFLAG =
  72   endif
  73 endif
  74 
  75 # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined


 147 #----------------------------------------------------------------------
 148 # JVM
 149 
 150 JVM    = jvm
 151 ifeq ($(OS_VENDOR), Darwin)
 152   LIBJVM   = lib$(JVM).dylib
 153   CFLAGS  += -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE
 154   ifeq (${VERSION}, $(filter ${VERSION}, debug fastdebug))
 155     CFLAGS += -DALLOW_OPERATOR_NEW_USAGE
 156   endif
 157 
 158   LIBJVM_DEBUGINFO   = lib$(JVM).dylib.dSYM
 159   LIBJVM_DIZ         = lib$(JVM).diz
 160 else
 161   LIBJVM   = lib$(JVM).so
 162 
 163   LIBJVM_DEBUGINFO   = lib$(JVM).debuginfo
 164   LIBJVM_DIZ         = lib$(JVM).diz
 165 endif
 166 



 167 SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt
 168 
 169 SOURCE_PATHS=\
 170   $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
 171       \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) \))
 172 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
 173 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
 174 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm
 175 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm
 176 
 177 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
 178 CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/tracefiles
 179 
 180 ifneq ($(INCLUDE_TRACE), false)
 181 CORE_PATHS+=$(shell if [ -d $(HS_ALT_SRC)/share/vm/jfr ]; then \
 182   find $(HS_ALT_SRC)/share/vm/jfr -type d; \
 183   fi)
 184 endif
 185 
 186 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
 187 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
 188 
 189 COMPILER2_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/opto)
 190 COMPILER2_PATHS += $(call altsrc,$(HS_COMMON_SRC)/share/vm/libadt)
 191 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/opto
 192 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/libadt
 193 COMPILER2_PATHS += $(GENERATED)/adfiles
 194 
 195 SHARK_PATHS := $(GAMMADIR)/src/share/vm/shark
 196 
 197 # Include dirs per type.
 198 Src_Dirs/CORE      := $(CORE_PATHS)
 199 Src_Dirs/COMPILER1 := $(CORE_PATHS) $(COMPILER1_PATHS)
 200 Src_Dirs/COMPILER2 := $(CORE_PATHS) $(COMPILER2_PATHS)
 201 Src_Dirs/TIERED    := $(CORE_PATHS) $(COMPILER1_PATHS) $(COMPILER2_PATHS)
 202 Src_Dirs/ZERO      := $(CORE_PATHS)
 203 Src_Dirs/SHARK     := $(CORE_PATHS) $(SHARK_PATHS)
 204 Src_Dirs := $(Src_Dirs/$(TYPE))




  35 #----------------------------------------------------------------------
  36 # Defs
  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   include $(MAKEFILES_DIR)/$(BUILDARCH).make
  49 endif
  50 
  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
  53 # The adfiles directory contains ad_<arch>.[ch]pp.
  54 # The jvmtifiles directory contains jvmti*.[ch]pp
  55 Src_Dirs_V += $(GENERATED)/adfiles $(GENERATED)/jvmtifiles $(GENERATED)/jfrfiles
  56 VPATH += $(Src_Dirs_V:%=%:)
  57 
  58 # set INCLUDES for C preprocessor.
  59 Src_Dirs_I += $(GENERATED)
  60 # The order is important for the precompiled headers to work.
  61 INCLUDES += $(PRECOMPILED_HEADER_DIR:%=-I%) $(Src_Dirs_I:%=-I%)
  62 
  63 # SYMFLAG is used by {jsig,saproc}.make
  64 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
  65   # always build with debug info when we can create .dSYM/.debuginfo files
  66   SYMFLAG = -g
  67 else
  68   ifeq (${VERSION}, debug)
  69     SYMFLAG = -g
  70   else
  71     SYMFLAG =
  72   endif
  73 endif
  74 
  75 # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined


 147 #----------------------------------------------------------------------
 148 # JVM
 149 
 150 JVM    = jvm
 151 ifeq ($(OS_VENDOR), Darwin)
 152   LIBJVM   = lib$(JVM).dylib
 153   CFLAGS  += -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE
 154   ifeq (${VERSION}, $(filter ${VERSION}, debug fastdebug))
 155     CFLAGS += -DALLOW_OPERATOR_NEW_USAGE
 156   endif
 157 
 158   LIBJVM_DEBUGINFO   = lib$(JVM).dylib.dSYM
 159   LIBJVM_DIZ         = lib$(JVM).diz
 160 else
 161   LIBJVM   = lib$(JVM).so
 162 
 163   LIBJVM_DEBUGINFO   = lib$(JVM).debuginfo
 164   LIBJVM_DIZ         = lib$(JVM).diz
 165 endif
 166 
 167 ifeq ($(ENABLE_JFR),false)
 168 EXCLUDE_JFR_PATHS:= -o -name jfr -prune
 169 endif
 170 SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt
 171 
 172 SOURCE_PATHS=\
 173   $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
 174       \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) $(EXCLUDE_JFR_PATHS) \))
 175 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
 176 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
 177 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm
 178 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm
 179 
 180 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
 181 CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/jfrfiles






 182 
 183 COMPILER1_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/c1)
 184 COMPILER1_PATHS += $(HS_COMMON_SRC)/share/vm/c1
 185 
 186 COMPILER2_PATHS := $(call altsrc,$(HS_COMMON_SRC)/share/vm/opto)
 187 COMPILER2_PATHS += $(call altsrc,$(HS_COMMON_SRC)/share/vm/libadt)
 188 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/opto
 189 COMPILER2_PATHS += $(HS_COMMON_SRC)/share/vm/libadt
 190 COMPILER2_PATHS += $(GENERATED)/adfiles
 191 
 192 SHARK_PATHS := $(GAMMADIR)/src/share/vm/shark
 193 
 194 # Include dirs per type.
 195 Src_Dirs/CORE      := $(CORE_PATHS)
 196 Src_Dirs/COMPILER1 := $(CORE_PATHS) $(COMPILER1_PATHS)
 197 Src_Dirs/COMPILER2 := $(CORE_PATHS) $(COMPILER2_PATHS)
 198 Src_Dirs/TIERED    := $(CORE_PATHS) $(COMPILER1_PATHS) $(COMPILER2_PATHS)
 199 Src_Dirs/ZERO      := $(CORE_PATHS)
 200 Src_Dirs/SHARK     := $(CORE_PATHS) $(SHARK_PATHS)
 201 Src_Dirs := $(Src_Dirs/$(TYPE))


< prev index next >