make/linux/makefiles/top.make

Print this page
rev 2852 : 7116081: USE_PRECOMPILED_HEADER=0 triggers a single threaded build of the JVM
Summary: Changed the conditional to see if the precompiled header has been specified. Also, removed the unused PrecompiledOption.
Reviewed-by: TBD1, TBD2


  30 #   -generates JVMTI source and docs via jvmti.make (JSR-163)
  31 #   -generate sa-jdi.jar (JDI binding to core files)
  32 
  33 # It assumes the following flags are set:
  34 # CFLAGS Platform_file, Src_Dirs_I, Src_Dirs_V, SYSDEFS, AOUT, Obj_Files
  35 
  36 # -- D. Ungar (5/97) from a file by Bill Bush
  37 
  38 # Don't override the built-in $(MAKE).
  39 # Instead, use "gmake" (or "gnumake") from the command line.  --Rose
  40 #MAKE = gmake
  41 
  42 include $(GAMMADIR)/make/altsrc.make
  43 
  44 TOPDIR      = $(shell echo `pwd`)
  45 GENERATED   = $(TOPDIR)/../generated
  46 VM          = $(GAMMADIR)/src/share/vm
  47 Plat_File   = $(Platform_file)
  48 CDG         = cd $(GENERATED); 
  49 
  50 ifdef USE_PRECOMPILED_HEADER
  51 PrecompiledOption = -DUSE_PRECOMPILED_HEADER
  52 UpdatePCH         = $(MAKE) -f vm.make $(PRECOMPILED_HEADER) $(MFLAGS) 
  53 else
  54 UpdatePCH         = \# precompiled header is not used
  55 PrecompiledOption = 
  56 endif
  57 
  58 Cached_plat = $(GENERATED)/platform.current
  59 
  60 AD_Dir   = $(GENERATED)/adfiles
  61 ADLC     = $(AD_Dir)/adlc
  62 AD_Spec  = $(call altsrc-replace,$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad)
  63 AD_Src   = $(call altsrc-replace,$(HS_COMMON_SRC)/share/vm/adlc)
  64 AD_Names = ad_$(Platform_arch_model).hpp ad_$(Platform_arch_model).cpp
  65 AD_Files = $(AD_Names:%=$(AD_Dir)/%)
  66 
  67 # AD_Files_If_Required/COMPILER1 = ad_stuff
  68 AD_Files_If_Required/COMPILER2 = ad_stuff
  69 AD_Files_If_Required/TIERED = ad_stuff
  70 AD_Files_If_Required = $(AD_Files_If_Required/$(TYPE))
  71 
  72 # Wierd argument adjustment for "gnumake -j..."
  73 adjust-mflags   = $(GENERATED)/adjust-mflags
  74 MFLAGS-adjusted = -r `$(adjust-mflags) "$(MFLAGS)" "$(HOTSPOT_BUILD_JOBS)"`
  75 




  30 #   -generates JVMTI source and docs via jvmti.make (JSR-163)
  31 #   -generate sa-jdi.jar (JDI binding to core files)
  32 
  33 # It assumes the following flags are set:
  34 # CFLAGS Platform_file, Src_Dirs_I, Src_Dirs_V, SYSDEFS, AOUT, Obj_Files
  35 
  36 # -- D. Ungar (5/97) from a file by Bill Bush
  37 
  38 # Don't override the built-in $(MAKE).
  39 # Instead, use "gmake" (or "gnumake") from the command line.  --Rose
  40 #MAKE = gmake
  41 
  42 include $(GAMMADIR)/make/altsrc.make
  43 
  44 TOPDIR      = $(shell echo `pwd`)
  45 GENERATED   = $(TOPDIR)/../generated
  46 VM          = $(GAMMADIR)/src/share/vm
  47 Plat_File   = $(Platform_file)
  48 CDG         = cd $(GENERATED); 
  49 
  50 ifdef PRECOMPILED_HEADER

  51 UpdatePCH         = $(MAKE) -f vm.make $(PRECOMPILED_HEADER) $(MFLAGS) 
  52 else
  53 UpdatePCH         = \# precompiled header is not used

  54 endif
  55 
  56 Cached_plat = $(GENERATED)/platform.current
  57 
  58 AD_Dir   = $(GENERATED)/adfiles
  59 ADLC     = $(AD_Dir)/adlc
  60 AD_Spec  = $(call altsrc-replace,$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad)
  61 AD_Src   = $(call altsrc-replace,$(HS_COMMON_SRC)/share/vm/adlc)
  62 AD_Names = ad_$(Platform_arch_model).hpp ad_$(Platform_arch_model).cpp
  63 AD_Files = $(AD_Names:%=$(AD_Dir)/%)
  64 
  65 # AD_Files_If_Required/COMPILER1 = ad_stuff
  66 AD_Files_If_Required/COMPILER2 = ad_stuff
  67 AD_Files_If_Required/TIERED = ad_stuff
  68 AD_Files_If_Required = $(AD_Files_If_Required/$(TYPE))
  69 
  70 # Wierd argument adjustment for "gnumake -j..."
  71 adjust-mflags   = $(GENERATED)/adjust-mflags
  72 MFLAGS-adjusted = -r `$(adjust-mflags) "$(MFLAGS)" "$(HOTSPOT_BUILD_JOBS)"`
  73