2008-03-24 11:52:01 +00:00
|
|
|
# rules to enable debugging support
|
2009-05-01 15:11:40 +01:00
|
|
|
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
2011-06-29 19:46:31 -04:00
|
|
|
# Released under the 2-clause BSD license.
|
2008-03-24 11:52:01 +00:00
|
|
|
|
|
|
|
_RC_DEBUG_SH= case "${DEBUG}" in "") echo "";; *) echo "-DRC_DEBUG";; esac
|
2011-01-29 17:32:38 -06:00
|
|
|
_RC_DEBUG:= $(shell ${_RC_DEBUG_SH})
|
|
|
|
CPPFLAGS+= ${_RC_DEBUG}
|
2008-03-24 11:52:01 +00:00
|
|
|
|
|
|
|
# Should we enable this with a different flag?
|
|
|
|
_LD_DEBUG_SH= case "${DEBUG}" in "") echo "";; *) echo "-Wl,--rpath=../librc -Wl,--rpath=../libeinfo";; esac
|
2011-01-29 17:32:38 -06:00
|
|
|
_LD_DEBUG:= $(shell ${_LD_DEBUG_SH})
|
|
|
|
LDFLAGS+= ${_LD_DEBUG}
|
2008-03-24 11:52:01 +00:00
|
|
|
|
|
|
|
_GGDB_SH= case "${DEBUG}" in "") echo "";; *) echo "-ggdb";; esac
|
2011-01-29 17:32:38 -06:00
|
|
|
_GGDB:= $(shell ${_GGDB_SH})
|
|
|
|
CFLAGS+= ${_GGDB}
|