all: video PKG_CFLAGS := $(shell pkg-config --cflags opencv4) PKG_LIBS := $(shell pkg-config --libs opencv4) video: main.cpp g++ -g -o video main.cpp $(PKG_CFLAGS) $(PKG_LIBS) -lpaho-mqttpp3 -lpaho-mqtt3a -lpthread mv video ../bin/ clean: rm -rf ../bin/video