Portable Makefile(s)

David DEMELIER demelier.david at gmail.com
Sun Oct 31 11:34:29 UTC 2010


Hello,

I'm working on many projects, and writing makefile is really painful.
I love the BSD Makefile syntax obviously, but I also love that people
using Linux could run make to build my projects too. And using BSD
makefile syntax disallow this.

Reducing the makefile to the minimal makes them portable, but then you
canno't use loops, conditionnals, and this is getting my nerves.

What could I do to write Makefile compatible on every operating
systems ? I'm thinking about Cmake but I hate the syntax, also for
dmake...

Kind regards,

-- 
Demelier David


More information about the freebsd-questions mailing list