]> jfr.im git - irc/quakenet/newserv.git/blobdiff - build.mk.in
fix indentation
[irc/quakenet/newserv.git] / build.mk.in
index 2942940cb17bc3b70b73b77597e3963408e929b6..f9b3cefe632c11d17c1fb77986787207bef3fe60 100644 (file)
@@ -1,9 +1,25 @@
-@include@ @includel@configure.mk@includel@
-@sinclude@ @includel@settings.mk@includel@
-
-BUILDID := \"$(shell (hg id || echo "unknown") | sed -e "s/ /-/;s/+-/-/")\"
+@ifndef@ INCPATH
+INCPATH=../
+@endif@
 
+CFLAGS=
 CC=gcc
-CFLAGS+=-Wall -g -fPIC -export-dynamic -finline-functions -funroll-loops -std=c99 -I./ -DBUILDID=${BUILDID}
+LEX=flex
+
+@sinclude@ @includel@$(INCPATH)settings.mk@includel@
+
+@ifndef@ BUILDID
+BUILDID @shell@ (hg id || echo "unknown") | sed -e "s/+ /-/;s/ /-/" @shellend@
+@endif@
+
+.SUFFIXES: .so .y .l
+
+.o.so:
+       @-ldline-@ $(LDFLAGS)
+
+.y.c:  ;
+
+.l.c:  ;
 
-export CC CFLAGS
+CFLAGS+=-Wall -g -finline-functions -funroll-loops -std=c99 -I./ -DBUILDID=$(BUILDID)
+CFLAGS+=-fPIC -export-dynamic