blob: c577512a267e1d4d051274c87e1605a5c8a1bd3c [file] [log] [blame]
# This file is included several times in a row, once for each element of
# $(iter-items). On each inclusion, we advance $o to the next element.
# $(iter-labels) is also advanced.
# This works similar to $(srcdir)/siditi-object.mk.
o := $(firstword $(iter-items))
iter-items := $(filter-out $o,$(iter-items))
$o-label := $(firstword $(iter-labels))
iter-labels := $(wordlist 2,$(words $(iter-labels)),$(iter-labels))
f7_asm_$o$(objext): f7_asm_%$(objext): $(libf7)/libf7-asm.sx
$(gcc_compile) -DF7MOD_$($*-label)_ $(F7_ASM_FLAGS) \
-c $<
ifeq ($(enable_shared),yes)
f7_asm_$(o)_s$(objext): f7_asm_%_s$(objext): $(libf7)/libf7-asm.sx
$(gcc_s_compile) -DF7MOD_$($*-label)_ $(F7_ASM_FLAGS) \
-c $<
endif