]>
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 | 8 | targetdependent=true |
8a24a37c | 9 | need_bfd= |
353deb84 RP |
10 | # per-host: |
11 | ||
b678740d | 12 | gas_host=generic |
fecd2382 | 13 | |
b678740d RP |
14 | case "${host_cpu}" in |
15 | a29k | rs6000 | vax) gas_host=${host_cpu} ;; | |
16 | mips) | |
17 | case "${host_os}" in | |
18 | ultrix) gas_host=decstation ;; | |
19 | esac | |
353deb84 | 20 | ;; |
74cc5508 | 21 | *) |
b678740d RP |
22 | case "${host_os}" in |
23 | ansi | ultrix | hpux | sysv*) gas_host=${host_os} ;; | |
24 | *) | |
25 | case "${host_vendor}" in | |
26 | sun) | |
27 | case "${host_cpu}" in | |
28 | m68k) gas_host=sun3 ;; | |
29 | i386) gas_host=sun386 ;; | |
30 | sparc) gas_host=sun4 ;; | |
31 | esac | |
32 | ;; | |
33 | esac | |
34 | ;; | |
35 | esac | |
74cc5508 RP |
36 | ;; |
37 | esac | |
38 | ||
b678740d RP |
39 | # per-target: |
40 | ||
41 | # assign cpu type | |
42 | emulation=generic | |
43 | ||
44 | cpu_type=${target_cpu} | |
45 | ||
74cc5508 | 46 | # assign object format |
b678740d | 47 | case ${target_os} in |
3c9d74a8 RP |
48 | bout*) obj_format=bout ;; |
49 | bsd* | sunos*) obj_format=aout ;; | |
8a24a37c | 50 | |
605cd2a3 SC |
51 | ebmon) |
52 | obj_format=coff | |
53 | need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a" | |
54 | target_cpu=ebmon29k | |
55 | ;; | |
3c9d74a8 RP |
56 | |
57 | generic) obj_format=generic ;; | |
58 | ||
8a24a37c | 59 | hds) |
ace68c4e | 60 | obj_format=coff-bfd |
8a24a37c SC |
61 | need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a" |
62 | ;; | |
63 | ||
ace68c4e SC |
64 | sysv32) |
65 | obj_format=coff | |
66 | emulation=sysv32 | |
67 | ;; | |
3c9d74a8 | 68 | |
ace68c4e SC |
69 | coff* | sysv*) |
70 | obj_format=coff | |
71 | ||
72 | case ${target_vendor} in | |
73 | bull) emulation=dpx2 ;; | |
74 | sco) emulation=sco386 ;; | |
75 | sun) emulation=sun3 ;; | |
76 | *) | |
77 | esac | |
78 | ;; | |
3c9d74a8 RP |
79 | *) |
80 | case ${target_vendor} in | |
81 | aout) obj_format=aout ;; | |
82 | bout) obj_format=bout ;; | |
ace68c4e SC |
83 | coff) |
84 | obj_format=coff | |
85 | case ${target_cpu} in | |
86 | i960) emulation=ic960 ;; | |
87 | esac | |
88 | ;; | |
3c9d74a8 RP |
89 | *) obj_format=aout ;; |
90 | esac | |
74cc5508 | 91 | ;; |
3c9d74a8 | 92 | |
fecd2382 RP |
93 | esac |
94 | ||
74cc5508 | 95 | # assign floating point type |
b678740d | 96 | case ${target_cpu} in |
3c9d74a8 RP |
97 | vax) atof=vax ;; |
98 | *) atof=ieee ;; | |
fecd2382 RP |
99 | esac |
100 | ||
8a24a37c SC |
101 | # and target makefile frag |
102 | ||
3c9d74a8 | 103 | target_makefile_frag=config/mt-${target_cpu} |
8a24a37c | 104 | |
b678740d | 105 | files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \ |
353deb84 | 106 | config/tc-${cpu_type}.h config/te-${emulation}.h \ |
74cc5508 RP |
107 | config/obj-${obj_format}.h config/obj-${obj_format}.c \ |
108 | config/atof-${atof}.c" | |
109 | ||
fecd2382 | 110 | links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c" |