Changeset 302 for trunk/openjdk


Ignore:
Timestamp:
Jun 27, 2011, 5:52:43 PM (14 years ago)
Author:
dmik
Message:

hotspot/make: Added support for parallel make jobs (the number of jobs is set using the HOTSPOT_BUILD_JOBS environment variable).

Location:
trunk/openjdk/hotspot/make/os2/makefiles
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/hotspot/make/os2/makefiles/generated.make

    r43 r302  
    3535
    3636ifeq ($(filter-out compiler2 tiered,$(Variant)),)
    37 default:: includeDB.current Dependencies incls/ad_$(Platform_arch_model).cpp incls/dfa_$(Platform_arch_model).cpp $(JvmtiGeneratedFiles)
     37default:: includeDB.current incls/ad_$(Platform_arch_model).cpp incls/dfa_$(Platform_arch_model).cpp $(JvmtiGeneratedFiles)
    3838else
    39 default:: includeDB.current Dependencies $(JvmtiGeneratedFiles)
     39default:: includeDB.current $(JvmtiGeneratedFiles)
    4040endif
    4141
     
    7979endif
    8080
    81 includeDB.current Dependencies: classes/MakeDeps.class $(IncludeDBs)
     81includeDB.current: classes/MakeDeps.class $(IncludeDBs)
    8282        cat $(IncludeDBs) > includeDB
    8383        if [ -d incls ]; then rm -rf incls; fi
  • trunk/openjdk/hotspot/make/os2/makefiles/shared.make

    r222 r302  
    3131endif
    3232
     33MAKE_JOBS=
     34ifdef HOTSPOT_BUILD_JOBS
     35MAKE_JOBS=-j$(HOTSPOT_BUILD_JOBS)
     36endif
     37
    3338ifdef SUBDIRS
    3439$(SUBDIRS): FORCE
     
    3641        if [ ! -r $@/local.make ]; then echo \# Empty > $@/local.make; fi; \
    3742        echo $(MAKE) $(ACTION) in $(DIR)/$@; \
    38         cd $@; $(MAKE) -f $(WorkSpace)/make/os2/makefiles/$@.make $(ACTION) DIR=$(DIR)/$@ BUILD_FLAVOR=$(BUILD_FLAVOR)
     43        cd $@; $(MAKE) $(MAKE_JOBS) -f $(WorkSpace)/make/os2/makefiles/$@.make $(ACTION) DIR=$(DIR)/$@ BUILD_FLAVOR=$(BUILD_FLAVOR)
    3944endif
    4045
     
    5863$(DEFAULTACTIONS) $(ACTIONS)::
    5964ifdef SUBDIRS
    60         @$(MAKE) ACTION=$@ DIR=$(DIR)
     65        @$(MAKE) $(MAKE_JOBS) ACTION=$@ DIR=$(DIR)
    6166endif
    6267
Note: See TracChangeset for help on using the changeset viewer.