summaryrefslogtreecommitdiffhomepage
path: root/common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index 0a874b8..8df3809 100644
--- a/common.mk
+++ b/common.mk
@@ -45,6 +45,9 @@ endif
CXXFLAGS+=-Wall -I.
+YEAR=$(shell date +"%Y")
+CXXFLAGS+=-DYEAR=\"$(YEAR)\"
+
CXXFLAGS+=-pthread
ifeq ($(CXX),clang++-11)
CXXFLAGS+=-std=c++20 #-stdlib=libc++