Integrate version number into makefile (fixes #6)

Running with --version relied on having a VERSION file in current
directory. Having the version number in the makefile ensures it
is built into the binary so that --version works all the time.
This commit is contained in:
David Seguin
2018-06-17 21:13:26 -04:00
parent 92e8b7b8bf
commit b93fe31f7e
3 changed files with 8 additions and 14 deletions

View File

@@ -1,5 +1,7 @@
VERSION = 1.0.0
CC = gcc
CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g
CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g -DTS_VERSION=\"$(VERSION)\"
LDFLAGS = -lncursesw