2008-03-24 17:22:01 +05:30
|
|
|
# rules to enable debugging support
|
2009-05-01 19:41:40 +05:30
|
|
|
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
2008-03-26 23:23:37 +05:30
|
|
|
# All rights reserved. Released under the 2-clause BSD license.
|
2008-03-24 17:22:01 +05:30
|
|
|
|
|
|
|
_RC_DEBUG_SH= case "${DEBUG}" in "") echo "";; *) echo "-DRC_DEBUG";; esac
|
2011-01-30 05:02:38 +05:30
|
|
|
_RC_DEBUG:= $(shell ${_RC_DEBUG_SH})
|
|
|
|
CPPFLAGS+= ${_RC_DEBUG}
|
2008-03-24 17:22:01 +05:30
|
|
|
|
|
|
|
# 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-30 05:02:38 +05:30
|
|
|
_LD_DEBUG:= $(shell ${_LD_DEBUG_SH})
|
|
|
|
LDFLAGS+= ${_LD_DEBUG}
|
2008-03-24 17:22:01 +05:30
|
|
|
|
|
|
|
_GGDB_SH= case "${DEBUG}" in "") echo "";; *) echo "-ggdb";; esac
|
2011-01-30 05:02:38 +05:30
|
|
|
_GGDB:= $(shell ${_GGDB_SH})
|
|
|
|
CFLAGS+= ${_GGDB}
|