URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 734 |
Rev 783 |
# This file is included several times in a row, once for each element of
|
# This file is included several times in a row, once for each element of
|
# $(iter-items). On each inclusion, we advance $o to the next element.
|
# $(iter-items). On each inclusion, we advance $o to the next element.
|
|
|
o := $(firstword $(iter-items))
|
o := $(firstword $(iter-items))
|
iter-items := $(filter-out $o,$(iter-items))
|
iter-items := $(filter-out $o,$(iter-items))
|
|
|
base := $(basename $(notdir $o))
|
base := $(basename $(notdir $o))
|
|
|
c_flags-$o := $(c_flags)
|
c_flags-$o := $(c_flags)
|
|
|
ifeq ($(suffix $o),.c)
|
ifeq ($(suffix $o),.c)
|
|
|
$(base)$(objext): $o
|
$(base)$(objext): $o
|
$(gcc_compile) $(c_flags-$<) -c $< $(vis_hide)
|
$(gcc_compile) $(c_flags-$<) -c $< $(vis_hide)
|
|
|
$(base)_s$(objext): $o
|
$(base)_s$(objext): $o
|
$(gcc_s_compile) $(c_flags-$<) -c $<
|
$(gcc_s_compile) $(c_flags-$<) -c $<
|
|
|
else
|
else
|
|
|
ifneq ($(suffix $o),.S)
|
ifneq ($(suffix $o),.S)
|
ifneq ($(suffix $o),.asm)
|
ifneq ($(suffix $o),.asm)
|
$(error Unsupported file type: $o)
|
$(error Unsupported file type: $o)
|
endif
|
endif
|
endif
|
endif
|
|
|
$(base)$(objext): $o $(base).vis
|
$(base)$(objext): $o $(base).vis
|
$(gcc_compile) -c -xassembler-with-cpp -include $*.vis $<
|
$(gcc_compile) -c -xassembler-with-cpp -include $*.vis $<
|
|
|
$(base).vis: $(base)_s$(objext)
|
$(base).vis: $(base)_s$(objext)
|
$(gen-hide-list)
|
$(gen-hide-list)
|
|
|
$(base)_s$(objext): $o
|
$(base)_s$(objext): $o
|
$(gcc_s_compile) -c -xassembler-with-cpp $<
|
$(gcc_s_compile) -c -xassembler-with-cpp $<
|
|
|
endif
|
endif
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.