10 @sinclude@ @includel@$(INCPATH)defaults.mk@includel@
11 @sinclude@ @includel@$(INCPATH)settings.mk@includel@
13 @ifeq@${HOOKS_NEW}@ifeqsep@1@ifeqend@
19 # if USE_VALGRIND == 1
20 @ifeq@${USE_VALGRIND}@ifeqsep@1@ifeqend@
21 CFLAGS+=-DUSE_VALGRIND
22 SSTRING_ENGINE=valgrind
24 ## if SSTRING_NEW == 1
25 @ifeq@${SSTRING_NEW}@ifeqsep@1@ifeqend@
26 IMPOSSIBLE="USE_VALGRIND and SSTRING_NEW"
27 @endif@ # SSTRING_NEW == 1
29 ## if SSTRING_MMAP == 1
30 @ifeq@${SSTRING_MMAP}@ifeqsep@1@ifeqend@
31 IMPOSSIBLE="USE_VALGRIND and SSTRING_MMAP"
32 @endif@ ## SSTRING_MMAP == 1
33 @else@ # USE_VALGRIND == 1
35 ## if SSTRING_NEW == 1
36 @ifeq@${SSTRING_NEW}@ifeqsep@1@ifeqend@
38 @else@ ## SSTRING_NEW == 1
41 ### if SSTRING_MMAP == 1
42 @ifeq@${SSTRING_MMAP}@ifeqsep@1@ifeqend@
43 IMPOSSIBLE="SSTRING_MMAP without SSTRING_NEW"
44 @endif@ ### SSTRING_MMAP == 1
45 @endif@ ## SSTRING_NEW == 1
46 @endif@ # USE_VALGRIND == 1
48 @ifeq@${SSTRING_NEW}@ifeqsep@1@ifeqend@
55 @error@ impossible combination of settings: ${IMPOSSIBLE}@errorend@
59 BUILDID @shell@ (hg id || echo "unknown") | sed -e "s/+ /-/;s/ /-/" @shellend@
61 MFLAGS+=BUILDID=$(BUILDID)
72 .PHONY: checksettings default
74 @ifndef@ CHECKEDSETTINGS
75 default: checksettings all
78 @touch ${INCPATH}/settings.mk
79 @test -f ${INCPATH}/.settings.mk || cp ${INCPATH}/settings.mk ${INCPATH}/.settings.mk
80 @diff ${INCPATH}/.settings.mk ${INCPATH}/settings.mk >/dev/null || $(MAKE) -e FORCECHECK=1 realchecksettings
85 @error@ you must run make clean if you change settings.mk@errorend@
88 MFLAGS+=CHECKEDSETTINGS=1
90 CFLAGS+=-Wall -g -finline-functions -funroll-loops -std=c99 -I./ -DBUILDID=$(BUILDID)
91 CFLAGS+=-fPIC -export-dynamic