Hi,

recently I derived a small build system from parts of p9p using the
original mkfile structure of Plan 9, to be able to create binaries for
Linux and Win32 (using mingw). It has the intention to make it more
easy for me to compile simple, portable command line programs for
Linux and Win32 (and Plan 9), without aiming towards a full system.

For now I can do something like

    % cd pf9/sys/src
    % objtype=mingw
    % mk

and it will build some stuff using the mingw compiler, which is
accessed through a script w32c, that has been derived from p9p's 9c.

It already contains libbio and some of the portable parts of lib9
(including fmt and utf) from p9p, and one can build `sort' and `awk'
(the latter is not from p9p, and independent of lib9). Some files will
have to be translated to the Win32 interface, I already did some work
on parts of open.c, create.c, time.c, but these were the more simple
problems.

If you are interested I can put it online.

Perhaps it would be more easy (because of the system interface) to use
cygwin, but at that time I didn't have access to Windows and only
tried to create some programs for it.

Michael

Reply via email to