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
49 @error@ impossible combination of settings: ${IMPOSSIBLE}@errorend@
53 BUILDID @shell@ (hg id || echo "unknown") | sed -e "s/[()]//g;s/+ /+/g;s/ /-/g" @shellend@
55 MFLAGS+=BUILDID=$(BUILDID)
66 .PHONY: checksettings default
68 @ifndef@ CHECKEDSETTINGS
69 default: checksettings all
72 @touch ${INCPATH}/settings.mk
73 @test -f ${INCPATH}/.settings.mk || cp ${INCPATH}/settings.mk ${INCPATH}/.settings.mk
74 @diff ${INCPATH}/.settings.mk ${INCPATH}/settings.mk >/dev/null || $(MAKE) -e FORCECHECK=1 realchecksettings
79 @error@ you must run make clean if you change settings.mk@errorend@
82 MFLAGS+=CHECKEDSETTINGS=1
84 CFLAGS+=-Wall -g -finline-functions -funroll-loops -Werror=format-security
88 CFLAGS+=-I./ -DBUILDID=$(BUILDID) -fPIC -export-dynamic