-ifeq ($(INCPATH),)
+@ifndef@ INCPATH
INCPATH=../
-endif
+@endif@
@include@ @includel@$(INCPATH)configure.mk@includel@
@sinclude@ @includel@$(INCPATH)settings.mk@includel@
-ifeq ($(BUILDID),)
-BUILDID := \"$(shell (hg id || echo "unknown") | sed -e "s/ /-/;s/+-/-/")\"
-export BUILDID
-endif
+@ifndef@ BUILDID
+BUILDID @shell@ (hg id || echo "unknown") | sed -e "s/+ /-/" @shellend@
+@endif@
CC=gcc
-CFLAGS+=-Wall -g -fPIC -export-dynamic -finline-functions -funroll-loops -std=c99 -I./ -DBUILDID=${BUILDID}
-
-export CC CFLAGS
+CFLAGS+=-Wall -g -fPIC -export-dynamic -finline-functions -funroll-loops -std=c99 -I./ -DBUILDID=$(BUILDID)
#define __VERSION_H
#ifndef BUILDID
-#define BUILDID "unknown"
+#define _BUILDID "unknown"
+#else
+#define _BUILDID "BUILDID"
#endif
-#define MODULE_VERSION(id) const char *_version(void) { return (id[0]=='\0')?BUILDID:(id "/" BUILDID); };
+#define MODULE_VERSION(id) const char *_version(void) { return (id[0]=='\0')?_BUILDID:(id "/" _BUILDID); };
#endif