This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: More problems with Make.
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