diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2015-11-11 20:40:59 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2015-11-11 20:40:59 +0000 |
commit | 894d38730fb4153d280fa989517082d300033fc4 (patch) | |
tree | d49bc0b0b60b6b8cfe3e93868810efa0f1144f8e /Makefile | |
parent | 6adc823b4ecd0bd95d56479188665b92d7e07fbf (diff) | |
download | imv-894d38730fb4153d280fa989517082d300033fc4.tar.gz |
Print version information in help
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -11,6 +11,10 @@ BUILDDIR = build SOURCES = $(wildcard src/*.c) OBJECTS = $(patsubst src/%.c,$(BUILDDIR)/%.o,$(SOURCES)) +VERSION = "v0.1.0" + +CFLAGS += -DIMV_VERSION=\"$(VERSION)\" + $(TARGET): $(OBJECTS) @echo "LINKING $@" @$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) |