summaryrefslogtreecommitdiff
path: root/src/rc/Makefile
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-24 11:43:03 +0000
committerRoy Marples <roy@marples.name>2008-03-24 11:43:03 +0000
commit821166fbfd4bd81716fc0b5f87259bf6caf7b7b1 (patch)
treee8e60648203c4f25f2498bbbe53548ce2c69a93a /src/rc/Makefile
parent79719b538693c10cf8881da4357dd16a1117af34 (diff)
downloadopenrc-821166fbfd4bd81716fc0b5f87259bf6caf7b7b1.tar.gz
openrc-821166fbfd4bd81716fc0b5f87259bf6caf7b7b1.tar.bz2
openrc-821166fbfd4bd81716fc0b5f87259bf6caf7b7b1.tar.xz
Fix debug support to work without gmake and bundle -ggdb in properly.
Diffstat (limited to 'src/rc/Makefile')
-rw-r--r--src/rc/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rc/Makefile b/src/rc/Makefile
index 76e635d..f60fc31 100644
--- a/src/rc/Makefile
+++ b/src/rc/Makefile
@@ -32,13 +32,11 @@ CLEANFILES+= ${ALL_LINKS}
LDFLAGS+= -L../librc -L../libeinfo
LDADD+= -lutil -lrc -leinfo
-#CFLAGS+= -ggdb
-CPPFLAGS+= $(shell test "x$(DEBUG)" = x && echo -DRC_DEBUG=0 || echo -DRC_DEBUG=1)
-LDFLAGS+= $(shell test -d ../../.git && echo -Wl,--rpath=../librc -Wl,--rpath=../libeinfo)
MK= ../../mk
include ${MK}/prog.mk
include ${MK}/cc.mk
+include ${MK}/debug.mk
CFLAGS+= -I../includes -I../librc -I../libeinfo
CFLAGS+= -DLIB=\"${LIBNAME}\"