This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Change gdb/common/ to use Automake


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 (éå)
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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]