[U-Boot] [U-Boot, 1/2] kbuild: remove unnecessary adjustment for Cygwin

Tom Rini trini at ti.com
Thu Jun 12 00:19:10 CEST 2014


On Fri, Jun 06, 2014 at 08:46:44PM +0900, Masahiro Yamada wrote:

> "SFX = .exe" was originally added for Cygwin environment.
> 
> It is true that GCC on Cygwin spits executables with .exe extention.
> 
> For example,
> 
>   gcc -o foo foo.c
> 
> will generate "foo.exe", not "foo".
> 
> But GNU make is also nicely adjusted for Cygwin.
> 
> For example,
> 
>   foo: foo.c
>           gcc -o $@ $<
> 
> will compare the timestamp between "foo.exe" and "foo.c".
> 
> You do not have to tweak Makefiles like this:
> 
>   foo$(SFX): foo.c
>           gcc -o $@ $<
> 
> And "make clean" works as well without adjustment for Cygwin because
> the command "rm foo" on Cygwin will delete both "foo" and "foo.exe".
> 
> In conclusion, makefiles do not need special care for Cygwin.
> 
> Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140611/303833e3/attachment.pgp>


More information about the U-Boot mailing list