source:
rtems/c/src/make/leaf.cfg
@
8fbe2e6
Last change on this file since 8fbe2e6 was efdda565, checked in by Nick Withers <nick.withers@…>, on 08/09/13 at 04:18:17 | |
---|---|
|
|
File size: 895 bytes |
Rev | Line | |
---|---|---|
[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) |
7 | ifndef LINKCMDS | |
8 | LINKCMDS=$(PROJECT_RELEASE)/lib/linkcmds | |
[c1c1f33] | 9 | endif |
[3617ebe] | 10 | |
[efdda565] | 11 | EXEEXT?=.exe |
12 | DOWNEXT?=.ralf | |
[3617ebe] | 13 | |
14 | define bsp-link-c | |
[20e1bdfc] | 15 | $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \ |
[1cb06710] | 16 | -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS) |
[3617ebe] | 17 | endef |
18 | ||
19 | define bsp-link-cxx | |
[20e1bdfc] | 20 | $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \ |
[1cb06710] | 21 | -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS) |
[3617ebe] | 22 | endef |
23 | ||
24 | define default-bsp-post-link | |
25 | $(NM) -g -n $@ > $(basename $@).num | |
26 | $(SIZE) $@ | |
27 | endef | |
28 | ||
[cb697107] | 29 | ifndef bsp-post-link |
30 | define bsp-post-link | |
[3617ebe] | 31 | $(default-bsp-post-link) |
[1cb06710] | 32 | cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) |
[cb697107] | 33 | endef |
34 | endif | |
[3617ebe] | 35 | |
36 | define make-exe | |
37 | $(bsp-link-c) | |
38 | $(bsp-post-link) | |
39 | endef | |
40 | ||
41 | define make-cxx-exe | |
42 | $(bsp-link-cxx) | |
43 | $(bsp-post-link) | |
44 | endef |
Note: See TracBrowser
for help on using the repository browser.