summaryrefslogtreecommitdiffhomepage
path: root/common.mk
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2022-11-04 17:30:29 +0100
committerRoland Reichwein <mail@reichwein.it>2022-11-04 17:30:29 +0100
commitf3d667866711b3eb4b89125ba6e6597a45cd16d9 (patch)
tree858f1d82c8b1408e0db472321e3f5a2fee06e1b3 /common.mk
parentb4cfb3a4d788d999c737d35ff5da632ffd173f7b (diff)
Fixed year handling
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++