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