LIBS=libconfuse opencv4 override CXXFLAGS += -c -Wall -fPIC -std=c++20 -Wno-deprecated-enum-enum-conversion `pkg-config $(LIBS) --cflags` override LDFLAGS += `pkg-config $(LIBS) --libs` SOURCES=$(wildcard src/*.cc) OBJECTS=$(SOURCES:.cc=.o) DEPS = $(OBJECTS:.o=.d) EXECUTABLE=annotator prefix ?= /usr exec_prefix ?= $(prefix) bindir ?= $(exec_prefix)/bin $(EXECUTABLE): $(OBJECTS) $(CXX) $(OBJECTS) -o $@ $(LDFLAGS) -include $(DEPS) install: $(EXECUTABLE) install -d $(DESTDIR)$(bindir) install -m 755 $(EXECUTABLE) $(DESTDIR)$(bindir) .PHONY: clean clean: $(RM) $(OBJECTS) $(DEPS) $(EXECUTABLE)