]> jfr.im git - irc/quakenet/newserv.git/blobdiff - build.mk.in
move some more data/log paths missed before
[irc/quakenet/newserv.git] / build.mk.in
index e15ef6a46f32082c5a1cf5a54d3570f1e174378a..f9b3cefe632c11d17c1fb77986787207bef3fe60 100644 (file)
@@ -2,12 +2,24 @@
 INCPATH=../
 @endif@
 
-@include@ @includel@$(INCPATH)configure.mk@includel@
+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@
 
-CC=gcc
-CFLAGS+=-Wall -g -fPIC -export-dynamic -finline-functions -funroll-loops -std=c99 -I./ -DBUILDID=$(BUILDID)
+.SUFFIXES: .so .y .l
+
+.o.so:
+       @-ldline-@ $(LDFLAGS)
+
+.y.c:  ;
+
+.l.c:  ;
+
+CFLAGS+=-Wall -g -finline-functions -funroll-loops -std=c99 -I./ -DBUILDID=$(BUILDID)
+CFLAGS+=-fPIC -export-dynamic