EXEEXT

Eric Blake eblake@redhat.com
Wed Mar 17 18:30:00 GMT 2010


On 03/17/2010 12:02 PM, Nellis, Kenneth wrote:
> For Cygwin, I've been defining:
> 
> EXEEXT := .exe
> 
> Then, to keep my Makefiles portable:
> 
> clean :
> 	$(RM) $(MAIN)$(EXEEXT)
> 
> It appears that we don't have do this EXEEXT dance
> anymore, however I've not seen any official word on
> this. Is there official word?

Do you want to be portable to the cross-compilation environment of
compiling for mingw on Linux, and using wine to run the results?  Then
keep it.  While cygwin 1.7 has certainly gotten smarter about implicit
.exe handling, there are other environments where .exe is still
explicitly required, so properly using $(EXEEXT) in makefiles (autoconf
provides a correct setting of this variable, rather than hard-coding it)
can only serve to make your makefiles portable to more systems.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 323 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100317/3dcc7315/attachment.sig>


More information about the Cygwin mailing list