]> Git Repo - binutils.git/blame_incremental - gas/configure.in
Support for 386 coff
[binutils.git] / gas / configure.in
... / ...
CommitLineData
1# This file is configure.in
2#
3# Copyright (C) 1987-1992 Free Software Foundation, Inc.
4#
5# This file is part of GAS, the GNU Assembler.
6#
7# GAS is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2, or (at your option)
10# any later version.
11#
12# GAS is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with GAS; see the file COPYING. If not, write to
19# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
20#
21
22# This file was written, and is maintained by K. Richard Pixley
23# <[email protected]>.
24
25# This file is a shell script that supplies the information necessary
26# to tailor a template configure script into the configure script
27# appropriate for this directory. For more information, check any
28# existing configure script.
29
30srctrigger=as.c
31srcname="gas"
32need_bfd=
33configdirs=doc
34
35# per-host:
36
37gas_host=generic
38
39case "${host_cpu}" in
40a29k | rs6000 | vax) gas_host=${host_cpu} ;;
41mips)
42 case "${host_os}" in
43 ultrix*) gas_host=decstation ;;
44 esac
45 ;;
46i386)
47 case "${host_os}" in
48 aix*) gas_host=i386aix ;;
49 esac
50 ;;
51*)
52 case "${host_os}" in
53 ansi | ultrix | hpux | sysv*) gas_host=${host_os} ;;
54 *)
55 case "${host_vendor}" in
56 sun)
57 case "${host_cpu}" in
58 m68k) gas_host=sun3 ;;
59 i386) gas_host=sun386 ;;
60 sparc) gas_host=sun4 ;;
61 esac
62 ;;
63 esac
64 ;;
65 esac
66 ;;
67esac
68
69# per-target:
70
71# assign cpu type
72emulation=generic
73
74cpu_type=${target_cpu}
75
76# check for architecture variants
77case ${target_cpu} in
78sparclite) cpu_type=sparc ;;
79m680[01234]0) cpu_type=m68k ;;
80m683?2) cpu_type=m68k ;;
81esac
82
83gas_target=${cpu_type}
84
85# assign object format
86case ${target_os} in
87aix*)
88 case "${target_cpu}" in
89 i386) obj_format=coff
90 gas_target=i386aix
91 emulation=i386aix
92 ;;
93 esac
94 ;;
95
96bout*) obj_format=bout ;;
97nindy*) obj_format=bout ;;
98bsd* | sunos*)
99 obj_format=aout
100 emulation=sun3 ;;
101
102udi)
103 obj_format=coffbfd
104 need_bfd="./../bfd/libbfd.a"
105 gas_target=ebmon29k
106 ;;
107ebmon-old)
108 obj_format=coff
109 need_bfd="./../bfd/libbfd.a"
110 gas_target=ebmon29k
111 ;;
112
113ebmon)
114 obj_format=coffbfd
115 need_bfd="./../bfd/libbfd.a"
116 gas_target=ebmon29k
117 ;;
118
119generic) obj_format=generic ;;
120
121xray | hms)
122 obj_format=coffbfd
123 need_bfd="./../bfd/libbfd.a"
124 ;;
125
126sysv32)
127 obj_format=coff
128 emulation=sysv32
129 ;;
130
131sim)
132 obj_format=coffbfd
133 need_bfd="./../bfd/libbfd.a"
134 ;;
135
136
137coff* | sysv*)
138 obj_format=coff
139
140 case ${target_cpu} in
141 m68*) obj_format=coffbfd
142 need_bfd="./../bfd/libbfd.a"
143 gas_target=m68kcoff
144 ;;
145 i386)
146 obj_format=coffbfd
147 need_bfd="./../bfd/libbfd.a"
148 gas_target=i386coff
149 ;;
150
151 esac
152
153 case ${target_vendor} in
154 bull) emulation=dpx2 ;;
155 sco) emulation=sco386 ;;
156 sun) emulation=sun3 ;;
157 *)
158 esac
159 ;;
160vxworks)
161 case ${target_cpu} in
162 i960) obj_format=bout ;;
163 m68k|m680[01234]0|m683?2)
164 obj_format=aout
165 emulation=sun3
166 ;;
167 *) obj_format=aout ;;
168 esac
169 ;;
170OSE | ose)
171 obj_format=aout
172 emulation=sun3
173 ;;
174aout | scout)
175 obj_format=aout
176 ;;
177*)
178 case ${target_vendor} in
179 aout) obj_format=aout ;;
180 bout) obj_format=bout ;;
181 coff)
182 obj_format=coff
183 case ${target_cpu} in
184 i960) emulation=ic960 ;;
185 esac
186 ;;
187 *) obj_format=aout ;;
188 esac
189 ;;
190
191esac
192
193# assign floating point type
194case ${target_cpu} in
195ns32k) atof=ns32k ;;
196vax) atof=vax ;;
197*) atof=ieee ;;
198esac
199
200# and target makefile frag
201
202target_makefile_frag=config/${gas_target}.mt
203
204files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
205 config/tc-${cpu_type}.h config/te-${emulation}.h \
206 config/obj-${obj_format}.h config/obj-${obj_format}.c \
207 config/atof-${atof}.c"
208
209links="host.h targ-cpu.c targ-cpu.h targ-env.h obj-format.h obj-format.c atof-targ.c"
210
211# end of gas/configure.in
This page took 0.022447 seconds and 4 git commands to generate.