ubuntu-buildroot/output/build/host-gcc-final-11.4.0/libgcc/config/avr/libf7/libf7-c-object.mk

21 lines
684 B
Makefile
Raw Normal View History

2024-04-01 15:19:46 +00:00
# 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_c_$o$(objext): f7_c_%$(objext): $(libf7)/libf7.c
$(gcc_compile) -DF7MOD_$($*-label)_ $(F7_C_FLAGS) \
-c $<
ifeq ($(enable_shared),yes)
f7_c_$(o)_s$(objext): %_s$(objext): $(libf7)/libf7.c
$(gcc_s_compile) -DF7MOD_$($*-label)_ $(F7_C_FLAGS) \
-c $<
endif