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