Changeset 3617ebe in rtems for c/src/make/leaf.cfg


Ignore:
Timestamp:
Mar 11, 2008, 8:51:33 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
04b1660
Parents:
b1a66fea
Message:

2008-03-11 Joel Sherrill <joel.sherrill@…>

  • leaf.cfg: Switch to explicit .exe instead of EXEEXT to get it to work. Primarily move the executable transformation rules to leaf.cfg.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/make/leaf.cfg

    rb1a66fea r3617ebe  
    5959LINKCMDS=$(PROJECT_RELEASE)/lib/linkcmds
    6060endif
     61
     62## what to do about $(EXEEXT) --> $(EXEEXT)
     63##    -o $(basename $@)$(EXEEXT)             OR
     64##    -o $(basename $@)$(EXEEXT)                  OR
     65
     66DOWNEXT=.ralf
     67
     68define bsp-link-c
     69        $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
     70            -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
     71endef
     72
     73define bsp-link-cxx
     74        $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \
     75            -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
     76endef
     77
     78define default-bsp-post-link
     79        $(NM) -g -n $@ > $(basename $@).num
     80        $(SIZE) $@
     81endef
     82
     83define bsp-post-link
     84        $(default-bsp-post-link)
     85        cp $(basename $@).exe $(basename $@)$(DOWNEXT)
     86endef
     87
     88define make-exe
     89       $(bsp-link-c)
     90       $(bsp-post-link)
     91endef
     92
     93define make-cxx-exe
     94       $(bsp-link-cxx)
     95       $(bsp-post-link)
     96endef
Note: See TracChangeset for help on using the changeset viewer.