diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-03-14 20:15:03 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-03-14 20:25:56 +0100 |
commit | 172e09874fdecaeadf131a98ab597578770930af (patch) | |
tree | 122dee15733c6fa6904e7c907be64758a787cf61 | |
parent | 512daa03c2e79352c2a40e6eb61b9604d7eb1f7a (diff) | |
download | cv-172e09874fdecaeadf131a98ab597578770930af.tar.gz cv-172e09874fdecaeadf131a98ab597578770930af.tar.bz2 cv-172e09874fdecaeadf131a98ab597578770930af.zip |
Makefile: Pass N_THREADS define as number of cpus
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,6 +1,9 @@ CC = gcc -CFLAGS = -ggdb -std=c99 -pedantic -Wall `pkg-config --cflags gtk+-2.0 glib-2.0` -LDFLAGS = `pkg-config --libs gtk+-2.0 glib-2.0` -lm +CFLAGS = -ggdb -std=c99 -pedantic -Wall \ + $(shell pkg-config --cflags gtk+-2.0 glib-2.0) \ + -DN_THREADS=$(shell grep -c ^processor /proc/cpuinfo) +LDFLAGS = -lm \ + $(shell pkg-config --libs gtk+-2.0 glib-2.0) PROGS = wimmel wimmel_gl OBJS = wimmel.o wimmel_gl.o util.o |