Commit | Line | Data |
---|---|---|
02757e59 SC |
1 | # This file is a shell script fragment that supplies the information |
2 | # necessary to tailor a template configure script into the configure | |
3 | # script appropriate for this directory. For more information, check | |
4 | # any existing configure script. | |
5 | ||
6 | srctrigger=ldmain.c | |
7 | srcname="linker" | |
818a192a | 8 | target_dependent=true |
02757e59 SC |
9 | |
10 | # per-host: | |
11 | ||
086c5e37 | 12 | . ${srcdir}/../bfd/configure.host |
02757e59 | 13 | |
8a60817c | 14 | # Set up to make a link between the host's include file and "sysdep.h". |
9d1fe8a4 | 15 | files="../bfd/hosts/${my_host}.h" |
8a60817c JG |
16 | links="sysdep.h" |
17 | ||
818a192a | 18 | if [ ! -f ${srcdir}/${files} ] ; then |
086c5e37 PB |
19 | files=../bfd/hosts/std-host.h |
20 | echo "[${srcname} has no specific support for host ${host} -- using std-host]" | |
02757e59 | 21 | fi |
ab57b174 | 22 | |
8a60817c | 23 | host_makefile_frag= |
ab57b174 | 24 | |
9d1fe8a4 SC |
25 | if [ -f ${srcdir}/config/${my_host}.mh ] ; then |
26 | host_makefile_frag=config/${my_host}.mh | |
8a60817c | 27 | fi |
02757e59 SC |
28 | |
29 | # per-target: | |
30 | ||
ab57b174 ILT |
31 | case "${target}" in |
32 | ||
33 | sparc-sun-sunos4*) my_target=sun4 | |
34 | ;; | |
086c5e37 | 35 | m68k-sun-sunos[34]*) my_target=sun3 |
ab57b174 | 36 | ;; |
42b5c739 | 37 | sparclite*-fujitsu-*) my_target=sun4 |
ab57b174 | 38 | ;; |
42b5c739 ILT |
39 | sparc*-*-aout) my_target=sun4 |
40 | ;; | |
e637dcf0 KR |
41 | # start-sanitize-v9 |
42 | sparc64*) my_target=sun4 | |
43 | ;; | |
44 | # end-sanitize-v9 | |
42b5c739 ILT |
45 | i960-wrs-vxworks*) my_target=i960 |
46 | ;; | |
47 | i960-intel-nindy) my_target=i960 | |
ab57b174 ILT |
48 | ;; |
49 | m68k-wrs-vxworks*) my_target=vxworks68 | |
50 | ;; | |
51 | m680[01234]0-wrs-vxworks*) my_target=vxworks68 | |
52 | ;; | |
53 | m683?2-wrs-vxworks*) my_target=vxworks68 | |
54 | ;; | |
42b5c739 | 55 | sparc*-wrs-vxworks*) my_target=sun4 |
ab57b174 ILT |
56 | ;; |
57 | m68k-ericsson-ose) my_target=ose68 | |
a70947c1 ILT |
58 | ;; |
59 | m680[01234]0-ericsson-ose) my_target=ose68 | |
60 | ;; | |
61 | m683?2-ericsson-ose) my_target=ose68 | |
ab57b174 ILT |
62 | ;; |
63 | *-tandem-none) my_target=st2000 # FIXME needs better name | |
64 | ;; | |
034351e3 | 65 | i[34]86-*-go32) my_target=go32 |
ab57b174 | 66 | ;; |
034351e3 | 67 | i[34]86-*-sco*) my_target=i386-coff |
086c5e37 | 68 | ;; |
034351e3 | 69 | i[34]86-*-coff) my_target=i386-coff |
99e6298a | 70 | ;; |
e637dcf0 KR |
71 | i[34]86-*-bsd) my_target=i386-bsd |
72 | ;; | |
034351e3 | 73 | i[34]86-*-aout) my_target=i386-aout |
b89a86ac | 74 | ;; |
034351e3 | 75 | i[34]86-*-sysv*) my_target=i386-coff |
086c5e37 | 76 | ;; |
ab57b174 ILT |
77 | m88k-*-*) my_target=m88k-bcs |
78 | ;; | |
79 | a29k-*-udi) my_target=sa29200 | |
80 | ;; | |
81 | a29k-*-ebmon) my_target=ebmon29k | |
82 | ;; | |
83 | a29k-*-*) my_target=coff-a29k | |
84 | ;; | |
85 | h8300-*-hms) my_target=coff-h8300 | |
86 | ;; | |
034351e3 | 87 | h8500-*-hms) my_target=coff-h8500 |
ab57b174 | 88 | ;; |
034351e3 PB |
89 | # start-sanitize-sh |
90 | sh-*-*) my_target=coff-sh | |
91 | ;; | |
92 | # end-sanitize-sh | |
ab57b174 ILT |
93 | m68k-sony-*) my_target=news |
94 | ;; | |
95 | m68k-hp-bsd*) my_target=hp300bsd | |
96 | ;; | |
97 | m68*-*-aout) my_target=m68k | |
98 | ;; | |
99 | m68*-*-coff) my_target=m68k-coff | |
100 | ;; | |
101 | m68*-*-*) echo '***' "Unknown m68k target vendor for ld:" ${target_vendor} 1>&2 | |
102 | exit 1 | |
103 | ;; | |
034351e3 PB |
104 | vax-dec-ultrix* | vax-dec-bsd*) my_target=vax |
105 | ;; | |
42b5c739 ILT |
106 | mips-dec-ultrix*) my_target=mips-lit |
107 | ;; | |
e637dcf0 KR |
108 | mips-sgi-irix*) my_target=mips-big |
109 | ;; | |
034351e3 PB |
110 | mips-idt-ecoff) my_target=mips-idt |
111 | ;; | |
e637dcf0 KR |
112 | mips-dec-bsd*) my_target=mipsbsd |
113 | ;; | |
b89a86ac ILT |
114 | z8k-*sim) my_target=z8ksim |
115 | ;; | |
ab57b174 ILT |
116 | *-*-aout) my_target=${target_cpu}-${target_vendor} |
117 | ;; | |
118 | *-*-coff) my_target=${target_cpu}-${target_vendor} | |
119 | ;; | |
02757e59 SC |
120 | esac |
121 | ||
ab57b174 ILT |
122 | |
123 | ||
9d1fe8a4 | 124 | target_makefile_frag=config/${my_target}.mt |