summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8176c1f..823791d 100644
--- a/Makefile
+++ b/Makefile
@@ -7,10 +7,12 @@ ODIR := $(PWD)/bin
SFILES := $(wildcard $(SDIR)/*.cpp)
OFILES := $(patsubst $(SDIR)/%.cpp,$(ODIR)/%.o,$(SFILES))
-OUT := spacelike
+OUT := systemviewer
+GIT_VERSION := "$(shell git describe --abbrev=4 --dirty --always --tags)"
CC := g++
CFLAGS := -std=c++20 -Wall -Wextra -MP -MD -I$(IDIR) -g -Wno-unused
+CFLAGS += -DVERSION=\"$(GIT_VERSION)\"
-include $(SDIR/:.cpp=.d)