[RS6000] Use LIB2_SIDITI_CONV_FUNCS in place of ppc64-fp.c
[official-gcc.git] / libgcc / shared-object.mk
blobefac7973b2c7f3a4c7fc7eb587bda31193eb5bd1
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 c_flags-$o := $(c_flags)
11 ifeq ($(suffix $o),.c)
13 $(base)$(objext): $o
14 $(gcc_compile) $(c_flags-$<) -c $< $(vis_hide)
16 $(base)_s$(objext): $o
17 $(gcc_s_compile) $(c_flags-$<) -c $<
19 else
21 ifneq ($(suffix $o),.S)
22 ifneq ($(suffix $o),.asm)
23 $(error Unsupported file type: $o)
24 endif
25 endif
27 as_flags-$o := -xassembler$(if $(filter .S,$(suffix $o)),-with-cpp)
29 $(base)$(objext): $o $(base).vis
30 $(gcc_compile) -c $(as_flags-$<) -include $*.vis $<
32 $(base).vis: $(base)_s$(objext)
33 $(gen-hide-list)
35 $(base)_s$(objext): $o
36 $(gcc_s_compile) -c $(as_flags-$<) $<
38 endif