diff options
Diffstat (limited to 'gas/configure.in')
-rw-r--r-- | gas/configure.in | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/gas/configure.in b/gas/configure.in index f250641..1532d36 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -5,28 +5,42 @@ srctrigger=as.c srcname="gas" +targetdependent=true + +# per-host: + +# per-target: # assign cpu type -case $target in +emulation=generic + +case ${target} in sun4* | sparc*) cpu_type=sparc ;; sun3*) cpu_type=m68k ;; +i386*) + cpu_type=i386 + ;; i960*) cpu_type=i960 + emulation=ic960 ;; a29k*) cpu_type=a29k ;; +m68k*) + cpu_type=m68k + ;; *) cpu_type=generic ;; esac # assign object format -case $target in +case ${target} in *-coff) obj_format=coff ;; @@ -42,7 +56,7 @@ generic) esac # assign floating point type -case $target in +case ${target} in vax) atof=vax ;; @@ -52,7 +66,7 @@ vax) esac files="config/ho-${host}.h config/tc-${cpu_type}.c \ - config/tc-${cpu_type}.h config/te-generic.h \ + config/tc-${cpu_type}.h config/te-${emulation}.h \ config/obj-${obj_format}.h config/obj-${obj_format}.c \ config/atof-${atof}.c" |