< prev index next >

make/solaris/makefiles/vm.make

Print this page




  31 include $(GAMMADIR)/make/altsrc.make
  32 
  33 default: build
  34 
  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 include $(MAKEFILES_DIR)/$(BUILDARCH).make
  46 
  47 # set VPATH so make knows where to look for source files
  48 # Src_Dirs_V is everything in src/share/vm/*, plus the right os/*/vm and cpu/*/vm
  49 # The adfiles directory contains ad_<arch>.[ch]pp.
  50 # The jvmtifiles directory contains jvmti*.[ch]pp
  51 Src_Dirs_V += $(GENERATED)/adfiles $(GENERATED)/jvmtifiles $(GENERATED)/tracefiles
  52 VPATH += $(Src_Dirs_V:%=%:)
  53 
  54 # set INCLUDES for C preprocessor
  55 Src_Dirs_I += $(GENERATED)
  56 INCLUDES += $(Src_Dirs_I:%=-I%)
  57 
  58 # SYMFLAG is used by {dtrace,jsig,saproc}.make.
  59 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
  60   # always build with debug info when we can create .debuginfo files
  61   # and disable 'lazy debug info' so the .so has everything.
  62   SYMFLAG = -g -xs
  63 else
  64   ifeq (${VERSION}, debug)
  65     SYMFLAG = -g
  66   else
  67     SYMFLAG =
  68   endif
  69 endif
  70 
  71 # The following variables are defined in the generated flags.make file.


 127 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 505), 1)
 128 # Old Comment: List the libraries in the order the compiler was designed for
 129 # Not sure what the 'designed for' comment is referring too above.
 130 #   The order may not be too significant anymore, but I have placed this
 131 #   older libm before libCrun, just to make sure it's found and used first.
 132 LIBS += -lsocket -lsched -ldl $(LIBM) -lCrun -lthread -ldoor -lc -ldemangle
 133 else
 134 ifeq ($(COMPILER_REV_NUMERIC), 502)
 135 # SC6.1 has it's own libm.so: specifying anything else provokes a name conflict.
 136 LIBS += -ldl -lthread -lsocket -lm -lsched -ldoor -ldemangle
 137 else
 138 LIBS += -ldl -lthread -lsocket $(LIBM) -lsched -ldoor -ldemangle
 139 endif # 502
 140 endif # 505
 141 else
 142 LIBS += -lsocket -lsched -ldl $(LIBM) -lthread -lc -ldemangle
 143 endif # sparcWorks
 144 
 145 LIBS += -lkstat
 146 


 147 # By default, link the *.o into the library, not the executable.
 148 LINK_INTO$(LINK_INTO) = LIBJVM
 149 
 150 JDK_LIBDIR = $(JAVA_HOME)/jre/lib/$(LIBARCH)
 151 
 152 #----------------------------------------------------------------------
 153 # jvm_db & dtrace
 154 include $(MAKEFILES_DIR)/dtrace.make
 155 
 156 #----------------------------------------------------------------------
 157 # JVM
 158 
 159 JVM      = jvm
 160 LIBJVM   = lib$(JVM).so
 161 
 162 LIBJVM_DEBUGINFO   = lib$(JVM).debuginfo
 163 LIBJVM_DIZ         = lib$(JVM).diz
 164 


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




  31 include $(GAMMADIR)/make/altsrc.make
  32 
  33 default: build
  34 
  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 include $(MAKEFILES_DIR)/$(BUILDARCH).make
  46 
  47 # set VPATH so make knows where to look for source files
  48 # Src_Dirs_V is everything in src/share/vm/*, plus the right os/*/vm and cpu/*/vm
  49 # The adfiles directory contains ad_<arch>.[ch]pp.
  50 # The jvmtifiles directory contains jvmti*.[ch]pp
  51 Src_Dirs_V += $(GENERATED)/adfiles $(GENERATED)/jvmtifiles $(GENERATED)/jfrfiles
  52 VPATH += $(Src_Dirs_V:%=%:)
  53 
  54 # set INCLUDES for C preprocessor
  55 Src_Dirs_I += $(GENERATED)
  56 INCLUDES += $(Src_Dirs_I:%=-I%)
  57 
  58 # SYMFLAG is used by {dtrace,jsig,saproc}.make.
  59 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
  60   # always build with debug info when we can create .debuginfo files
  61   # and disable 'lazy debug info' so the .so has everything.
  62   SYMFLAG = -g -xs
  63 else
  64   ifeq (${VERSION}, debug)
  65     SYMFLAG = -g
  66   else
  67     SYMFLAG =
  68   endif
  69 endif
  70 
  71 # The following variables are defined in the generated flags.make file.


 127 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 505), 1)
 128 # Old Comment: List the libraries in the order the compiler was designed for
 129 # Not sure what the 'designed for' comment is referring too above.
 130 #   The order may not be too significant anymore, but I have placed this
 131 #   older libm before libCrun, just to make sure it's found and used first.
 132 LIBS += -lsocket -lsched -ldl $(LIBM) -lCrun -lthread -ldoor -lc -ldemangle
 133 else
 134 ifeq ($(COMPILER_REV_NUMERIC), 502)
 135 # SC6.1 has it's own libm.so: specifying anything else provokes a name conflict.
 136 LIBS += -ldl -lthread -lsocket -lm -lsched -ldoor -ldemangle
 137 else
 138 LIBS += -ldl -lthread -lsocket $(LIBM) -lsched -ldoor -ldemangle
 139 endif # 502
 140 endif # 505
 141 else
 142 LIBS += -lsocket -lsched -ldl $(LIBM) -lthread -lc -ldemangle
 143 endif # sparcWorks
 144 
 145 LIBS += -lkstat
 146 
 147 LIBS += -lrt
 148 
 149 # By default, link the *.o into the library, not the executable.
 150 LINK_INTO$(LINK_INTO) = LIBJVM
 151 
 152 JDK_LIBDIR = $(JAVA_HOME)/jre/lib/$(LIBARCH)
 153 
 154 #----------------------------------------------------------------------
 155 # jvm_db & dtrace
 156 include $(MAKEFILES_DIR)/dtrace.make
 157 
 158 #----------------------------------------------------------------------
 159 # JVM
 160 
 161 JVM      = jvm
 162 LIBJVM   = lib$(JVM).so
 163 
 164 LIBJVM_DEBUGINFO   = lib$(JVM).debuginfo
 165 LIBJVM_DIZ         = lib$(JVM).diz
 166 ifeq ($(ENABLE_JFR),false)
 167 EXCLUDE_JFR_PATHS:= -o -name jfr -prune
 168 endif
 169 SPECIAL_PATHS:=adlc c1 dist gc_implementation opto shark libadt
 170 
 171 SOURCE_PATHS=\
 172   $(shell find $(HS_COMMON_SRC)/share/vm/* -type d \! \
 173       \( -name DUMMY $(foreach dir,$(SPECIAL_PATHS),-o -name $(dir)) $(EXCLUDE_JFR_PATHS) \))
 174 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/$(Platform_os_family)/vm
 175 SOURCE_PATHS+=$(HS_COMMON_SRC)/os/posix/vm
 176 SOURCE_PATHS+=$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm
 177 SOURCE_PATHS+=$(HS_COMMON_SRC)/os_cpu/$(Platform_os_arch)/vm
 178 
 179 CORE_PATHS=$(foreach path,$(SOURCE_PATHS),$(call altsrc,$(path)) $(path))
 180 CORE_PATHS+=$(GENERATED)/jvmtifiles $(GENERATED)/jfrfiles






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


< prev index next >