9 @sinclude@ @includel@$(INCPATH)defaults.mk@includel@
10 @sinclude@ @includel@$(INCPATH)settings.mk@includel@
12 @ifeq@${HOOKS_NEW}@ifeqsep@1@ifeqend@
18 # if USE_VALGRIND == 1
19 @ifeq@${USE_VALGRIND}@ifeqsep@1@ifeqend@
20 CFLAGS+=-DUSE_VALGRIND
21 SSTRING_ENGINE=valgrind
23 ## if SSTRING_NEW == 1
24 @ifeq@${SSTRING_NEW}@ifeqsep@1@ifeqend@
25 IMPOSSIBLE="USE_VALGRIND and SSTRING_NEW"
26 @endif@ # SSTRING_NEW == 1
28 ## if SSTRING_MMAP == 1
29 @ifeq@${SSTRING_MMAP}@ifeqsep@1@ifeqend@
30 IMPOSSIBLE="USE_VALGRIND and SSTRING_MMAP"
31 @endif@ ## SSTRING_MMAP == 1
32 @else@ # USE_VALGRIND == 1
34 ## if SSTRING_NEW == 1
35 @ifeq@${SSTRING_NEW}@ifeqsep@1@ifeqend@
37 @else@ ## SSTRING_NEW == 1
40 ### if SSTRING_MMAP == 1
41 @ifeq@${SSTRING_MMAP}@ifeqsep@1@ifeqend@
42 IMPOSSIBLE="SSTRING_MMAP without SSTRING_NEW"
43 @endif@ ### SSTRING_MMAP == 1
44 @endif@ ## SSTRING_NEW == 1
45 @endif@ # USE_VALGRIND == 1
47 @ifeq@${SSTRING_NEW}@ifeqsep@1@ifeqend@
54 @error@ impossible combination of settings: ${IMPOSSIBLE}@errorend@
58 BUILDID @shell@ (hg id || echo "unknown") | sed -e "s/+ /-/;s/ /-/" @shellend@
70 .PHONY: checksettings default
72 default: checksettings all
76 @test -f .settings.mk || cp settings.mk .settings.mk
77 @diff .settings.mk settings.mk >/dev/null || $(MAKE) -e FORCECHECK=1 realchecksettings
82 @error@ you must run make clean if you change settings.mk@errorend@
85 CFLAGS+=-Wall -g -finline-functions -funroll-loops -std=c99 -I./ -DBUILDID=$(BUILDID)
86 CFLAGS+=-fPIC -export-dynamic