Fix: version flag is now set with compiler flag

This commit is contained in:
2026-04-23 20:06:03 +02:00
parent 0eac451751
commit ae168f92ce
3 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
CC := gcc
VERSION := $(shell git describe --tags --always --dirty)
CFLAGS := -Wall -Wextra -O2 \
$(shell pkg-config --cflags libcjson ncurses)
-DVERSION=\"$(VERSION)\" \
$(shell pkg-config --cflags libcjson ncurses)
LDFLAGS := $(shell pkg-config --libs libcjson ncurses)