]> gcc.gnu.org Git - gcc.git/blame - libgcc/static-object.mk
* config.host (cris-*-elf | cris-*-none): Set extra_parts.
[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
9ifeq ($(suffix $o),.c)
10
11$(base)$(objext): $o
12 $(gcc_compile) $(c_flags) -c $< $(vis_hide)
13
14else
15
16ifneq ($(suffix $o),.S)
17ifneq ($(suffix $o),.asm)
18$(error Unsupported file type: $o)
19endif
20endif
21
22$(base)$(objext): $o
23 $(gcc_compile) -c -xassembler-with-cpp $<
24
25endif
This page took 0.052234 seconds and 5 git commands to generate.