From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19209 invoked by alias); 12 Jan 2009 13:12:56 -0000 Received: (qmail 19201 invoked by uid 22791); 12 Jan 2009 13:12:56 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp106.sbc.mail.re2.yahoo.com (HELO smtp106.sbc.mail.re2.yahoo.com) (68.142.229.99) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Mon, 12 Jan 2009 13:12:19 +0000 Received: (qmail 13765 invoked from network); 12 Jan 2009 13:12:17 -0000 Received: from unknown (HELO ?192.168.1.101?) (gchicares@76.252.195.127 with plain) by smtp106.sbc.mail.re2.yahoo.com with SMTP; 12 Jan 2009 13:12:17 -0000 Message-ID: <496B41B0.7090105@sbcglobal.net> Date: Mon, 12 Jan 2009 16:19:00 -0000 From: Greg Chicares User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Reliably check if we're running under cygwin inside Makefile References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2009-01/txt/msg00320.txt.bz2 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/