4.115
Last change
on this file since 116ef2e9 was
efdda565,
checked in by Nick Withers <nick.withers@…>, on 08/09/13 at 04:18:17
|
Use $(EXEEXT) [defaults to "exe"] to generate binaries
|
-
Property mode set to
100644
|
File size:
895 bytes
|
Line | |
---|
1 | # make/leaf.cfg |
---|
2 | # |
---|
3 | # Make(1) configuration file include'd by all leaf-node Makefiles |
---|
4 | # |
---|
5 | |
---|
6 | # Allow user to override link commands (to build a prom image, perhaps) |
---|
7 | ifndef LINKCMDS |
---|
8 | LINKCMDS=$(PROJECT_RELEASE)/lib/linkcmds |
---|
9 | endif |
---|
10 | |
---|
11 | EXEEXT?=.exe |
---|
12 | DOWNEXT?=.ralf |
---|
13 | |
---|
14 | define bsp-link-c |
---|
15 | $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \ |
---|
16 | -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS) |
---|
17 | endef |
---|
18 | |
---|
19 | define bsp-link-cxx |
---|
20 | $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \ |
---|
21 | -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS) |
---|
22 | endef |
---|
23 | |
---|
24 | define default-bsp-post-link |
---|
25 | $(NM) -g -n $@ > $(basename $@).num |
---|
26 | $(SIZE) $@ |
---|
27 | endef |
---|
28 | |
---|
29 | ifndef bsp-post-link |
---|
30 | define bsp-post-link |
---|
31 | $(default-bsp-post-link) |
---|
32 | cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT) |
---|
33 | endef |
---|
34 | endif |
---|
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.