]>
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 |
8a24a37c | 48 | sysv* | -coff* | ebmon ) |
fecd2382 RP |
49 | obj_format=coff |
50 | ;; | |
8a24a37c SC |
51 | |
52 | hds) | |
53 | obj_format=ieee | |
54 | need_bfd="$(unsubdir)/../bfd$(subdir)/libbfd.a" | |
55 | ;; | |
56 | ||
b678740d | 57 | bout*) |
fecd2382 RP |
58 | obj_format=bout |
59 | ;; | |
b678740d RP |
60 | bsd* | sunos* | *) |
61 | obj_format=aout | |
62 | ;; | |
74cc5508 RP |
63 | generic) |
64 | obj_format=generic | |
65 | ;; | |
fecd2382 RP |
66 | esac |
67 | ||
74cc5508 | 68 | # assign floating point type |
b678740d | 69 | case ${target_cpu} in |
fecd2382 RP |
70 | vax) |
71 | atof=vax | |
72 | ;; | |
73 | *) | |
74 | atof=ieee | |
75 | ;; | |
76 | esac | |
77 | ||
8a24a37c SC |
78 | # and target makefile frag |
79 | ||
80 | target_makefile_frag=config/tmake-${target_cpu} | |
81 | ||
82 | ||
b678740d | 83 | files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \ |
353deb84 | 84 | config/tc-${cpu_type}.h config/te-${emulation}.h \ |
74cc5508 RP |
85 | config/obj-${obj_format}.h config/obj-${obj_format}.c \ |
86 | config/atof-${atof}.c" | |
87 | ||
fecd2382 | 88 | links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c" |