Makefile: use -j8, allow manual PARALLEL_MAKE val

Set default -j to 8: even on a machine with less cores, using -j8 isn't really
going to slow down the build. On a machine with eight cores, -j8 is going to
speed up significantly.

By using '?=', allow passing a different -jN as PARALLEL_MAKE from the
enviroment.

Change-Id: Idf6a5505742b30d3cb8b80ae98b4e2ad4a4a38e7
This commit is contained in:
Neels Hofmeyr 2018-03-02 00:09:46 +01:00 committed by Harald Welte
parent 6338247395
commit faa379fc8d
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
SUBDIRS=bsc bsc-nat bts ggsn_tests gprs_gb hlr lapdm mgw msc selftest sgsn sysinfo
PARALLEL_MAKE:=-j4
PARALLEL_MAKE ?= -j8
# This master makefile allows you to do things like
# make clean (remove all generated binary, c++ and symlinks)