summaryrefslogtreecommitdiff
path: root/ecp/test/vid/Makefile
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-08-05 03:38:22 +0200
committerUros Majstorovic <majstor@majstor.org>2020-08-05 03:38:22 +0200
commit5cd610a07468137066ea4daa5176c3e7045113b0 (patch)
treea6a5b572572f8f37ec2cb87332fa46e9bcc53aa7 /ecp/test/vid/Makefile
parent2473a7d5c51806ab8651cd3c4e07a15b62084eb5 (diff)
ecp moved to root; fixed utils and tests
Diffstat (limited to 'ecp/test/vid/Makefile')
-rw-r--r--ecp/test/vid/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/ecp/test/vid/Makefile b/ecp/test/vid/Makefile
new file mode 100644
index 0000000..a9b92eb
--- /dev/null
+++ b/ecp/test/vid/Makefile
@@ -0,0 +1,23 @@
+include ../../ecp/Makefile.platform
+
+LIBVPX_HOME = /opt/my/libvpx
+CFLAGS += -D_V4L2_KERNEL_ -I/usr/src/linux-headers-$(uname -r) -I$(LIBVPX_HOME) -I/opt/local/include/SDL2 -I../../ecp -I../../util -Wno-int-to-void-pointer-cast
+LDFLAGS += -L$(LIBVPX_HOME) -L/opt/local/lib
+
+dep=../init_vconn.o ../../ecp/build-posix/*.a ../../util/libecputil.a
+
+all: cap
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $<
+
+cap: cap.o enc.o tools.o server.o
+ $(CC) -o $@ $< enc.o tools.o server.o $(dep) -lvpx $(LDFLAGS)
+
+client: client.o display.o tools.o
+ $(CC) -o $@ $< display.o tools.o $(dep) -lvpx -lSDL2 $(LDFLAGS)
+
+clean:
+ rm -f *.o
+ rm -f cap client
+