Debian Codegraph @

libgcc/config/avr/libf7/libf7-c-object.mk

raw
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) is also advanced.
4 # This works similar to $(srcdir)/siditi-object.mk.
5
6 o := $(firstword $(iter-items))
7 iter-items := $(filter-out $o,$(iter-items))
8
9 $o-label := $(firstword $(iter-labels))
10 iter-labels := $(wordlist 2,$(words $(iter-labels)),$(iter-labels))
11
12 f7_c_$o$(objext): f7_c_%$(objext): $(libf7)/libf7.c
13 $(gcc_compile) -DF7MOD_$($*-label)_ $(F7_C_FLAGS) \
14 -c $<
15
16 ifeq ($(enable_shared),yes)
17 f7_c_$(o)_s$(objext): %_s$(objext): $(libf7)/libf7.c
18 $(gcc_s_compile) -DF7MOD_$($*-label)_ $(F7_C_FLAGS) \
19 -c $<
20 endif