From: simonmar Date: Tue, 10 Aug 2004 13:51:25 +0000 (+0000) Subject: [project @ 2004-08-10 13:51:25 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~1758 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=cc33dd28f9931d01ff378e428eb5f38d25541a06 [project @ 2004-08-10 13:51:25 by simonmar] Add $(Windows), which is "YES" if the host platform is a Windows platform (mingw32 or cygwin32), and "NO" otherwise. --- diff --git a/mk/config.mk.in b/mk/config.mk.in index 71aa514..ff0c349 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -124,6 +124,13 @@ LeadingUnderscore=@LeadingUnderscore@ # Pin a suffix on executables? If so, what (Windows only). exeext=@exeext@ +# Windows=YES if on a Windows platform +ifneq "$(findstring $(HostOS_CPP), mingw32 cygwin32)" "" +Windows=YES +else +Windows=NO +endif + ################################################################################ # # project-wide flags