This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
make capabilities
- To: gdb at sourceware dot cygnus dot com
- Subject: make capabilities
- From: jtc at redback dot com (J.T. Conklin)
- Date: 01 Mar 2001 10:17:16 -0800
- Reply-To: jtc at redback dot com
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