summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-15 12:02:28 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-15 12:02:28 +0100
commit1f87f492ec1680ad3144b84219c27d2127459b50 (patch)
treee16d176108ce2561bc351dc3d236ecd1aa01a472 /Makefile
parentc67d3d4f38906b93faaec88bfb5cc84f4673e13c (diff)
downloadcv-1f87f492ec1680ad3144b84219c27d2127459b50.tar.gz
cv-1f87f492ec1680ad3144b84219c27d2127459b50.tar.bz2
cv-1f87f492ec1680ad3144b84219c27d2127459b50.zip
Makefile: Pass in 2 threads if /proc/cpuinfo can not be read
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1f8e061..3ebb15c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
CC = gcc
CFLAGS = -ggdb -std=c99 -pedantic -Wall \
$(shell pkg-config --cflags gdk-pixbuf-2.0 glib-2.0 gthread-2.0) \
- -DN_THREADS=$(shell grep -c ^processor /proc/cpuinfo)
+ -DN_THREADS=$(shell grep -c ^processor /proc/cpuinfo || echo 2)
LDFLAGS = -lm \
$(shell pkg-config --libs gdk-pixbuf-2.0 glib-2.0 gthread-2.0)