mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-29 16:00:17 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user