diff options
author | K. Richard Pixley <rich@cygnus> | 1991-08-14 00:29:34 +0000 |
---|---|---|
committer | K. Richard Pixley <rich@cygnus> | 1991-08-14 00:29:34 +0000 |
commit | 353deb845b197b2733b97d2127b57364e4589c13 (patch) | |
tree | 3fed520e0b2d17c2cc0a77869724981664d21927 /gas/configure.in | |
parent | a79c6033ed4df262e86ac15a016e187e65d0674c (diff) | |
download | gdb-353deb845b197b2733b97d2127b57364e4589c13.zip gdb-353deb845b197b2733b97d2127b57364e4589c13.tar.gz gdb-353deb845b197b2733b97d2127b57364e4589c13.tar.bz2 |
Deal with emulations more gracefully.
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" |