]> jfr.im git - irc/quakenet/newserv.git/blob - build.mk.in
Merge.
[irc/quakenet/newserv.git] / build.mk.in
1 @ifndef@ INCPATH
2 INCPATH=../
3 @endif@
4
5 CFLAGS=
6 CC=gcc
7
8 @sinclude@ @includel@$(INCPATH)settings.mk@includel@
9
10 @ifndef@ BUILDID
11 BUILDID @shell@ (hg id || echo "unknown") | sed -e "s/+ /-/;s/ /-/" @shellend@
12 @endif@
13
14 .SUFFIXES: .so .y .l
15
16 .o.so:
17 @-ldline-@ $(LDFLAGS)
18
19 .y.c: ;
20
21 .l.c: ;
22
23 CFLAGS+=-Wall -g -finline-functions -funroll-loops -std=c99 -I./ -DBUILDID=$(BUILDID)
24 CFLAGS+=-fPIC -export-dynamic