aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorMatthias P. Braendli (think) <matthias@mpb.li>2013-11-08 18:36:28 +0100
committerMatthias P. Braendli (think) <matthias@mpb.li>2013-11-08 18:36:28 +0100
commit76efba9975aa61c1f247b875ccebaddd0d2036c6 (patch)
treeb760fc5c42ecada53d881e70a9c84340cbe8a465 /src/Makefile.am
parentd930ee6b9a52f0eb9939b3fe55afd2361944edb2 (diff)
downloaddabmux-76efba9975aa61c1f247b875ccebaddd0d2036c6.tar.gz
dabmux-76efba9975aa61c1f247b875ccebaddd0d2036c6.tar.bz2
dabmux-76efba9975aa61c1f247b875ccebaddd0d2036c6.zip
insert hg revision into version string
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 4815e96..65cb221 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -21,6 +21,12 @@
bin_PROGRAMS=CRC-DabMux CRC-BridgeTest
+if IS_HG_REPO
+HGVERSION_FLAGS = -DHGVERSION="\"`hg parents --template '-{node|short}'`\""
+else
+HGVERSION_FLAGS = -DHGVERSION="\"-modified\""
+endif
+
FEC_FLAGS =
FEC_LIBS =-lfec
@@ -30,7 +36,7 @@ else
ZMQ_LIBS =
endif
-CRC_DabMux_CPPFLAGS =-I$(FARSYNC_DIR)
+CRC_DabMux_CPPFLAGS =-I$(FARSYNC_DIR) $(HGVERSION_FLAGS)
CRC_DabMux_LDADD =$(FEC_LIBS) $(ZMQ_LIBS) -lpthread
CRC_DabMux_SOURCES =DabMux.cpp \
dabInput.h dabInput.cpp \