This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Reliably check if we're running under cygwin inside Makefile
- From: Greg Chicares <gchicares at sbcglobal dot net>
- To: cygwin at cygwin dot com
- Date: Mon, 12 Jan 2009 13:12:16 +0000
- Subject: Re: Reliably check if we're running under cygwin inside Makefile
- References: <gkfcgt$m9j$1@ger.gmane.org>
On 2009-01-12 12:19Z, Eric Lilja wrote:
> Hello, I have a program that will built both under fedora and under
> cygwin. The program is written in C and the Makefile is slightly
> different between the two systems. Is it possible to check some
> environment variable in the makefile to determine what to do?
Not really Cygwin specific, but here's a common method:
http://lists.gnu.org/archive/html/help-make/2006-12/msg00065.html
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/