diff options
Diffstat (limited to 'make/custom/mcf5235.cfg')
-rw-r--r-- | make/custom/mcf5235.cfg | 28 |
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 |