]> jfr.im git - irc/quakenet/newserv.git/blame - build.mk.in
Fix some really stupid bugs in stringbuf (no uninitialised warnings from gcc :().
[irc/quakenet/newserv.git] / build.mk.in
CommitLineData
16fc8bc1 1@ifndef@ INCPATH
866f59c9 2INCPATH=../
16fc8bc1 3@endif@
8b485e91 4
4bad6412 5CFLAGS=
773391f4 6CC=gcc
4bad6412 7
866f59c9
CP
8@sinclude@ @includel@$(INCPATH)settings.mk@includel@
9
16fc8bc1 10@ifndef@ BUILDID
e147b4a2 11BUILDID @shell@ (hg id || echo "unknown") | sed -e "s/+ /-/;s/ /-/" @shellend@
16fc8bc1 12@endif@
8b485e91 13
4bad6412
CP
14.SUFFIXES: .so
15
16.o.so:
45cb2a9d 17 @-ldline-@ $(LDFLAGS)
4bad6412 18
4bad6412
CP
19CFLAGS+=-Wall -g -finline-functions -funroll-loops -std=c99 -I./ -DBUILDID=$(BUILDID)
20CFLAGS+=-fPIC -export-dynamic