diff options
-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 |