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

4.115
Last change on this file since ae55da72 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 1.0 KB
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
11## what to do about $(EXEEXT) --> $(EXEEXT)
12##    -o $(basename $@)$(EXEEXT)             OR
13##    -o $(basename $@)$(EXEEXT)                  OR
14
15DOWNEXT=.ralf
16
17define bsp-link-c
[20e1bdfc]18        $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
[1cb06710]19            -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
[3617ebe]20endef
21
22define bsp-link-cxx
[20e1bdfc]23        $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
[1cb06710]24            -o $(basename $@)$(EXEEXT) $(LINK_OBJS) $(LINK_LIBS)
[3617ebe]25endef
26
27define default-bsp-post-link
28        $(NM) -g -n $@ > $(basename $@).num
29        $(SIZE) $@
30endef
31
[cb697107]32ifndef bsp-post-link
33  define bsp-post-link
[3617ebe]34        $(default-bsp-post-link)
[1cb06710]35        cp $(basename $@)$(EXEEXT) $(basename $@)$(DOWNEXT)
[cb697107]36  endef
37endif
[3617ebe]38
39define make-exe
40       $(bsp-link-c)
41       $(bsp-post-link)
42endef
43
44define make-cxx-exe
45       $(bsp-link-cxx)
46       $(bsp-post-link)
47endef
Note: See TracBrowser for help on using the repository browser.