www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/08/18/22:04:49

From: pgarceau AT teleport DOT com (Paul Garceau)
Subject: Re: How to detect win9 vs NT
18 Aug 1998 22:04:49 -0700 :
Message-ID: <199808180338.UAA15889.cygnus.gnu-win32@cygnus.com>
Reply-To: pgarceau AT teleport DOT com
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Greetings,

	If you are using "make 3.76.1", you can determine which 
values are set for the platform by running "make -p".  That gives 
you the internal database which the make command uses.

	Under NT 4, "os" is set by the internal make database to 
Windows_NT...I don't have Win95 or Win98, so am not sure what 
the value of OS would be, though I might hypothesize that it is 
something like Windows_95, etc.

	So, I would think that a make command sequence that goes 
something like

	ifeq ($(OS),Windows_NT)
		<define something NT_like>
	endif
	ifeq($(OS),Windows_95)
		<define something Win95_like>
	endif

	Such a command sequence would be perfectly capable of 
determining what platform OS is being used and what needs to be 
defined or included depending on the platform OS being used.

	Peace,

		Paul G.

Information Systems Consultant
NewDawn Productions
http://www.teleport.com/~pgarceau/newdawn/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019