Introduce debug target
This commit is contained in:
parent
bfc8b17c27
commit
d07bdacab9
5
Makefile
5
Makefile
@ -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}
|
||||||
|
|
||||||
|
@ -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 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user