From: Tom Rini Date: Wed, 11 Jun 2014 18:19:10 -0400 Subject: [U-Boot] [U-Boot, 1/2] kbuild: remove unnecessary adjustment for Cygwin In-Reply-To: <1402055205-25604-2-git-send-email-yamada.m@jp.panasonic.com> References: <1402055205-25604-2-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <20140611221910.GL7841@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: