blob: 84bce09976cb39c4df04f0ac72d37a410ae72a19 (
plain) (
tree)
|
|
#
# $Id$
#
# make/leaf.cfg
#
# Make(1) configuration file include'd by all leaf-node Makefiles
#
# Allow user to override link commands (to build a prom image, perhaps)
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 $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
endef
define bsp-link-cxx
$(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
-o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
endef
define default-bsp-post-link
$(NM) -g -n $@ > $(basename $@).num
$(SIZE) $@
endef
ifndef bsp-post-link
define bsp-post-link
$(default-bsp-post-link)
cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
endef
endif
define make-exe
$(bsp-link-c)
$(bsp-post-link)
endef
define make-cxx-exe
$(bsp-link-cxx)
$(bsp-post-link)
endef
|