summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6d85777eb008b1a839ff388482cf0d9c706b2c95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
client2: client2.cpp lib.cpp ringbuf.h contrib/OpenHMD/src/.libs/libopenhmd.a
	g++ -std=c++11 -g client2.cpp lib.cpp -lglfw -lGLEW -lGLU -lGL `pkg-config --libs opencv` -lm -DOHMD_STATIC -Icontrib/OpenHMD/include/ contrib/OpenHMD/src/.libs/libopenhmd.a -lhidapi-libusb -lrt -lpthread -o client2
regulator_test: regulator_test.cpp
	g++ -std=c++11 -g regulator_test.cpp `pkg-config --libs opencv` -lm -o regulator_test
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 && ./autogen.sh && ./configure --enable-static=yes && make -j5

clean:
	rm -f simple.o simple

distclean: clean
	cd contrib/OpenHMD && make distclean