summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-03-21 19:29:11 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2010-03-21 19:29:11 +0100
commit0c6f0a786cbe5a31df09115774363c1daa5818a2 (patch)
tree10eb9ad5cead9a3ce82cbc479aed76e77c02edb4
parent031cf5e8ffd0511c1d69a41da295ab6bb017bc1d (diff)
config.mk: Make debug mode actually work
-rw-r--r--config.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/config.mk b/config.mk
index 030254a..5e97e65 100644
--- a/config.mk
+++ b/config.mk
@@ -12,9 +12,6 @@ doc_dir = $(prefix)/share/doc
image_dir = $(prefix)/share/feh/images
font_dir = $(prefix)/share/feh/fonts
-# debug = 1 if you want debug mode
-debug =
-
# default CFLAGS
CFLAGS = -g -Wall -Wextra -O2
@@ -28,6 +25,10 @@ extra_headers =
# Put extra include (-Lfoo) directories here
extra_libs =
+debug = -DDEBUG
+# Enable this for debug mode
+#CFLAGS += $(debug)
+
dmalloc = -DWITH_DMALLOC
# Enable this to use dmalloc
#CFLAGS += $(dmalloc)
@@ -36,7 +37,7 @@ dmalloc = -DWITH_DMALLOC
# You should not need to change anything below this line.
CFLAGS += $(extra_headers) $(xinerama) -DPREFIX=\"$(prefix)\" \
- -DPACKAGE=\"$(package)\" -DVERSION=\"$(version)\" $(debug)
+ -DPACKAGE=\"$(package)\" -DVERSION=\"$(version)\"
LDFLAGS = -lz -lpng -lX11 -lImlib2 -lfreetype -lXext -ldl -lm -lgiblib \
$(xinerama_ld) $(extra_includes)