Always define -DWITH_DEBUG if compiling WITH_DEBUG.

This commit is contained in:
Romain Tartiere 2010-07-29 06:31:37 +00:00
parent cc50ebc4df
commit 2ac6527164

View file

@ -19,11 +19,12 @@ libfreefare_la_SOURCES = freefare.c \
libfreefare_la_LIBADD = libfreefare_la_LIBADD =
if WITH_DEBUG if WITH_DEBUG
AM_CFLAGS += -DWITH_DEBUG
if HAS_LIBUTIL if HAS_LIBUTIL
libfreefare_la_LIBADD += -lutil libfreefare_la_LIBADD += -lutil
else # HAS_LIBUTIL else # HAS_LIBUTIL
libfreefare_la_LIBADD += $(top_builddir)/contrib/libutil/libutil.la libfreefare_la_LIBADD += $(top_builddir)/contrib/libutil/libutil.la
AM_CFLAGS += -I$(top_builddir)/contrib/libutil/ -DWITH_DEBUG AM_CFLAGS += -I$(top_builddir)/contrib/libutil/
endif # !HAS_LIBUTIL endif # !HAS_LIBUTIL
endif # WITH_DEBUG endif # WITH_DEBUG