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