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