summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorNick Withers <nick.withers@anu.edu.au>2013-08-09 14:18:17 +1000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-08-09 09:18:23 +0200
commitefdda56546011b906f8332d25def5a929b14d0b7 (patch)
treea237f330c62610d85f805376e89dafc7e0f407e7 /make
parent98bcf4ff6ed89b01f0adaa04e53bafc22468bad5 (diff)
downloadrtems-efdda56546011b906f8332d25def5a929b14d0b7.tar.bz2
Use $(EXEEXT) [defaults to "exe"] to generate binaries
Diffstat (limited to 'make')
-rw-r--r--make/leaf.cfg13
1 files changed, 5 insertions, 8 deletions
diff --git a/make/leaf.cfg b/make/leaf.cfg
index 90cda37fad..6ebf4bdc41 100644
--- a/make/leaf.cfg
+++ b/make/leaf.cfg
@@ -78,20 +78,17 @@ clean: clean-am
.PHONY: clean clean-am
endif
-## what to do about $(EXEEXT) --> $(EXEEXT)
-## -o $(basename $@)$(EXEEXT) OR
-## -o $(basename $@)$(EXEEXT) OR
-
-DOWNEXT=.ralf
+EXEEXT?=.exe
+DOWNEXT?=.ralf
define bsp-link-c
$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
- -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
+ -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
endef
define bsp-link-cxx
$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
- -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
+ -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
endef
define default-bsp-post-link
@@ -102,7 +99,7 @@ endef
ifndef bsp-post-link
define bsp-post-link
$(default-bsp-post-link)
- cp $(basename $@).exe $(basename $@)$(DOWNEXT)
+ cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
endef
endif