2011-02-15 Tobias Burnus <burnus@net-b.de>
[official-gcc.git] / libgcc / static-object.mk
blobab75d3288c3afd197f27c51e2e2f138695e84776
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.
4 o := $(firstword $(iter-items))
5 iter-items := $(filter-out $o,$(iter-items))
7 base := $(basename $(notdir $o))
9 ifeq ($(suffix $o),.c)
11 $(base)$(objext): $o
12 $(gcc_compile) $(c_flags) -c $< $(vis_hide)
14 else
16 ifneq ($(suffix $o),.S)
17 ifneq ($(suffix $o),.asm)
18 $(error Unsupported file type: $o)
19 endif
20 endif
22 $(base)$(objext): $o
23 $(gcc_compile) -c -xassembler-with-cpp $<
25 endif