LIBS=libvirt ncurses override CXXFLAGS += -std=c++20 -MMD -Wall `pkg-config $(LIBS) --cflags` override LDFLAGS += -pthread -lbible `pkg-config $(LIBS) --libs` SOURCES=$(wildcard src/*.cc) OBJECTS=$(SOURCES:.cc=.o) DEPS = $(OBJECTS:.o=.d) EXECUTABLE=nerdhack prefix ?= /usr exec_prefix ?= $(prefix) bindir ?= $(exec_prefix)/bin $(EXECUTABLE): $(OBJECTS) $(CXX) $(OBJECTS) -o $@ $(LDFLAGS) -include $(DEPS) #install: $(EXECUTABLE) .PHONY: clean clean: $(RM) $(OBJECTS) $(DEPS) $(EXECUTABLE)