aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 28209e9..a554cda 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
+VERSION := $(shell git describe --tags --dirty --always)
+
PREFIX ?= /usr/local
WFLAGS ?= -Wall -Wextra -Wmissing-prototypes -Wdiv-by-zero -Wbad-function-cast -Wcast-align -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wnested-externs -Wno-unknown-pragmas -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wswitch-enum -Wno-type-limits
CFLAGS ?= -O3 -mtune=native -fno-exceptions -flto $(WFLAGS)
+CFLAGS += -DVERSION_STRING=\"$(VERSION)\"
CPPFLAGS += -I. -Iext
STRIP ?= strip