diff options
author | Gianni Tedesco <gianni.tedesco@citrix.com> | 2010-10-28 11:47:26 +0100 |
---|---|---|
committer | Gianni Tedesco <gianni.tedesco@citrix.com> | 2010-10-28 11:47:26 +0100 |
commit | 576b10f44cf9dfaf0600b6216659cbda25825d98 (patch) | |
tree | ed62ea52d76e3e8e6e8f2b8a7cf830d3bdb4a1fd /tools/debugger | |
parent | 9de2eedc20b29ae1204ee5f911764b01e62a07d3 (diff) | |
download | xen-576b10f44cf9dfaf0600b6216659cbda25825d98.tar.gz xen-576b10f44cf9dfaf0600b6216659cbda25825d98.tar.bz2 xen-576b10f44cf9dfaf0600b6216659cbda25825d98.zip |
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@citrix.com>
Diffstat (limited to 'tools/debugger')
-rw-r--r-- | tools/debugger/gdbsx/Rules.mk | 5 | ||||
-rw-r--r-- | tools/debugger/gdbsx/gx/Makefile | 2 | ||||
-rw-r--r-- | tools/debugger/gdbsx/xg/Makefile | 2 |
3 files changed, 2 insertions, 7 deletions
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 |