Introduce debug target

This commit is contained in:
Benedikt Heine 2017-10-22 04:03:43 +02:00
parent bfc8b17c27
commit d07bdacab9
2 changed files with 9 additions and 0 deletions

View File

@ -27,6 +27,11 @@ TEST_OBJ := $(TEST_SRC:.c=.o)
all: doc dunst service all: doc dunst service
debug: CFLAGS += ${CFLAGS_DEBUG}
debug: LDFLAGS += ${LDFLAGS_DEBUG}
debug: CPPFLAGS += ${CPPFLAGS_DEBUG}
debug: all
.c.o: .c.o:
${CC} -o $@ -c $< ${CFLAGS} ${CC} -o $@ -c $< ${CFLAGS}

View File

@ -11,6 +11,10 @@ CPPFLAGS += -D_DEFAULT_SOURCE -DVERSION=\"${VERSION}\"
CFLAGS += -g --std=gnu99 -pedantic -Wall -Wno-overlength-strings -Os ${STATIC} ${CPPFLAGS} CFLAGS += -g --std=gnu99 -pedantic -Wall -Wno-overlength-strings -Os ${STATIC} ${CPPFLAGS}
LDFLAGS += -lm -L${X11LIB} LDFLAGS += -lm -L${X11LIB}
CPPFLAGS_DEBUG := -DDEBUG_BUILD
CFLAGS_DEBUG := -O0
LDFLAGS_DEBUG :=
pkg_config_packs := dbus-1 \ pkg_config_packs := dbus-1 \
gio-2.0 \ gio-2.0 \
gdk-3.0 \ gdk-3.0 \