[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] gdbsx: Makefiles: correctly generate dependencies



# HG changeset patch
# User Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
# Date 1288262846 -3600
# Node ID b2809cd74ca0ae727a95e5dd9225461d8d3079a4
# Parent  790b9353acc8cec27d3ea2611365dba3c8b04d46
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 <gianni.tedesco@xxxxxxxxxx>
---
 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(-)

diff -r 790b9353acc8 -r b2809cd74ca0 tools/debugger/gdbsx/Rules.mk
--- a/tools/debugger/gdbsx/Rules.mk     Thu Oct 28 11:46:20 2010 +0100
+++ b/tools/debugger/gdbsx/Rules.mk     Thu Oct 28 11:47:26 2010 +0100
@@ -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 -r 790b9353acc8 -r b2809cd74ca0 tools/debugger/gdbsx/gx/Makefile
--- a/tools/debugger/gdbsx/gx/Makefile  Thu Oct 28 11:46:20 2010 +0100
+++ b/tools/debugger/gdbsx/gx/Makefile  Thu Oct 28 11:47:26 2010 +0100
@@ -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 -r 790b9353acc8 -r b2809cd74ca0 tools/debugger/gdbsx/xg/Makefile
--- a/tools/debugger/gdbsx/xg/Makefile  Thu Oct 28 11:46:20 2010 +0100
+++ b/tools/debugger/gdbsx/xg/Makefile  Thu Oct 28 11:47:26 2010 +0100
@@ -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
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.