From 576b10f44cf9dfaf0600b6216659cbda25825d98 Mon Sep 17 00:00:00 2001 From: Gianni Tedesco Date: Thu, 28 Oct 2010 11:47:26 +0100 Subject: gdbsx: Makefiles: correctly generate dependencies gdbsx hacks CFLAGS to remove optimisations for easier debugging, however this breaks dep generation due to an early evaluation of CFLAGS and leaves stale files called "..d" after a make clean. We could possibly fix this by separating dep generation from the rest of CFLAGS but it seems a little invasive. The gdbsx hackers can do their own thing during development and testing anyway... Signed-off-by: Gianni Tedesco --- tools/debugger/gdbsx/Rules.mk | 5 ----- tools/debugger/gdbsx/gx/Makefile | 2 +- tools/debugger/gdbsx/xg/Makefile | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) (limited to 'tools/debugger') diff --git a/tools/debugger/gdbsx/Rules.mk b/tools/debugger/gdbsx/Rules.mk index d729323cb5..6e38f2df99 100644 --- a/tools/debugger/gdbsx/Rules.mk +++ b/tools/debugger/gdbsx/Rules.mk @@ -2,8 +2,3 @@ include $(XEN_ROOT)/tools/Rules.mk CFLAGS += -Werror -Wmissing-prototypes # (gcc 4.3x and later) -Wconversion -Wno-sign-conversion - -# just in case have to debug gdbsx, keep life simple. -TMPFLAGS := $(CFLAGS) -CFLAGS := $(filter-out -O% -DNDEBUG -fomit-frame-pointer, $(TMPFLAGS)) -CFLAGS += -O0 diff --git a/tools/debugger/gdbsx/gx/Makefile b/tools/debugger/gdbsx/gx/Makefile index c9a48c0ccf..6dd8bf1ec5 100644 --- a/tools/debugger/gdbsx/gx/Makefile +++ b/tools/debugger/gdbsx/gx/Makefile @@ -9,7 +9,7 @@ all: gx_all.a .PHONY: clean clean: - rm -rf gx_all.a *.o + rm -rf gx_all.a *.o .*.d #%.o: %.c $(GX_HDRS) Makefile diff --git a/tools/debugger/gdbsx/xg/Makefile b/tools/debugger/gdbsx/xg/Makefile index 4ea695987e..c3e6185d94 100644 --- a/tools/debugger/gdbsx/xg/Makefile +++ b/tools/debugger/gdbsx/xg/Makefile @@ -32,5 +32,5 @@ xen-headers: .PHONY: clean clean: - rm -rf xen xg_all.a $(XG_OBJS) + rm -rf xen xg_all.a $(XG_OBJS) .*.d -- cgit v1.2.3