d3direna/Makefile
2023-11-22 14:36:33 +01:00

8 lines
332 B
Makefile

VPLUS = $(shell git status | awk '/modified:/{print "+"; exit}')
VERSION = "$(shell git log -n 1 | awk '{print substr($$2,1,10);exit}')$(VPLUS)"
DONTWARN = dangling-else parentheses stringop-truncation
CFLAGS = -O3 -Wall -g -fno-exceptions $(patsubst %,-Wno-%,$(DONTWARN)) -DIRENA_VERSION='$(VERSION)'
LDLIBS = -lm
default: irena