This is the mail archive of the gdb@sources.redhat.com 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]

make capabilities


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


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