basic imake problem on cygwin
Harold L Hunt II
huntharo@msu.edu
Tue May 4 18:24:00 GMT 2004
Steve,
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:
AllTarget(ProgramTargetName(hello))
On non-Cygwin platforms this turns into:
all:: hello
On Cygwin this turns into:
all:: hello.exe
Hope that helps,
Harold
More information about the Cygwin-xfree
mailing list