From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?Michael_Teichgr=E4ber?= To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] p9p for win32 ? In-Reply-To: <3cb6de7ae3ddcb46ce83942413b164f7@quintile.net> (Steve Simon's message of "Mon, 11 Sep 2006 12:23:37 +0100") Date: Mon, 11 Sep 2006 22:23:10 +0200 Message-ID: <87irjui24x.fsf@wmipf.in-berlin.de> References: <3cb6de7ae3ddcb46ce83942413b164f7@quintile.net> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Topicbox-Message-UUID: b0ee9f6e-ead1-11e9-9d60-3106f5b1d025 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