[project @ 2004-08-10 13:51:25 by simonmar]
authorsimonmar <unknown>
Tue, 10 Aug 2004 13:51:25 +0000 (13:51 +0000)
committersimonmar <unknown>
Tue, 10 Aug 2004 13:51:25 +0000 (13:51 +0000)
Add $(Windows), which is "YES" if the host platform is a Windows
platform (mingw32 or cygwin32), and "NO" otherwise.

mk/config.mk.in

index 71aa514..ff0c349 100644 (file)
@@ -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