]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/static-object.mk
crtstuff.c (USE_EH_FRAME_REGISTRY): Let USE_EH_FRAME_REGISTRY_ALWAYS override USE_PT_...
[thirdparty/gcc.git] / libgcc / static-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
0115d17f
HPN
9# Copy c_flags to a rule-specific copy and use the copy, to avoid the
10# following rules being affected by later changes to c_flags in the
11# including file.
12c_flags-$o := $(c_flags)
13
fa958513
DJ
14ifeq ($(suffix $o),.c)
15
16$(base)$(objext): $o
0115d17f 17 $(gcc_compile) $(c_flags-$<) -c $< $(vis_hide)
fa958513
DJ
18
19else
20
21ifneq ($(suffix $o),.S)
22ifneq ($(suffix $o),.asm)
23$(error Unsupported file type: $o)
24endif
25endif
26
130e00bd
JM
27$(base)$(objext): $o $(base).vis
28 $(gcc_compile) -c -xassembler-with-cpp -include $*.vis $<
29
30$(base).vis: $(base)_s$(objext)
31 $(gen-hide-list)
32
33$(base)_s$(objext): $o
34 $(gcc_s_compile) -c -xassembler-with-cpp $<
fa958513
DJ
35
36endif