Portable Makfiles (gcc vs. OpenWatcom)

4 views
Skip to first unread message

Marcel Müller

unread,
May 24, 2010, 10:39:45 AM5/24/10
to
Hi,

is there a way to write portable Makefiles that can run with gmake or wmake?

I do not need any special features except for !include and !if.
Unfortunately the directive syntax for gmake is different in the way
that the ! has to be removed, while wmake and nmake need !include.


Marcel

Andreas Kohl

unread,
May 25, 2010, 7:07:34 AM5/25/10
to
Hello,

Marcel Müller schrieb:


> Hi,
>
> is there a way to write portable Makefiles that can run with gmake or
> wmake?

Sadly they use completely different styles of makefiles. For "portable
makefiles" there is/was imake.

> I do not need any special features except for !include and !if.
> Unfortunately the directive syntax for gmake is different in the way
> that the ! has to be removed, while wmake and nmake need !include.

Some tools may help:
<http://www.cubic.org/docs/mkmk.htm>

--
Andreas

Reply all
Reply to author
Forward
0 new messages