]> gcc.gnu.org Git - gcc.git/blame - libgcc/shared-object.mk
config.host: Add m32c*-*-rtems*.
[gcc.git] / libgcc / shared-object.mk
CommitLineData
fa958513
DJ
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
4o := $(firstword $(iter-items))
5iter-items := $(filter-out $o,$(iter-items))
6
7base := $(basename $(notdir $o))
8
9ifeq ($(suffix $o),.c)
10
11$(base)$(objext): $o
12 $(gcc_compile) $(c_flags) -c $< $(vis_hide)
13
14$(base)_s$(objext): $o
d0aede14 15 $(gcc_s_compile) $(c_flags) -c $<
fa958513
DJ
16
17else
18
19ifneq ($(suffix $o),.S)
20ifneq ($(suffix $o),.asm)
21$(error Unsupported file type: $o)
22endif
23endif
24
25$(base)$(objext): $o $(base).vis
26 $(gcc_compile) -c -xassembler-with-cpp -include $*.vis $<
27
28$(base).vis: $(base)_s$(objext)
29 $(gen-hide-list)
30
31$(base)_s$(objext): $o
d0aede14 32 $(gcc_s_compile) -c -xassembler-with-cpp $<
fa958513
DJ
33
34endif
This page took 0.142621 seconds and 5 git commands to generate.