2019-02-03 07:37:18 +00:00
|
|
|
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
|
|
|
|
|
2019-02-03 07:37:18 +00:00
|
|
|
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:
|
2019-02-03 07:37:18 +00:00
|
|
|
${CXX} -pthread -g -Og -c -o $@ ${CXXFLAGS} ${DEPS_CFLAGS} $<
|