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 6o := $(firstword $(iter-items)) 7iter-items := $(filter-out $o,$(iter-items)) 8 9$o-label := $(firstword $(iter-labels)) 10iter-labels := $(wordlist 2,$(words $(iter-labels)),$(iter-labels)) 11 12f7_c_$o$(objext): f7_c_%$(objext): $(libf7)/libf7.c 13 $(gcc_compile) -DF7MOD_$($*-label)_ $(F7_C_FLAGS) \ 14 -c $< 15 16ifeq ($(enable_shared),yes) 17f7_c_$(o)_s$(objext): %_s$(objext): $(libf7)/libf7.c 18 $(gcc_s_compile) -DF7MOD_$($*-label)_ $(F7_C_FLAGS) \ 19 -c $< 20endif 21