CFLAGS = -Wall -g
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0 -ggdb -rdynamic -D_GNU_SOURCE -MD -MP
LDFLAGS += -pg
SERVER_LDFLAGS += -lm
# SERVER_LDFLAGS += -pg
+ EXTRA_ARGS = --with-profiling --with-backtrace
else
CFLAGS += -O2
endif
--with-ldap \
--with-libical \
--with-libsieve \
- --enable-debug
+ --enable-debug $(EXTRA_ARGS)
touch configure-stamp