hotspot/make/solaris/makefiles/top.make

Print this page




  45 VM          = $(GAMMADIR)/src/share/vm
  46 Plat_File   = $(Platform_file)
  47 CDG         = cd $(GENERATED);
  48 
  49 Cached_plat = $(GENERATED)/platform.current
  50 
  51 AD_Dir   = $(GENERATED)/adfiles
  52 ADLC     = $(AD_Dir)/adlc
  53 AD_Spec  = $(call altsrc-replace,$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad)
  54 AD_Src   = $(call altsrc-replace,$(HS_COMMON_SRC)/share/vm/adlc)
  55 AD_Names = ad_$(Platform_arch_model).hpp ad_$(Platform_arch_model).cpp
  56 AD_Files = $(AD_Names:%=$(AD_Dir)/%)
  57 
  58 # AD_Files_If_Required/COMPILER1 = ad_stuff
  59 AD_Files_If_Required/COMPILER2 = ad_stuff
  60 AD_Files_If_Required/TIERED = ad_stuff
  61 AD_Files_If_Required = $(AD_Files_If_Required/$(TYPE))
  62 
  63 # Wierd argument adjustment for "gnumake -j..."
  64 adjust-mflags   = $(GENERATED)/adjust-mflags
  65 MFLAGS-adjusted = -r `$(adjust-mflags) "$(MFLAGS)" "$(HOTSPOT_BUILD_JOBS)"`






  66 
  67 
  68 # default target: update lists, make vm
  69 # done in stages to force sequential order with parallel make
  70 #
  71 
  72 default: vm_build_preliminaries the_vm
  73         @echo All done.
  74 
  75 # This is an explicit dependency for the sake of parallel makes.
  76 vm_build_preliminaries:  checks $(Cached_plat) $(AD_Files_If_Required) jvmti_stuff trace_stuff sa_stuff dtrace_stuff
  77         @# We need a null action here, so implicit rules don't get consulted.
  78 
  79 $(Cached_plat): $(Plat_File)
  80         $(CDG) $(CP) $(Plat_File) $(Cached_plat)
  81 
  82 # make AD files as necessary
  83 ad_stuff: $(Cached_plat) $(adjust-mflags)
  84         @$(MAKE) -f adlc.make $(MFLAGS-adjusted)
  85 


 119 
 120 # next rules support "make foo.[oi]"
 121 
 122 %.o %.i %.s:
 123         $(MAKE) -f vm.make $(MFLAGS) $@
 124         #$(MAKE) -f vm.make $@
 125 
 126 # this should force everything to be rebuilt
 127 clean:
 128         rm -f $(GENERATED)/*.class
 129         $(MAKE) -f vm.make $(MFLAGS) clean
 130 
 131 # just in case it doesn't, this should do it
 132 realclean:
 133         $(MAKE) -f vm.make $(MFLAGS) clean
 134         rm -fr $(GENERATED)
 135 
 136 .PHONY: default vm_build_preliminaries
 137 .PHONY: lists ad_stuff jvmti_stuff trace_stuff sa_stuff the_vm clean realclean
 138 .PHONY: checks check_os_version install




  45 VM          = $(GAMMADIR)/src/share/vm
  46 Plat_File   = $(Platform_file)
  47 CDG         = cd $(GENERATED);
  48 
  49 Cached_plat = $(GENERATED)/platform.current
  50 
  51 AD_Dir   = $(GENERATED)/adfiles
  52 ADLC     = $(AD_Dir)/adlc
  53 AD_Spec  = $(call altsrc-replace,$(HS_COMMON_SRC)/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad)
  54 AD_Src   = $(call altsrc-replace,$(HS_COMMON_SRC)/share/vm/adlc)
  55 AD_Names = ad_$(Platform_arch_model).hpp ad_$(Platform_arch_model).cpp
  56 AD_Files = $(AD_Names:%=$(AD_Dir)/%)
  57 
  58 # AD_Files_If_Required/COMPILER1 = ad_stuff
  59 AD_Files_If_Required/COMPILER2 = ad_stuff
  60 AD_Files_If_Required/TIERED = ad_stuff
  61 AD_Files_If_Required = $(AD_Files_If_Required/$(TYPE))
  62 
  63 # Wierd argument adjustment for "gnumake -j..."
  64 adjust-mflags   = $(GENERATED)/adjust-mflags
  65 # If SPEC is set, it's from configure and it's already controlling concurrency
  66 # for us. Skip setting -j with HOTSPOT_BUILD_JOBS.
  67 ifeq ($(SPEC), )
  68   MFLAGS-adjusted = -r `$(adjust-mflags) "$(MFLAGS)" "$(HOTSPOT_BUILD_JOBS)"`
  69 else
  70   MFLAGS-adjusted = -r $(MFLAGS)
  71 endif
  72 
  73 
  74 # default target: update lists, make vm
  75 # done in stages to force sequential order with parallel make
  76 #
  77 
  78 default: vm_build_preliminaries the_vm
  79         @echo All done.
  80 
  81 # This is an explicit dependency for the sake of parallel makes.
  82 vm_build_preliminaries:  checks $(Cached_plat) $(AD_Files_If_Required) jvmti_stuff trace_stuff sa_stuff dtrace_stuff
  83         @# We need a null action here, so implicit rules don't get consulted.
  84 
  85 $(Cached_plat): $(Plat_File)
  86         $(CDG) $(CP) $(Plat_File) $(Cached_plat)
  87 
  88 # make AD files as necessary
  89 ad_stuff: $(Cached_plat) $(adjust-mflags)
  90         @$(MAKE) -f adlc.make $(MFLAGS-adjusted)
  91 


 125 
 126 # next rules support "make foo.[oi]"
 127 
 128 %.o %.i %.s:
 129         $(MAKE) -f vm.make $(MFLAGS) $@
 130         #$(MAKE) -f vm.make $@
 131 
 132 # this should force everything to be rebuilt
 133 clean:
 134         rm -f $(GENERATED)/*.class
 135         $(MAKE) -f vm.make $(MFLAGS) clean
 136 
 137 # just in case it doesn't, this should do it
 138 realclean:
 139         $(MAKE) -f vm.make $(MFLAGS) clean
 140         rm -fr $(GENERATED)
 141 
 142 .PHONY: default vm_build_preliminaries
 143 .PHONY: lists ad_stuff jvmti_stuff trace_stuff sa_stuff the_vm clean realclean
 144 .PHONY: checks check_os_version install
 145 
 146 .NOTPARALLEL: