]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/fixed-obj.mk
Daily bump.
[thirdparty/gcc.git] / libgcc / fixed-obj.mk
CommitLineData
8d2a9e0e
CF
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-from) and $(iter-to) 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-from := $(firstword $(iter-from))
12iter-from := $(wordlist 2,$(words $(iter-from)),$(iter-from))
13
14$o-to := $(firstword $(iter-to))
15iter-to := $(wordlist 2,$(words $(iter-to)),$(iter-to))
16
17ifeq ($($o-from),$($o-to))
18$o-opt := -D$($o-from)_MODE
19else
20$o-opt := -DFROM_$($o-from) -DTO_$($o-to)
21endif
22
23#$(info $o$(objext): -DL$($o-label) $($o-opt))
24
a147b6d2 25ifneq ($o,$(filter $o,$(LIB2FUNCS_EXCLUDE)))
a039d7c2
RO
26$o$(objext): %$(objext): $(srcdir)/fixed-bit.c
27 $(gcc_compile) -DL$($*-label) $($*-opt) -c $(srcdir)/fixed-bit.c $(vis_hide)
8d2a9e0e
CF
28
29ifeq ($(enable_shared),yes)
a039d7c2
RO
30$(o)_s$(objext): %_s$(objext): $(srcdir)/fixed-bit.c
31 $(gcc_s_compile) -DL$($*-label) $($*-opt) -c $(srcdir)/fixed-bit.c
8d2a9e0e 32endif
a147b6d2 33endif