gccgo_AR := $(cc_AR)
gccgo_AROBJ := $(cc_AROBJ)
# Shell functions to determine what libraries can be linked by the compiler
gccgo_AR := $(cc_AR)
gccgo_AROBJ := $(cc_AROBJ)
# Shell functions to determine what libraries can be linked by the compiler
# (i.e. yacc/bison also produce accompanying .h files), add them to the list of
# source files that this makefile can generate ('$1_MKSRC'), to later be deleted
# during the clean rule.
# (i.e. yacc/bison also produce accompanying .h files), add them to the list of
# source files that this makefile can generate ('$1_MKSRC'), to later be deleted
# during the clean rule.
$(foreach srcl,$($1_SRCL),\
$(eval $1_MKSRC := $(shell find -name "*.$(srcl)" \
| sed -e 's@^\(.*\).$(srcl)@\1$($(srcl)_STEM:%=.%).$1@g' -e 's@\./@@'))\
$(foreach srcl,$($1_SRCL),\
$(eval $1_MKSRC := $(shell find -name "*.$(srcl)" \
| sed -e 's@^\(.*\).$(srcl)@\1$($(srcl)_STEM:%=.%).$1@g' -e 's@\./@@'))\
$(eval $1_DRV_SRC := $(filter $(DRIVER_DIR)/%,$($1_SOURCES)))
$(eval DRV_SRC += $($1_DRV_SRC))
$(eval $1_DRV_SRC := $(filter $(DRIVER_DIR)/%,$($1_SOURCES)))
$(eval DRV_SRC += $($1_DRV_SRC))
# source files, and allow the compiler to output in its default current working
# directory 'cwd'. this is done by setting the $1_CHDIR flag to 't'
define SRCLANG_TRGLANG_BUILDRULE =
# source files, and allow the compiler to output in its default current working
# directory 'cwd'. this is done by setting the $1_CHDIR flag to 't'
define SRCLANG_TRGLANG_BUILDRULE =
%$($1_STEM:%=.%).$2$(if $($1_DUP), %$($1_STEM:%=.%).$($1_DUP)): %.$1
$(if $($1_CHDIR),cd $$(shell dirname $$@) && )$$($1_C) $$($1_FLAGS)$(if $($1_CHDIR),\
$$(shell echo $$@ | sed -e 's@^.*/\([^\.]*\).*@\1@').$1,\
%$($1_STEM:%=.%).$2$(if $($1_DUP), %$($1_STEM:%=.%).$($1_DUP)): %.$1
$(if $($1_CHDIR),cd $$(shell dirname $$@) && )$$($1_C) $$($1_FLAGS)$(if $($1_CHDIR),\
$$(shell echo $$@ | sed -e 's@^.*/\([^\.]*\).*@\1@').$1,\