platform/unix/Makefile patch for Cygwin

Nick Forde nickf at system-7.freeserve.co.uk
Thu Mar 31 09:59:47 PST 2005


I no longer have access to a Cygwin machine to test this but I think the
following would be a bit more robust:

HOST_SYSTEM  := $(shell uname -s)
ifeq ($(findstring CYGWIN,$(HOST_SYSTEM)), CYGWIN)
...

The GNU config.guess script is an even better way of handling platform
identification issues such as this but for licensing reasons would 
require
Slate to use Autoconf.

Nick.

On 31 Mar 2005, at 18:19, Tony Garnock-Jones wrote:

> Lyndon Tremblay wrote:
>> A clean CVS checkout builds almost clean in Cygwin.
>
> "uname -o" doesn't work on MacOS X. Would an acceptable alternative to
>
>   ifeq ($(shell uname -o),Cygwin)
>
> be
>
>   ifeq ($(shell uname -s),CYGWIN_NT-5.1)
>
> ?
>
> Tony
> -- 
>  [][][] Tony Garnock-Jones     | Mob: +44 (0)7905 974 211
>    [][] LShift Ltd             | Tel: +44 (0)20 7729 7060
>  []  [] http://www.lshift.net/ | Email: tonyg at lshift.net
>
>




More information about the Slate mailing list