summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDarell Tan <darell.tan@gmail.com>2011-01-02 22:38:41 +0800
committerDarell Tan <darell.tan@gmail.com>2011-01-02 22:38:41 +0800
commit6f54e6bce3ccf7ad12a8f9a417fed4b4be16c463 (patch)
tree5a997cbe7c2cfb966d33452511e8d48a3df24425 /Makefile
parent81c0027bd200bfc106989baa91ab5306864a11ee (diff)
downloadmdns-repeater-6f54e6bce3ccf7ad12a8f9a417fed4b4be16c463.tar.gz
mdns-repeater-6f54e6bce3ccf7ad12a8f9a417fed4b4be16c463.zip
Added hg revision tag into executable to allow tracking of versions.
See http://mercurial.selenic.com/wiki/KeywordPlan
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b177f91..d49a3bf 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
# Makefile for mdns-repeater
+HGVERSION=$(shell hg id -i)
+
CFLAGS=-Wall
ifdef DEBUG
@@ -9,6 +11,8 @@ CFLAGS+= -Os
LDFLAGS+= -s
endif
+CFLAGS+= -DHGVERSION="\"${HGVERSION}\""
+
.PHONY: all clean
all: mdns-repeater