* bfd.h, elf-common.h, elf-external.h, elf-internal.h:
[platform/upstream/binutils.git] / include / sysdep.h
1 /* All the system include files boiled into one place (sort of).
2    Copyright 1990, 1991 Free Software Foundation, Inc.
3    Contributed by Cygnus Support.
4
5 This file is part of BFD and the GNU Binutils.  Please don't use it for
6 other programs; better configuration mechanisms than this are needed.
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
21
22 /* All the system include files boiled into one place. 
23
24    One day, everyone will have the same set of include files..
25
26    This is ugly, but if you can think of a better way of doing this,
27    tell me.  --steve@cygnus.com */
28
29 #ifndef _SYSDEP_H
30 #define _SYSDEP_H
31
32 /*
33  The including makefile must define HOST_SYS to be one of these.
34  Each combination of Machine and OS (and maybe OS Version) must
35  have a different number.
36  */
37
38 #define SUN4_SYS 2
39 #define POSIX_SYS 3
40 #define AIX_SYS 4
41 #define VAX_ULTRIX_SYS 5
42 #define i386_SYSV_SYS 6
43 #define SUN3_SYS 7
44 #define UNKNOWN_SYS 8
45 #define DGUX_SYS 9
46 #define DEC3100_SYS 10
47 #define HP9000_SYS 11
48 #define APOLLO400_SYS 12
49 #define DOS_SYS 13
50 #define VAX_BSD_SYS 14
51 #define TAHOE_BSD_SYS 15
52 #define RTBSD_SYS 16  /* IBM RT/PC running bsd Unix */
53 #define IRIX3_SYS 17            /* SGI Iris running irix 3.x */
54 #define IRIX4_SYS 18            /* SGI Iris running cypress */
55 #define HP300BSD_SYS 19
56 #define ULTRA3_SYS 20           /* NYU Ultracomputer */
57 #define NEWSOS3_SYS 21          /* Sony NewsOS 3.x (bsd-4.3 based) */
58 #define AMIX_SYS 22             /* Amiga Unix */
59
60 #include <ansidecl.h>
61
62 #if __STDC__
63 #define PROTO(type, name, arglist) type name arglist
64 #else
65 #define PROTO(type, name, arglist) type name ()
66 #define NO_STDARG
67 #endif
68
69 #ifndef HOST_SYS
70 #define HOST_SYS = Hey_you_HOST_SYS_has_not_been_defined.
71 #endif
72
73 #if HOST_SYS==SUN4_SYS
74 #define HOST_IS_SUN4 1
75 #include <sys/h-sun4.h>
76 #endif
77
78 #if HOST_SYS==DGUX_SYS
79 #include <sys/h-dgux.h>
80 #endif
81
82 #if HOST_SYS==POSIX_SYS
83 #define HOST_IS_POSIX 1
84 #endif 
85
86 #if HOST_SYS==AIX_SYS
87 #define HOST_IS_AIX 1
88 #include <sys/h-rs6000.h>
89 #endif
90
91 #if HOST_SYS==VAX_ULTRIX_SYS
92 #define HOST_IS_VAX_ULTRIX 1
93 #include <sys/h-vaxult.h>
94 #endif
95
96 #if HOST_SYS==i386_SYSV_SYS
97 #define HOST_IS_i386_SYSV 1
98 #define USG 
99 #include <sys/h-i386v.h>
100 #endif
101
102 #if HOST_SYS==SUN3_SYS
103 #define HOST_IS_SUN3 1
104 #include <sys/h-sun3.h>
105 #endif
106
107 #if HOST_SYS==NEWSOS3_SYS
108 #define HOST_IS_SUN3 1 /* Lie - should be close enough */
109 #include <sys/h-sun3.h> /* Probably good enough */
110 #define MISSING_VFPRINTF
111 #endif
112
113 #if HOST_SYS==DEC3100_SYS
114 #define HOST_IS_DEC3100 1
115 #include <sys/h-dec3100.h>
116 #endif
117
118 #if HOST_SYS==HP9000_SYS
119 #define HOST_IS_HP9000 1
120 #define USG 
121 #include <sys/h-hp9000.h>
122 #endif
123
124 #if HOST_SYS==APOLLO400_SYS
125 #define HOST_IS_APOLLO400 1
126 #include <sys/h-ap400.h>
127 #endif
128  
129 #if HOST_SYS==DOS_SYS
130 #define HOST_IS_DOS 1
131 #include <sys/h_dos.h>
132 #endif
133
134 #if HOST_SYS == VAX_BSD_SYS
135 #include <sys/h-vaxbsd.h>
136 #endif
137
138 #if HOST_SYS == TAHOE_BSD_SYS
139 #include <sys/h-tahoebsd.h>
140 #endif
141
142 #if HOST_SYS == RTBSD_SYS       
143 #include <sys/h-rtbsd.h>
144 #endif
145
146 #if HOST_SYS == IRIX3_SYS       
147 #include <sys/h-irix3.h>
148 #endif
149
150 #if HOST_SYS == IRIX4_SYS       
151 #include <sys/h-irix4.h>
152 #endif
153
154 #if HOST_SYS == HP300BSD_SYS
155 #include <sys/h-hp300bsd.h>
156 #endif
157
158 #if HOST_SYS == ULTRA3_SYS
159 #include <sys/h-ultra3.h>
160 #endif
161
162 #if HOST_SYS == AMIX_SYS
163 #include <sys/h-amix.h>
164 #endif
165
166 #endif /* _SYSDEP_H */