Makefile.in
changeset 370 f3cec8694f65
parent 369 569e7d9e2406
child 649 83688d55d1ad
--- a/Makefile.in	Thu Aug 25 08:56:28 2011 +0200
+++ b/Makefile.in	Thu Aug 25 17:22:44 2011 +0200
@@ -220,9 +220,11 @@
 top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-AM_CXXFLAGS = -g -Wall -Wpointer-arith -Wwrite-strings -Wno-unused 
+AM_CXXFLAGS = -g -Wall -Wpointer-arith -Wwrite-strings -Wno-unused \
+	-DHGVERSION="\"${HGVERSION}\""
 SUBDIRS = absyntax absyntax_utils stage1_2 stage3 stage4 
 ACLOCAL_AMFLAGS = -I config
+HGVERSION = $(shell hg -R $(top_srcdir) parents --template '{node|short}' 2> /dev/null || grep node $(top_srcdir)/.hg_archival.txt 2> /dev/null || true )
 iec2c_LDADD = stage1_2/libstage1_2.a \
 	stage3/libstage3.a \
 	stage4/generate_c/libstage4_c.a \