summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-03-17 17:35:32 +0100
committerFlorian Jung <flo@windfisch.org>2015-03-17 17:35:32 +0100
commit383587591e887d2e76f3ff37b8ccc5308bafb687 (patch)
tree116e5f312f53f5277eefcb780d40ec9eea44b887 /Makefile
parent19c9b57b5787371c2e645e523478ed5c0acd3f77 (diff)
add OpenHMD I
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e234fa9..20bc129 100644
--- a/Makefile
+++ b/Makefile
@@ -2,3 +2,18 @@ client2: client2.cpp lib.cpp ringbuf.h
g++ -std=c++11 -g client2.cpp lib.cpp -lglfw -lGLEW -lGLU -lGL `pkg-config --libs opencv` -lm -o client2
client: client.c
gcc client.c -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm -o client
+
+simple: simple.o contrib/OpenHMD/src/.libs/libopenhmd.a
+ gcc -std=gnu99 -g -O2 -o simple simple.o contrib/OpenHMD/src/.libs/libopenhmd.a -lhidapi-libusb -lrt -lpthread -lm
+
+simple.o: simple.c
+ gcc -std=gnu99 -Wall -DOHMD_STATIC -Icontrib/OpenHMD/include/ -g -O2 -c -o simple.o simple.c
+
+contrib/OpenHMD/src/.libs/libopenhmd.a:
+ cd contrib/OpenHMD && ./configure --enable-static=yes && make -j5
+
+clean:
+ rm -f simple.o simple
+
+distclean: clean
+ cd contrib/OpenHMD && make distclean