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 ILT |
36 | ;; |
37 | sparclite-fujitsu-*) my_target=sun4 | |
38 | ;; | |
39 | i960-wrs-vxworks*) my_target=vxworks960 | |
40 | ;; | |
41 | m68k-wrs-vxworks*) my_target=vxworks68 | |
42 | ;; | |
43 | m680[01234]0-wrs-vxworks*) my_target=vxworks68 | |
44 | ;; | |
45 | m683?2-wrs-vxworks*) my_target=vxworks68 | |
46 | ;; | |
47 | sparc-wrs-vxworks*) my_target=vxsparc | |
48 | ;; | |
49 | m68k-ericsson-ose) my_target=ose68 | |
a70947c1 ILT |
50 | ;; |
51 | m680[01234]0-ericsson-ose) my_target=ose68 | |
52 | ;; | |
53 | m683?2-ericsson-ose) my_target=ose68 | |
ab57b174 ILT |
54 | ;; |
55 | *-tandem-none) my_target=st2000 # FIXME needs better name | |
56 | ;; | |
57 | i386-go32-*) my_target=go32 | |
58 | ;; | |
086c5e37 PB |
59 | i386-*-sco*) my_target=i386-coff |
60 | ;; | |
99e6298a SC |
61 | i386-*-coff) my_target=i386-coff |
62 | ;; | |
b89a86ac ILT |
63 | i386-*-aout) my_target=i386-aout |
64 | ;; | |
086c5e37 PB |
65 | i386-*-sysv*) my_target=i386-coff |
66 | ;; | |
ab57b174 ILT |
67 | m88k-*-*) my_target=m88k-bcs |
68 | ;; | |
69 | a29k-*-udi) my_target=sa29200 | |
70 | ;; | |
71 | a29k-*-ebmon) my_target=ebmon29k | |
72 | ;; | |
73 | a29k-*-*) my_target=coff-a29k | |
74 | ;; | |
75 | h8300-*-hms) my_target=coff-h8300 | |
76 | ;; | |
77 | h8300-*-xray) my_target=ieee-h8300 | |
78 | ;; | |
79 | m68k-sony-*) my_target=news | |
80 | ;; | |
81 | m68k-hp-bsd*) my_target=hp300bsd | |
82 | ;; | |
83 | m68*-*-aout) my_target=m68k | |
84 | ;; | |
85 | m68*-*-coff) my_target=m68k-coff | |
86 | ;; | |
87 | m68*-*-*) echo '***' "Unknown m68k target vendor for ld:" ${target_vendor} 1>&2 | |
88 | exit 1 | |
89 | ;; | |
b89a86ac ILT |
90 | z8k-*sim) my_target=z8ksim |
91 | ;; | |
ab57b174 ILT |
92 | *-*-aout) my_target=${target_cpu}-${target_vendor} |
93 | ;; | |
94 | *-*-coff) my_target=${target_cpu}-${target_vendor} | |
95 | ;; | |
02757e59 SC |
96 | esac |
97 | ||
ab57b174 ILT |
98 | |
99 | ||
9d1fe8a4 | 100 | target_makefile_frag=config/${my_target}.mt |