source: rtems/c/src/make/leaf.cfg @ c31a7129

4.115
Last change on this file since c31a7129 was efdda565, checked in by Nick Withers <nick.withers@…>, on Aug 9, 2013 at 4:18:17 AM

Use $(EXEEXT) [defaults to "exe"] to generate binaries

  • Property mode set to 100644
File size: 895 bytes
RevLine 
[c1c1f33]1# make/leaf.cfg
2#
3#   Make(1) configuration file include'd by all leaf-node Makefiles
4#
5
[7e5a481]6# Allow user to override link commands (to build a prom image, perhaps)
7ifndef LINKCMDS
8LINKCMDS=$(PROJECT_RELEASE)/lib/linkcmds
[c1c1f33]9endif
[3617ebe]10
[efdda565]11EXEEXT?=.exe
12DOWNEXT?=.ralf
[3617ebe]13
14define bsp-link-c
[20e1bdfc]15        $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
[1cb06710]16            -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
[3617ebe]17endef
18
19define bsp-link-cxx
[20e1bdfc]20        $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
[1cb06710]21            -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
[3617ebe]22endef
23
24define default-bsp-post-link
25        $(NM) -g -n $@ > $(basename $@).num
26        $(SIZE) $@
27endef
28
[cb697107]29ifndef bsp-post-link
30  define bsp-post-link
[3617ebe]31        $(default-bsp-post-link)
[1cb06710]32        cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
[cb697107]33  endef
34endif
[3617ebe]35
36define make-exe
37       $(bsp-link-c)
38       $(bsp-post-link)
39endef
40
41define make-cxx-exe
42       $(bsp-link-cxx)
43       $(bsp-post-link)
44endef
Note: See TracBrowser for help on using the repository browser.