basic imake problem on cygwin

Harold L Hunt II
Tue May 4 18:24:00 GMT 2004


Steve Kelem wrote:
> There seems to be a disconnect in the generated Makefile on cygwin.  I 
> searched the mailing list archives, but wasn't able to find anything 
> relevant.
> With the following Imakefile, my AllTarget is "hello", as the Imakefile 
> is supposed to be portable, and not know about cygwin's .exe extension 
> for the compiled binary.

You need to use the ProgramTargetName macro in your AllTarget:


On non-Cygwin platforms this turns into:

all:: hello

On Cygwin this turns into:

all:: hello.exe

Hope that helps,


More information about the Cygwin-xfree mailing list