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