]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/siditi-object.mk
reload1: Change return type of predicate function from int to bool
[thirdparty/gcc.git] / libgcc / siditi-object.mk
CommitLineData
fa958513
DJ
1# This file is included several times in a row, once for each element of
2# $(iter-items). On each inclusion, we advance $o to the next element.
3# $(iter-labels) and $(iter-sizes) are also advanced.
4
5o := $(firstword $(iter-items))
6iter-items := $(filter-out $o,$(iter-items))
7
8$o-label := $(firstword $(iter-labels))
9iter-labels := $(wordlist 2,$(words $(iter-labels)),$(iter-labels))
10
11$o-size := $(firstword $(iter-sizes))
12iter-sizes := $(wordlist 2,$(words $(iter-sizes)),$(iter-sizes))
13
f9989b51
RO
14$o$(objext): %$(objext): $(srcdir)/libgcc2.c
15 $(gcc_compile) -DL$($*-label) -c $< $(vis_hide) \
fa958513
DJ
16 -DLIBGCC2_UNITS_PER_WORD=$($*-size)
17
18ifeq ($(enable_shared),yes)
f9989b51
RO
19$(o)_s$(objext): %_s$(objext): $(srcdir)/libgcc2.c
20 $(gcc_s_compile) -DL$($*-label) -c $< \
fa958513
DJ
21 -DLIBGCC2_UNITS_PER_WORD=$($*-size)
22endif