]>
Commit | Line | Data |
---|---|---|
fecd2382 RP |
1 | # This file is a shell script that supplies the information necessary |
2 | # to tailor a template configure script into the configure script | |
3 | # appropriate for this directory. For more information, check any | |
4 | # existing configure script. | |
5 | ||
6 | srctrigger=as.c | |
7 | srcname="gas" | |
353deb84 RP |
8 | targetdependent=true |
9 | ||
10 | # per-host: | |
11 | ||
12 | # per-target: | |
fecd2382 | 13 | |
74cc5508 | 14 | # assign cpu type |
353deb84 RP |
15 | emulation=generic |
16 | ||
17 | case ${target} in | |
74cc5508 RP |
18 | sun4* | sparc*) |
19 | cpu_type=sparc | |
20 | ;; | |
21 | sun3*) | |
22 | cpu_type=m68k | |
23 | ;; | |
353deb84 RP |
24 | i386*) |
25 | cpu_type=i386 | |
26 | ;; | |
74cc5508 RP |
27 | i960*) |
28 | cpu_type=i960 | |
353deb84 | 29 | emulation=ic960 |
74cc5508 RP |
30 | ;; |
31 | a29k*) | |
32 | cpu_type=a29k | |
33 | ;; | |
353deb84 RP |
34 | m68k*) |
35 | cpu_type=m68k | |
36 | ;; | |
74cc5508 RP |
37 | *) |
38 | cpu_type=generic | |
39 | ;; | |
40 | esac | |
41 | ||
42 | # assign object format | |
353deb84 | 43 | case ${target} in |
fecd2382 RP |
44 | *-coff) |
45 | obj_format=coff | |
46 | ;; | |
47 | *-bout) | |
48 | obj_format=bout | |
49 | ;; | |
74cc5508 RP |
50 | generic) |
51 | obj_format=generic | |
52 | ;; | |
fecd2382 RP |
53 | *) |
54 | obj_format=aout | |
55 | ;; | |
56 | esac | |
57 | ||
74cc5508 | 58 | # assign floating point type |
353deb84 | 59 | case ${target} in |
fecd2382 RP |
60 | vax) |
61 | atof=vax | |
62 | ;; | |
63 | *) | |
64 | atof=ieee | |
65 | ;; | |
66 | esac | |
67 | ||
74cc5508 | 68 | files="config/ho-${host}.h config/tc-${cpu_type}.c \ |
353deb84 | 69 | config/tc-${cpu_type}.h config/te-${emulation}.h \ |
74cc5508 RP |
70 | config/obj-${obj_format}.h config/obj-${obj_format}.c \ |
71 | config/atof-${atof}.c" | |
72 | ||
fecd2382 | 73 | links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c" |