blob: 3b9a592a259a729cd09fc01e48678cf8a0754ed8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)
|