Scope-eye.net Git Repository
/
liskon_frotz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2559eb2
)
Get the number of CPUs available with Linux. Not doing anything with it yet.
author
David Griffith
<dave@661.org>
Mon, 15 Jul 2019 09:42:46 +0000
(
02:42
-0700)
committer
David Griffith
<dave@661.org>
Mon, 15 Jul 2019 09:45:07 +0000
(
02:45
-0700)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 5da15b63133c9d76efb2fe5876c2a43e7a6a82a2..a368d1fb2ed684e6e28d8f36ce2412839550439b 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-17,6
+17,9
@@
ifneq ($(OS),Windows_NT)
ifeq ($(UNAME_S),NetBSD)
CFLAGS += -D_NETBSD_SOURCE
endif
+ ifeq ($(UNAME_S),Linux)
+ NPROCS = $(shell grep -c ^processor /proc/cpuinfo)
+ endif
endif
# strdup, strndup
@@
-123,6
+126,7
@@
AR ?= $(shell which ar)
export CC
export CFLAGS
export CURSES_CFLAGS
+export NPROCS
export MAKEFLAGS
export AR
export RANLIB