From f3d667866711b3eb4b89125ba6e6597a45cd16d9 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 4 Nov 2022 17:30:29 +0100 Subject: Fixed year handling --- common.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common.mk') 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++ -- cgit v1.2.3