diff options
author | Your Name <you@example.com> | 2024-03-28 16:18:36 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2024-03-28 16:18:36 -0400 |
commit | c644379e79262a7478a7fb9ea8001f315fdb6eaf (patch) | |
tree | d71b15e396ebca28b76f0b5fd1971dd352877e4e /Makefile | |
download | nerdhack-master.tar.gz nerdhack-master.tar.bz2 nerdhack-master.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
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) |