summaryrefslogtreecommitdiffstats
path: root/make/custom/mcf5235.cfg
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2007-12-17 00:35:52 +0000
committerChris Johns <chrisj@rtems.org>2007-12-17 00:35:52 +0000
commitfa0533a2df038b90b8da1f683dc1e74b9ddcf430 (patch)
treeb8f9b31f73c34117178dc33321698a943dbfdb2c /make/custom/mcf5235.cfg
parent2007-12-17 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-fa0533a2df038b90b8da1f683dc1e74b9ddcf430.tar.bz2
2007-12-17 Chris Johns <chrisj@rtems.org>
* custom/mcf5235.cfg, custom/mrm332.cfg, custom/pc386.cfg: Split the make-exe and make-cxx-exe into bsp-link-c, bsp-link-cxx and bsp-post-link make macros. This allow external autotools support.
Diffstat (limited to 'make/custom/mcf5235.cfg')
-rw-r--r--make/custom/mcf5235.cfg28
1 files changed, 20 insertions, 8 deletions
diff --git a/make/custom/mcf5235.cfg b/make/custom/mcf5235.cfg
index d1532f0643..a19c2361d1 100644
--- a/make/custom/mcf5235.cfg
+++ b/make/custom/mcf5235.cfg
@@ -32,17 +32,29 @@ endif
# The following are definitions of make-exe which will work using ld as
# is currently required.
-define make-exe
+define bsp-link-c
$(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) \
- -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
- $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@
- $(SIZE) $(basename $@).nxe
+ -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
endef
-define make-cxx-exe
+
+define bsp-link-cxx
$(LINK.cc) $(AM_CFLAGS) $(AM_LDFLAGS) \
- -o $(basename $@).nxe $(LINK_OBJS) $(LINK_LIBS)
- $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@
- $(SIZE) $(basename $@).nxe
+ -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
+endef
+
+define bsp-post-link
+ $(OBJCOPY) -O binary --strip-all $(basename $@)$(EXEEXT) $(basename $@).nxe
+ $(SIZE) $(basename $@)$(EXEEXT)
+endef
+
+define make-exe
+ $(bsp-link-c)
+ $(bsp-post-link)
+endef
+
+define make-cxx-exe
+ $(bsp-link-cxx)
+ $(bsp-post-link)
endef
# Miscellaneous additions go here