mk: add version numbers to compiler flags (#162)
This commit is contained in:
parent
ee6b5e0a91
commit
7394ee407a
2 changed files with 6 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -10,7 +10,7 @@ VER_MINOR := 5
|
|||
VER_PATCH := 9
|
||||
|
||||
PROJECT := re
|
||||
VERSION := 0.5.9
|
||||
VERSION := $(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
|
||||
|
||||
MK := mk/re.mk
|
||||
|
||||
|
|
5
mk/re.mk
5
mk/re.mk
|
@ -610,6 +610,11 @@ CCACHE := $(shell [ -e /usr/bin/ccache ] 2>/dev/null \
|
|||
|| [ -e /opt/local/bin/ccache ] \
|
||||
&& echo "ccache")
|
||||
CFLAGS += -DVERSION=\"$(VERSION)\"
|
||||
CFLAGS += \
|
||||
-DVER_MAJOR=$(VER_MAJOR) \
|
||||
-DVER_MINOR=$(VER_MINOR) \
|
||||
-DVER_PATCH=$(VER_PATCH)
|
||||
|
||||
|
||||
# Enable gcov Coverage testing
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue