burrow-pi-img/deps/examples/cpp-multiCameraServer/Makefile

23 lines
548 B
Makefile
Raw Normal View History

DEPS_CFLAGS?=$(shell env PKG_CONFIG_PATH=/usr/local/frc/lib/pkgconfig pkg-config --cflags wpilibc)
DEPS_LIBS?=$(shell env PKG_CONFIG_PATH=/usr/local/frc/lib/pkgconfig pkg-config --libs wpilibc)
2018-12-08 08:41:12 +00:00
EXE=multiCameraServerExample
DESTDIR?=/home/pi/
.PHONY: clean build install
build: ${EXE}
install: build
cp ${EXE} runCamera ${DESTDIR}
clean:
rm ${EXE} *.o
OBJS=main.o
${EXE}: ${OBJS}
${CXX} -pthread -g -o $@ $^ ${DEPS_LIBS} -Wl,--unresolved-symbols=ignore-in-shared-libs
2018-12-08 08:41:12 +00:00
.cpp.o:
${CXX} -pthread -g -Og -c -o $@ ${CXXFLAGS} ${DEPS_CFLAGS} $<