# Enable parallel build. MAKE_JOBS_SAFE= yes # MAKE_JOBS_NUMBER isn't defined at this stage, so we gather the number of CPU cores ourself. _LOCAL_MAKE_JOBS_NUMBER!= ${SYSCTL} -n kern.smp.cpus # Do we set MOZ_MAKE_FLAGS elsewhere in the regular Makefile, or in the central .mk files? # I hope this construct properly propagates any previous assignments to MOZ_MAKE_FLAGS. MOZ_MAKE_FLAGS+= -j ${_LOCAL_MAKE_JOBS_NUMBER} # Finally, tell gmake what we expect from it. MOZ_EXPORT+= MOZ_MAKE_FLAGS="${MOZ_MAKE_FLAGS}" MOZ_MK_OPTIONS+= MOZ_MAKE_FLAGS="${MOZ_MAKE_FLAGS}" # EOF