vanhofen
3 years ago
4 changed files with 32 additions and 25 deletions
@ -1,3 +0,0 @@ |
|||||
|
|
||||
include package/pkg-autotools.mk |
|
||||
include package/pkg-cmake.mk |
|
@ -0,0 +1,29 @@ |
|||||
|
ifndef MAKE |
||||
|
MAKE := make |
||||
|
endif |
||||
|
ifndef HOSTMAKE |
||||
|
HOSTMAKE = $(MAKE) |
||||
|
endif |
||||
|
HOSTMAKE := $(shell which $(HOSTMAKE) || type -p $(HOSTMAKE) || echo make) |
||||
|
|
||||
|
# If BS_JLEVEL is 0, scale the maximum concurrency with the number of
|
||||
|
# CPUs. An additional job is used in order to keep processors busy
|
||||
|
# while waiting on I/O.
|
||||
|
# If the number of processors is not available, assume one.
|
||||
|
BS_JLEVEL ?= 0 |
||||
|
ifeq ($(BS_JLEVEL),0) |
||||
|
PARALLEL_JOBS := $(shell echo \
|
||||
|
$$((1 + `getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1`))) |
||||
|
else |
||||
|
PARALLEL_JOBS := $(BS_JLEVEL) |
||||
|
endif |
||||
|
|
||||
|
MAKE1 := $(HOSTMAKE) -j1 |
||||
|
override MAKE = $(HOSTMAKE) \
|
||||
|
$(if $(findstring j,$(filter-out --%,$(MAKEFLAGS))),,-j$(PARALLEL_JOBS)) |
||||
|
|
||||
|
MAKEFLAGS += --no-print-directory |
||||
|
#MAKEFLAGS += --silent
|
||||
|
|
||||
|
include package/pkg-autotools.mk |
||||
|
include package/pkg-cmake.mk |
Loading…
Reference in new issue