Re: Change gdb/common/ to use Automake

Yao Qi
2011-02-23T05:36:55Z

[-- Attachment #1: Type: text/plain, Size: 832 bytes --]

On 02/19/2011 03:42 AM, Tom Tromey wrote:
> I got something working today. But, I am not sure it really works. I
> sort of punted on the gnulib stuff; maybe it is handled automatically,
> maybe not -- I'm not likely to find out on a Linux host.
>
> Here's a diff. No ChangeLog yet. If you want to try it and report
> problems, that would be helpful. I sent all the files, including
> generated ones, for convenience.
I tested this diff on my linux system, and build gdb/gdbserver as native
debugger, and arm cross debugger. `make clean' can't remove some files.
The rest works well to me.

This patch is to clean generated files, applied on top of Tom's patch.

I really want gdbserver automake patch in trunk, then, I don't have to
worry about dependency tracking when I add new .h files in common/

--
Yao (é½å°§)

[-- Attachment #2: gdbserver-cleanfiles.patch --]
[-- Type: text/x-patch, Size: 545 bytes --]

diff --git a/gdb/gdbserver/Makefile.am b/gdb/gdbserver/Makefile.am
index f3e398b..ec533eb 100644
--- a/gdb/gdbserver/Makefile.am
+++ b/gdb/gdbserver/Makefile.am
@@ -87,6 +87,8 @@ EXTRA_gdbserver_SOURCES = proc-service.c proc-service.list thread-db.c \
win32-low.c i387-fp.c wincecompat.c hostio-errno.c \
$(generated)

+CLEANFILES = $(generated) xml-builtin.c version.c stamp-xml
+
gdbserver_LDFLAGS = $(INTERNAL_LDFLAGS)
gdbserver_LDADD = $(XML_BUILTIN) $(GDBSERVER_DEPFILES) $(LIBOBJS) \
common/libcommon.a $(GDBSERVER_LIBS)