public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* make capabilities
@ 2001-03-21 15:59 J.T. Conklin
  2001-03-21 15:59 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: J.T. Conklin @ 2001-03-21 15:59 UTC (permalink / raw)
  To: gdb

Is it safe to assume that all versions of make used to build GDB will
understand the ${FOO:.c=.o} construct?  It does not appear to be used
elsewhere in the GDB or binutils trees, so it is possible (maybe even
likely) that they do not.  But I do not know how to solve a problem
without it.

The problem is the "lint" target:

        lint:   $(LINTFILES)
                $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \
                   `echo $(DEPFILES) | sed 's/\.o /\.c /g'`

If srcdir != objdir, lint is not able to find the source files.  This
can be fixed if the rule is re-written as such:

        lint:   $(LINTFILES) $(DEPFILES:.c=.o)
                $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $^

Thoughts?

        --jtc

-- 
J.T. Conklin
RedBack Networks

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-03-21 15:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-21 15:59 make capabilities J.T. Conklin
2001-03-21 15:59 ` Eli Zaretskii
2001-03-21 15:59   ` J.T. Conklin
2001-03-21 15:59     ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).