summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-31 13:50:14 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-31 13:50:14 +0200
commit80c4e624b4c4d4ac4e59da127db6778884f78487 (patch)
treee78b28afca5767b90d7c8570fcfaa3249e2fe215 /Makefile
parent8e6cc2b801c3afa1ec889c434167b06d9b3fb8bc (diff)
downloadcv-80c4e624b4c4d4ac4e59da127db6778884f78487.tar.gz
cv-80c4e624b4c4d4ac4e59da127db6778884f78487.tar.bz2
cv-80c4e624b4c4d4ac4e59da127db6778884f78487.zip
roi: Use gtk3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1d9e0a0..fce35b1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
CC = gcc
CFLAGS = -ggdb -std=c99 -pedantic -Wall $(DEFINES) \
- $(shell pkg-config --cflags gdk-pixbuf-2.0 gtk+-2.0 glib-2.0 gthread-2.0) \
+ $(shell pkg-config --cflags gdk-pixbuf-2.0 glib-2.0 gthread-2.0) \
-DN_THREADS=$(shell grep -c ^processor /proc/cpuinfo || echo 2)
LDFLAGS = $(LIBS) -lm \
- $(shell pkg-config --libs gdk-pixbuf-2.0 gtk+-2.0 glib-2.0 gthread-2.0)
+ $(shell pkg-config --libs gdk-pixbuf-2.0 glib-2.0 gthread-2.0)
PROGS = wimmel wimmel_gl roi
OBJS = wimmel.o wimmel_gl.o util.o roi.o
@@ -26,5 +26,10 @@ roi: roi.o
wimmel_gl:
$(CC) $(LDFLAGS) `pkg-config --cflags --libs egl glesv2` -o $@ $+
+roi.o: roi.c
+ $(CC) $(CFLAGS) `pkg-config --cflags gtk+-3.0` -c -o $@ $<
+roi:
+ $(CC) $(LDFLAGS) `pkg-config --libs gtk+-3.0` -o $@ $+
+
clean:
rm -f $(PROGS) $(OBJS)