Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
X-Apparently-From: <earnie?boyd@yahoo.com>
Message-ID: <3A6838A1.946794A9@yahoo.com>
Date: Fri, 19 Jan 2001 07:52:49 -0500
From: Earnie Boyd <earnie_boyd@yahoo.com>
Reply-To: Earnie Boyd <cygwin@cygwin.com>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Malcolm Boekhoff <Malcolm.Boekhoff@actfs.co.uk>
CC: Cygwin News Group <cygwin@cygwin.com>
Subject: Re: More problems with Make.
References: <17B78BDF120BD411B70100500422FC6309E1D4@IIS000> <004301c081f7$b475d420$275c100a@actfs.co.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Malcolm Boekhoff wrote:
> 
> I use the $(subst ...) construct to translate directory delimiters.
> 
> In the following snippet, I needed to replace the "\" delimiters with "/" (which is what "gcc" likes) in the environment variable
> JAVAHOME (inherited from my CMD DOS-Prompt session). This was necessary to pick up the Java C headers (for some native stuff).
> 
> CC=gcc -c -I$(subst \,/,$(JAVAHOME))/include -I$(subst \,/,$(JAVAHOME))/include/win32
> 

Another solution would be to set JAVAHOME with POSIX paths in the
~/.bash_profile or ~/.bashrc file.

Cheers,
Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

