PR 43574
[official-gcc/alias-decl.git] / libgcc / siditi-object.mk
blob69df8338f524f49453f36598a7b65c6ce3fd83eb
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.
5 o := $(firstword $(iter-items))
6 iter-items := $(filter-out $o,$(iter-items))
8 $o-label := $(firstword $(iter-labels))
9 iter-labels := $(wordlist 2,$(words $(iter-labels)),$(iter-labels))
11 $o-size := $(firstword $(iter-sizes))
12 iter-sizes := $(wordlist 2,$(words $(iter-sizes)),$(iter-sizes))
14 $o$(objext): %$(objext): $(gcc_srcdir)/libgcc2.c
15 $(gcc_compile) -DL$($*-label) -c $(gcc_srcdir)/libgcc2.c $(vis_hide) \
16 -DLIBGCC2_UNITS_PER_WORD=$($*-size)
18 ifeq ($(enable_shared),yes)
19 $(o)_s$(objext): %_s$(objext): $(gcc_srcdir)/libgcc2.c
20 $(gcc_s_compile) -DL$($*-label) -c $(gcc_srcdir)/libgcc2.c \
21 -DLIBGCC2_UNITS_PER_WORD=$($*-size)
22 endif