2008-03-11 Joel Sherrill <joel.sherrill@OARcorp.com>

* leaf.cfg: Switch to explicit .exe instead of EXEEXT to get it to
	work. Primarily move the executable transformation rules to leaf.cfg.
This commit is contained in:
Joel Sherrill
2008-03-11 20:51:33 +00:00
parent b1a66feaa3
commit 3617ebe66f
2 changed files with 41 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2008-03-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* leaf.cfg: Switch to explicit .exe instead of EXEEXT to get it to
work. Primarily move the executable transformation rules to leaf.cfg.
2007-09-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.inc.in: Add CXX and CXX_FOR_TARGET.

View File

@@ -58,3 +58,39 @@ endif
ifndef LINKCMDS
LINKCMDS=$(PROJECT_RELEASE)/lib/linkcmds
endif
## what to do about $(EXEEXT) --> $(EXEEXT)
## -o $(basename $@)$(EXEEXT) OR
## -o $(basename $@)$(EXEEXT) OR
DOWNEXT=.ralf
define bsp-link-c
$(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
endef
define bsp-link-cxx
$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
endef
define default-bsp-post-link
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
define bsp-post-link
$(default-bsp-post-link)
cp $(basename $@).exe $(basename $@)$(DOWNEXT)
endef
define make-exe
$(bsp-link-c)
$(bsp-post-link)
endef
define make-cxx-exe
$(bsp-link-cxx)
$(bsp-post-link)
endef