2008-03-24 17:22:01 +05:30
|
|
|
# rules to enable debugging support
|
2015-12-05 04:22:19 +05:30
|
|
|
# Copyright (c) 2008-2015 The OpenRC Authors.
|
|
|
|
# See the Authors file at the top-level directory of this distribution and
|
2021-12-21 06:37:00 +05:30
|
|
|
# https://github.com/OpenRC/openrc/blob/HEAD/AUTHORS
|
2015-12-05 04:22:19 +05:30
|
|
|
#
|
|
|
|
# This file is part of OpenRC. It is subject to the license terms in
|
|
|
|
# the LICENSE file found in the top-level directory of this
|
2021-12-21 06:37:00 +05:30
|
|
|
# distribution and at https://github.com/OpenRC/openrc/blob/HEAD/LICENSE
|
2015-12-05 04:22:19 +05:30
|
|
|
# This file may not be copied, modified, propagated, or distributed
|
|
|
|
# except according to the terms contained in the LICENSE file.
|
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}
|