From c644379e79262a7478a7fb9ea8001f315fdb6eaf Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 28 Mar 2024 16:18:36 -0400 Subject: Initial commit --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3b9a592 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +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) -- cgit v1.2.3