]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
kbuild: remove unnecessary adjustment for Cygwin
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Fri, 6 Jun 2014 11:46:44 +0000 (20:46 +0900)
committerTom Rini <trini@ti.com>
Wed, 11 Jun 2014 20:27:05 +0000 (16:27 -0400)
commit96b09a97f5eda5132d059ce3c72dafb53654380f
tree86d7df70c0aa6c5f99b8e13d5a2c6186c212c85c
parent899a8cbbc28e7dc1c2418048a2769d27769592c8
kbuild: remove unnecessary adjustment for Cygwin

"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@jp.panasonic.com>
tools/Makefile