OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgcc/] [shared-object.mk] - Blame information for rev 820

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

Line No. Rev Author Line
1 734 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
c_flags-$o := $(c_flags)
10
 
11
ifeq ($(suffix $o),.c)
12
 
13
$(base)$(objext): $o
14
        $(gcc_compile) $(c_flags-$<) -c $< $(vis_hide)
15
 
16
$(base)_s$(objext): $o
17
        $(gcc_s_compile) $(c_flags-$<) -c $<
18
 
19
else
20
 
21
ifneq ($(suffix $o),.S)
22
ifneq ($(suffix $o),.asm)
23
$(error Unsupported file type: $o)
24
endif
25
endif
26
 
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 $<
35
 
36
endif

powered by: WebSVN 2.1.0

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