< prev index next >

make/linux/makefiles/vm.make

Print this page




  28 # Common build rules.
  29 MAKEFILES_DIR=$(GAMMADIR)/make/$(Platform_os_family)/makefiles
  30 include $(MAKEFILES_DIR)/rules.make
  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 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   -include $(HS_ALT_MAKE)/$(Platform_os_family)/makefiles/$(BUILDARCH).make

  50 endif
  51 
  52 # set VPATH so make knows where to look for source files
  53 # Src_Dirs_V is everything in src/share/vm/*, plus the right os/*/vm and cpu/*/vm
  54 # The adfiles directory contains ad_<arch>.[ch]pp.
  55 # The jvmtifiles directory contains jvmti*.[ch]pp
  56 Src_Dirs_V += $(GENERATED)/adfiles $(GENERATED)/jvmtifiles $(GENERATED)/tracefiles
  57 VPATH += $(Src_Dirs_V:%=%:)
  58 
  59 # set INCLUDES for C preprocessor.
  60 Src_Dirs_I += $(GENERATED)
  61 # The order is important for the precompiled headers to work.
  62 INCLUDES += $(PRECOMPILED_HEADER_DIR:%=-I%) $(Src_Dirs_I:%=-I%)
  63 
  64 # SYMFLAG is used by {jsig,saproc}.make
  65 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
  66   # always build with debug info when we can create .debuginfo files
  67   SYMFLAG = -g
  68 else
  69   ifeq (${VERSION}, debug)




  28 # Common build rules.
  29 MAKEFILES_DIR=$(GAMMADIR)/make/$(Platform_os_family)/makefiles
  30 include $(MAKEFILES_DIR)/rules.make
  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 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)


< prev index next >