summaryrefslogtreecommitdiff
path: root/code/test/vid/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'code/test/vid/Makefile')
-rw-r--r--code/test/vid/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/code/test/vid/Makefile b/code/test/vid/Makefile
new file mode 100644
index 0000000..757429d
--- /dev/null
+++ b/code/test/vid/Makefile
@@ -0,0 +1,17 @@
+LIBVPX_HOME=../libvpx
+CFLAGS=-D_V4L2_KERNEL_ -I/usr/src/linux-headers-$(uname -r) -I$(LIBVPX_HOME)
+LDFLAGS=-L$(LIBVPX_HOME)
+deps=$(LIBVPX_HOME)/ivfenc.c.o $(LIBVPX_HOME)/video_writer.c.o
+
+all: cap
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $<
+
+cap: cap.o enc.o tools.o
+ $(CC) -o $@ $< enc.o tools.o $(deps) -lvpx -lm -pthread $(LDFLAGS)
+
+clean:
+ rm -f *.o
+ rm -f cap
+