burrow-pi-img/deps/examples/cpp-multiCameraServer/Makefile
Peter Johnson 7c5b84d7ef
Fix the C++ example (#41)
- Build with -pthread
- Detach the thread to avoid std::thread exception
- Remove __RASPBIAN__ check (it's not defined by the on-Pi compiler)
2019-01-10 00:10:42 -08:00

19 lines
335 B
Makefile

EXE=multiCameraServerExample
DESTDIR?=/home/pi/
.PHONY: clean build install
build: ${EXE}
install: build
cp ${EXE} runCamera ${DESTDIR}
clean:
rm ${EXE} *.o
${EXE}: main.o
${CXX} -pthread -o $@ $< -L/usr/local/frc/lib -lcameraserver -lcscore -lntcore -lwpiutil
.cpp.o:
${CXX} -pthread -O -c -o $@ -I/usr/local/frc/include $<