diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |