summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)