X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/a0c3130e66a1daa174ef56c5283a51efea60a214..0a7647a3572342fce089bcae5931062e66fe3ab4:/build.mk.in diff --git a/build.mk.in b/build.mk.in index 1a9000b8..f9b3cefe 100644 --- a/build.mk.in +++ b/build.mk.in @@ -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