OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [libgcc/] [shared-object.mk] - Blame information for rev 609

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 272 jeremybenn
# 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
 
4
o := $(firstword $(iter-items))
5
iter-items := $(filter-out $o,$(iter-items))
6
 
7
base := $(basename $(notdir $o))
8
 
9
ifeq ($(suffix $o),.c)
10
 
11
$(base)$(objext): $o
12
        $(gcc_compile) $(c_flags) -c $< $(vis_hide)
13
 
14
$(base)_s$(objext): $o
15
        $(gcc_s_compile) $(c_flags) -c $<
16
 
17
else
18
 
19
ifneq ($(suffix $o),.S)
20
ifneq ($(suffix $o),.asm)
21
$(error Unsupported file type: $o)
22
endif
23
endif
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
32
        $(gcc_s_compile) -c -xassembler-with-cpp $<
33
 
34
endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.