]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
make DEBUG=yes enabled ggdb.
authorRoy Marples <roy@marples.name>
Sat, 7 Jun 2008 00:08:07 +0000 (00:08 +0000)
committerRoy Marples <roy@marples.name>
Sat, 7 Jun 2008 00:08:07 +0000 (00:08 +0000)
mk/cc.mk

index 16e9aba992e7b6c8c8d69a1484f43ede7f61e8ef..fcf05351625e4db8b452afeb23fa782e42f0f3be 100644 (file)
--- a/mk/cc.mk
+++ b/mk/cc.mk
@@ -21,3 +21,8 @@ _CC_FLAGS_SH= if ! test -d .git; then echo ""; else for f in ${_CCFLAGS}; do \
                done; fi
 _CC_FLAGS!=    ${_CC_FLAGS_SH}
 CFLAGS+=       ${_CC_FLAGS}$(shell ${_CC_FLAGS_SH})
+
+_GGDB_SH=      if test "${DEBUG}" = "yes"; then echo "-ggdb -DDEBUG"; else echo ""; fi
+_GGDB!=                ${_GGDB_SH}
+GGDB=          ${_GGDB}$(shell ${_GGDB_SH})
+CFLAGS+=       ${GGDB}