mirror of
https://github.com/Wind4/vlmcsd.git
synced 2024-11-28 21:11:03 +08:00
Let number of jobs be user-configurable
j16 is an awful lot of jobs and usually results in termination of the compiler. The number of jobs used by make can be set using the command line argument -jN to make, where N is the number of jobs
This commit is contained in:
parent
65228e5c79
commit
5ba3309448
20
GNUmakefile
20
GNUmakefile
@ -1,7 +1,5 @@
|
|||||||
.NOTPARALLEL:
|
.NOTPARALLEL:
|
||||||
|
|
||||||
MAX_THREADS ?= 16
|
|
||||||
|
|
||||||
PROGRAM_NAME ?= bin/vlmcsd
|
PROGRAM_NAME ?= bin/vlmcsd
|
||||||
CLIENT_NAME ?= bin/vlmcs
|
CLIENT_NAME ?= bin/vlmcs
|
||||||
MULTI_NAME ?= bin/vlmcsdmulti
|
MULTI_NAME ?= bin/vlmcsdmulti
|
||||||
@ -104,30 +102,30 @@ endif
|
|||||||
|
|
||||||
.DEFAULT:
|
.DEFAULT:
|
||||||
+@(test -d bin || mkdir bin) & (test -d lib || mkdir lib) & (test -d build || mkdir build)
|
+@(test -d bin || mkdir bin) & (test -d lib || mkdir lib) & (test -d build || mkdir build)
|
||||||
+@$(MAKE) -j$(MAX_THREADS) -C src $@ FROM_PARENT=1 PROGRAM_NAME=$(PROGRAM_NAME) CLIENT_NAME=$(CLIENT_NAME) MULTI_NAME=$(MULTI_NAME) DLL_NAME=$(DLL_NAME) A_NAME=$(A_NAME)
|
+@$(MAKE) -C src $@ FROM_PARENT=1 PROGRAM_NAME=$(PROGRAM_NAME) CLIENT_NAME=$(CLIENT_NAME) MULTI_NAME=$(MULTI_NAME) DLL_NAME=$(DLL_NAME) A_NAME=$(A_NAME)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
+@(test -d bin || mkdir bin) & (test -d lib || mkdir lib) & (test -d build || mkdir build)
|
+@(test -d bin || mkdir bin) & (test -d lib || mkdir lib) & (test -d build || mkdir build)
|
||||||
+@$(MAKE) -j$(MAX_THREADS) -C src $@ FROM_PARENT=1 PROGRAM_NAME=$(PROGRAM_NAME) CLIENT_NAME=$(CLIENT_NAME) MULTI_NAME=$(MULTI_NAME) DLL_NAME=$(DLL_NAME) A_NAME=$(A_NAME)
|
+@$(MAKE) -C src $@ FROM_PARENT=1 PROGRAM_NAME=$(PROGRAM_NAME) CLIENT_NAME=$(CLIENT_NAME) MULTI_NAME=$(MULTI_NAME) DLL_NAME=$(DLL_NAME) A_NAME=$(A_NAME)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
+@$(MAKE) -j$(MAX_THREADS) -C src $@ FROM_PARENT=1 PROGRAM_NAME=$(PROGRAM_NAME) CLIENT_NAME=$(CLIENT_NAME) MULTI_NAME=$(MULTI_NAME) DLL_NAME=$(DLL_NAME) A_NAME=$(A_NAME)
|
+@$(MAKE) -C src $@ FROM_PARENT=1 PROGRAM_NAME=$(PROGRAM_NAME) CLIENT_NAME=$(CLIENT_NAME) MULTI_NAME=$(MULTI_NAME) DLL_NAME=$(DLL_NAME) A_NAME=$(A_NAME)
|
||||||
+@$(MAKE) -j$(MAX_THREADS) -C man $@
|
+@$(MAKE) -C man $@
|
||||||
|
|
||||||
alldocs:
|
alldocs:
|
||||||
+@$(MAKE) -j$(MAX_THREADS) -C man $@
|
+@$(MAKE) -C man $@
|
||||||
|
|
||||||
dosdocs:
|
dosdocs:
|
||||||
+@$(MAKE) -j$(MAX_THREADS) -C man $@
|
+@$(MAKE) -C man $@
|
||||||
|
|
||||||
unixdocs:
|
unixdocs:
|
||||||
+@$(MAKE) -j$(MAX_THREADS) -C man $@
|
+@$(MAKE) -C man $@
|
||||||
|
|
||||||
htmldocs:
|
htmldocs:
|
||||||
+@$(MAKE) -j$(MAX_THREADS) -C man $@
|
+@$(MAKE) -C man $@
|
||||||
|
|
||||||
pdfdocs:
|
pdfdocs:
|
||||||
+@$(MAKE) -j$(MAX_THREADS) -C man $@
|
+@$(MAKE) -C man $@
|
||||||
|
|
||||||
GNUmakefile:
|
GNUmakefile:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user