Makefiles compatible with both BSD and GNU make?
dkelly at hiwaay.net
Wed Mar 16 14:58:54 PST 2005
On Wed, Mar 16, 2005 at 02:50:17PM -0600, Dan Nelson wrote:
> FreeBSD's make understands the gnu-style include syntax with no leading
> dot, even though it's undocumented (grep for SYSVINCLUDE in the
> source). Automake is the usual way around compatibility issues; it has
> its own conditional syntax that it expands out when it generates the
> Makefile, and will create the appropriate dependency lines.
BSD make requires quotes around the filename in .include ".depend" but
if one removes the leading dot on "include" it can't find .depend if the
filename is still quoted.
This works in BSD make altho its not doing anything that isn't
Above is apparently the same as this in GNU make and accepted by BSD:
This does not work in BSD as it seems to be trying to find ".depend"
with quotes, which doesn't exist:
David Kelly N4HHE, dkelly at HiWAAY.net
Whom computers would destroy, they must first drive mad.
More information about the freebsd-questions