@endif@
CFLAGS=
-CC=gcc
LEX=flex
MFLAGS=
@endif@
@ifndef@ BUILDID
-BUILDID @shell@ (hg id || echo "unknown") | sed -e "s/+ /-/;s/ /-/" @shellend@
+BUILDID @shell@ (hg id || echo "unknown") | sed -e "s/[()]//g;s/+ /+/g;s/ /-/g" @shellend@
@endif@
MFLAGS+=BUILDID=$(BUILDID)
@endif@
MFLAGS+=CHECKEDSETTINGS=1
-CFLAGS+=-Wall -g -finline-functions -funroll-loops
+CFLAGS+=-I./ -DBUILDID=$(BUILDID) -fPIC
+CFLAGS+=-Wall -g -finline-functions -funroll-loops -Werror=format-security
+
+@ifndef@ CLANG
@ifndef@ NOC99
CFLAGS+=-std=c99
@endif@
-CFLAGS+=-I./ -DBUILDID=$(BUILDID) -fPIC -export-dynamic
+CFLAGS+=-export-dynamic
+@endif@
+