[Cialug] Makefile question

Brian Wood woodbrian77 at gmail.com
Sun Feb 15 00:33:52 CST 2015


I'm adding some dependency generation stuff to my
makefiles.   This line:

-include $(objects:%.o=%.d)

works fine on Linux which I think is using Gnu make.
But on PCBSD/FreeBSD I get this error:

Line 19   Need an operator

I think the make on FreeBSD is BSD make or something
like that and it might not be able to handle the % stuff
in that line.  I'd like to have one makefile for both platforms
and not have to use Gnu make on FreeBSD, but am not
sure if that's possible.  Any ideas?  Thanks in Advance.

-- 
Brian
Ebenezer Enterprises - In G-d we trust.
http://webEbenezer.net


More information about the Cialug mailing list