summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4a6b4bf..2058de0 100644
--- a/Makefile
+++ b/Makefile
@@ -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