From a9c31317048a4f1688d253bf158d75bfe068f703 Mon Sep 17 00:00:00 2001 From: Tim Segers Date: Mon, 8 Dec 2025 09:31:13 +0100 Subject: Add version command --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2