7c5b84d7ef
- Build with -pthread - Detach the thread to avoid std::thread exception - Remove __RASPBIAN__ check (it's not defined by the on-Pi compiler)
19 lines
335 B
Makefile
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 $<
|