diff options
Diffstat (limited to 'Source/Makefile')
-rw-r--r-- | Source/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/Makefile b/Source/Makefile index 3e6d71c7d..d1aff1e07 100644 --- a/Source/Makefile +++ b/Source/Makefile @@ -16,8 +16,14 @@ FREESWANSRCDIR=../.. # include strongswan Makefile, if charon sits in its tree ifeq ($(shell ls $(FREESWANSRCDIR)/Makefile.inc 2>&1), ../../Makefile.inc) include ${FREESWANSRCDIR}/Makefile.inc +else + # use leak detective by default + USE_LEAK_DETECTIVE?=true endif + + + BUILD_DIR= ./bin/ BINNAMECHARON= $(BUILD_DIR)charon @@ -27,8 +33,10 @@ BINNAMELIB= $(BUILD_DIR)libstrongswan.so MAIN_DIR= ./ -CFLAGS= -Icharon -Ilib -Istroke -fPIC -Wall -g -DLEAK_DETECTIVE -#CFLAGS= -Icharon -Ilib -Istroke -fPIC -O3 +CFLAGS= -Icharon -Ilib -Istroke -fPIC -Wall -g +ifeq ($(USE_LEAK_DETECTIVE),true) + CFLAGS+= -DLEAK_DETECTIVE +endif # objects is extended by each included Makefile CHARON_OBJS= |