summaryrefslogtreecommitdiffstats
path: root/make/leaf.cfg
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-03-12 15:24:46 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-03-12 15:24:46 +0000
commit66a9381db479909abebd6eb0e92cc7d9ac58ee01 (patch)
tree56600d4dd3f7c7b26ede3edd332d8b19454bbd7a /make/leaf.cfg
parentd0014c7545eb0150911d6fc32cff5c7638fe56d9 (diff)
downloadrtems-66a9381db479909abebd6eb0e92cc7d9ac58ee01.tar.bz2
2008-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* leaf.cfg, custom/pc386.cfg, custom/pc386dx.cfg: It appears that the default processor model optimization has changed in gcc 4.3.0.
Diffstat (limited to 'make/leaf.cfg')
-rw-r--r--make/leaf.cfg36
1 files changed, 36 insertions, 0 deletions
diff --git a/make/leaf.cfg b/make/leaf.cfg
index 497fb53a06..ca6b7d0009 100644
--- a/make/leaf.cfg
+++ b/make/leaf.cfg
@@ -109,3 +109,39 @@ clean: clean-am
.PHONY: distclean distclean-am
.PHONY: clean clean-am
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