Use $(EXEEXT) [defaults to "exe"] to generate binaries

This commit is contained in:
Nick Withers
2013-08-09 14:18:17 +10:00
committed by Sebastian Huber
parent 98bcf4ff6e
commit efdda56546
45 changed files with 65 additions and 71 deletions

View File

@@ -21,7 +21,7 @@ CPU_CFLAGS =
CFLAGS_OPTIMIZE_V = -O0 -g
define bsp-post-link
$(OBJCOPY) -O binary --strip-all $(basename $@).exe \
$(OBJCOPY) -O binary --strip-all $(basename $@)$(EXEEXT) \
-R entry -R exceptions $(basename $@)$(DOWNEXT)
$(default-bsp-post-link)
endef

View File

@@ -21,7 +21,7 @@ CPU_CFLAGS = -mbarrel-shift-enabled -mmultiply-enabled \
CFLAGS_OPTIMIZE_V = -O2 -g
define bsp-post-link
$(OBJCOPY) -O binary --strip-all $(basename $@).exe \
$(OBJCOPY) -O binary --strip-all $(basename $@)$(EXEEXT) \
-R entry -R exceptions $(basename $@)$(DOWNEXT)
$(default-bsp-post-link)
endef