Include proper version string
This commit is contained in:
parent
9add3b7667
commit
fda25171b2
2 changed files with 11 additions and 7 deletions
4
Makefile
4
Makefile
|
|
@ -1,11 +1,13 @@
|
|||
GITREV ?= $(shell git describe --dirty --always)
|
||||
GITREV ?= $(shell git describe --dirty --always)
|
||||
BLDDATE ?= $(shell date -I)
|
||||
CR_YEAR ?= $(shell date +%Y)
|
||||
VERSION ?= "v0.1.2"
|
||||
|
||||
CFLAGS ?= -Wall -Wextra -Wpedantic -O2 -std=gnu99
|
||||
CFLAGS += -DGITREV='"$(GITREV)"'
|
||||
CFLAGS += -DBLDDATE='"$(BLDDATE)"'
|
||||
CFLAGS += -DCR_YEAR='"$(CR_YEAR)"'
|
||||
CFLAGS += -DVERSION='$(VERSION)'
|
||||
|
||||
# Soon...
|
||||
# CFLAGS += $(shell pkg-config --cflags libudev)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue