]> jfr.im git - irc/quakenet/newserv.git/blobdiff - build.mk.in
fix indentation
[irc/quakenet/newserv.git] / build.mk.in
index 6b5917bf4a76fb36f4e0292f56cd942946c9d4d8..f9b3cefe632c11d17c1fb77986787207bef3fe60 100644 (file)
@@ -3,6 +3,8 @@ INCPATH=../
 @endif@
 
 CFLAGS=
+CC=gcc
+LEX=flex
 
 @sinclude@ @includel@$(INCPATH)settings.mk@includel@
 
@@ -10,11 +12,14 @@ CFLAGS=
 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