delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/19/07:52:56

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

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

- Raw text -


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