9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Michael Teichgräber" <mt@wmipf.in-berlin.de>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] p9p for win32 ?
Date: Mon, 11 Sep 2006 22:23:10 +0200	[thread overview]
Message-ID: <87irjui24x.fsf@wmipf.in-berlin.de> (raw)
In-Reply-To: <3cb6de7ae3ddcb46ce83942413b164f7@quintile.net> (Steve Simon's message of "Mon, 11 Sep 2006 12:23:37 +0100")

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


  parent reply	other threads:[~2006-09-11 20:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-11 11:23 Steve Simon
2006-09-11 14:37 ` Richard Bilson
2006-09-11 17:21 ` Skip Tavakkolian
2006-09-11 20:23 ` Michael Teichgräber [this message]
2006-09-11 23:24   ` Benn Newman
2006-09-12  0:34     ` Benn Newman
2006-09-12 23:43       ` Michael Teichgräber
2006-09-11 12:10 as234

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87irjui24x.fsf@wmipf.in-berlin.de \
    --to=mt@wmipf.in-berlin.de \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).