summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-04-04 17:21:35 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-04-04 17:48:43 +0200
commitf829f179582f7cb03c87a67b67e54a09c624bb13 (patch)
treecf6fca2e5432930e50d0869ad413319762a27cc8 /Makefile
parent1bbdf627f65a731be93dbbab386618e5e7ea7fd6 (diff)
downloadcv-f829f179582f7cb03c87a67b67e54a09c624bb13.tar.gz
cv-f829f179582f7cb03c87a67b67e54a09c624bb13.tar.bz2
cv-f829f179582f7cb03c87a67b67e54a09c624bb13.zip
Add capture.c: OpenCV capture displayed with GTK+3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index fce35b1..65c0cfe 100644
--- a/Makefile
+++ b/Makefile
@@ -5,14 +5,15 @@ CFLAGS = -ggdb -std=c99 -pedantic -Wall $(DEFINES) \
LDFLAGS = $(LIBS) -lm \
$(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
+PROGS = wimmel wimmel_gl roi capture
+OBJS = wimmel.o wimmel_gl.o util.o roi.o capture.o
all: $(PROGS)
wimmel: wimmel.o util.o
wimmel_gl: wimmel_gl.o util.o
roi: roi.o
+capture: capture.o
.PHONY: clean all
@@ -24,12 +25,17 @@ roi: roi.o
wimmel_gl:
- $(CC) $(LDFLAGS) `pkg-config --cflags --libs egl glesv2` -o $@ $+
+ $(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 $@ $+
+capture.o: capture.c
+ $(CC) $(CFLAGS) `pkg-config --cflags gtk+-3.0 opencv` -c -o $@ $<
+capture:
+ $(CC) $(LDFLAGS) `pkg-config --libs gtk+-3.0 opencv` -o $@ $+
+
clean:
rm -f $(PROGS) $(OBJS)