This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
A question about gas configuration.
- From: bjgnu at sunnorth dot com dot cn
- To: binutils at sourceware dot org
- Date: Wed, 26 Sep 2007 19:41:42 +0800
- Subject: A question about gas configuration.
Dears,
score target now has score3 and score7 processors. And i want
to build the whole tools for both score3 and score7 without
configuring twice, using -march=score3 and -march=score7 for
the selection.
Because there are more difference for the two processers, so i
implement gas in two single files, tc-score.c and tc-score7.c for
each processor. Why i separated these files is just to make it
more easier to maintain.
But i can just build tc-score.o, without tc-score7.o.
I saw these in the Makefile.am and configuire files:
TARG_CPU = @target_cpu_type@
TARG_CPU_C = $(srcdir)/config/tc-@target_cpu_type@.c
TARG_CPU_O = tc-@target_cpu_type@.o
TARG_CPU_H = $(srcdir)/config/tc-@target_cpu_type@.h
score*l) cpu_type=score endian=little ;;
score*) cpu_type=score endian=big ;;
if test ${this_target} = $target ; then
target_cpu_type=${cpu_type}
My question is, does binutils provide some methods to build both
tc-score.c and tc-score7.c together? Without configuring twice?
Thanks!