]> jfr.im git - irc/quakenet/newserv.git/blame - build.mk.in
Huge cleanup of configure, seperate out configuration into seperate file.
[irc/quakenet/newserv.git] / build.mk.in
CommitLineData
16fc8bc1 1@ifndef@ INCPATH
866f59c9 2INCPATH=../
16fc8bc1 3@endif@
8b485e91 4
4bad6412
CP
5CFLAGS=
6
866f59c9
CP
7@sinclude@ @includel@$(INCPATH)settings.mk@includel@
8
16fc8bc1
CP
9@ifndef@ BUILDID
10BUILDID @shell@ (hg id || echo "unknown") | sed -e "s/+ /-/" @shellend@
11@endif@
8b485e91 12
4bad6412
CP
13.SUFFIXES: .so
14
15.o.so:
16 ld -shared -Bdynamic $(LDFLAGS) -o $@ @srcs@
17
8b485e91 18CC=gcc
4bad6412
CP
19CFLAGS+=-Wall -g -finline-functions -funroll-loops -std=c99 -I./ -DBUILDID=$(BUILDID)
20CFLAGS+=-fPIC -export-dynamic