Add debug.mk
This commit is contained in:
parent
821166fbfd
commit
64332a3675
15
mk/debug.mk
Normal file
15
mk/debug.mk
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# rules to enable debugging support
|
||||||
|
# Copyright 2008 Roy Marples <roy@marples.name>
|
||||||
|
|
||||||
|
_RC_DEBUG_SH= case "${DEBUG}" in "") echo "";; *) echo "-DRC_DEBUG";; esac
|
||||||
|
_RC_DEBUG!= ${_RC_DEBUG_SH}
|
||||||
|
CFLAGS+= ${_RC_DEBUG}$(shell ${_RC_DEBUG_SH})
|
||||||
|
|
||||||
|
# Should we enable this with a different flag?
|
||||||
|
_LD_DEBUG_SH= case "${DEBUG}" in "") echo "";; *) echo "-Wl,--rpath=../librc -Wl,--rpath=../libeinfo";; esac
|
||||||
|
_LD_DEBUG!= ${_LD_DEBUG_SH}
|
||||||
|
LDFLAGS+= ${_LD_DEBUG}$(shell ${_LD_DEBUG_SH})
|
||||||
|
|
||||||
|
_GGDB_SH= case "${DEBUG}" in "") echo "";; *) echo "-ggdb";; esac
|
||||||
|
_GGDB!= ${_GGDB_SH}
|
||||||
|
CFLAGS+= ${_GGDB}$(shell ${_GGDB_SH})
|
Loading…
Reference in New Issue
Block a user