*** empty log message ***
[external/binutils.git] / include / sysdep.h
1 /* Copyright (C) 1990, 1991 Free Software Foundation, Inc.
2
3 This file is part of BFD, the Binary File Diddler.
4
5 BFD is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 1, or (at your option)
8 any later version.
9
10 BFD is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with BFD; see the file COPYING.  If not, write to
17 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
18
19 /* All the system include files boiled into one place. 
20
21    One day, everyone will have the same set of include files..
22
23    This is ugly, but if you can think of a better way of doing this,
24    tell me.  --steve@cygnus.com */
25
26 #ifndef _SYSDEP_H
27 #define _SYSDEP_H
28
29 /*
30  The including makefile must define HOST_SYS to be one of these.
31  Each combination of Machine and OS (and maybe OS Version) must
32  have a different number.
33  */
34
35 #define SUN4_SYS 2
36 #define POSIX_SYS 3
37 #define AIX_SYS 4
38 #define VAX_ULTRIX_SYS 5
39 #define i386_SYSV_SYS 6
40 #define SUN3_SYS 7
41 #define UNKNOWN_SYS 8
42 #define DGUX_SYS 9
43 #define DEC3100_SYS 10
44 #define HP9000_SYS 11
45 #define APOLLO400_SYS 12
46 #define DOS_SYS 13
47 #include <ansidecl.h>
48
49 #if __STDC__
50 #define PROTO(type, name, arglist) type name arglist
51 #else
52 #define PROTO(type, name, arglist) type name ()
53 #define NO_STDARG
54 #endif
55
56 #ifndef HOST_SYS
57 #define HOST_SYS = Hey_you_HOST_SYS_has_not_been_defined.
58 #endif
59
60 #if HOST_SYS==SUN4_SYS
61 #define HOST_IS_SUN4 1
62 #include <sys/h-sun4.h>
63 #endif
64
65 #if HOST_SYS==DGUX_SYS
66 #include <sys/h-dgux.h>
67 #endif
68
69 #if HOST_SYS==POSIX_SYS
70 #define HOST_IS_POSIX 1
71 #endif 
72
73 #if HOST_SYS==AIX_SYS
74 #define HOST_IS_AIX 1
75 #include <sys/h-rs6000.h>
76 #endif
77
78 #if HOST_SYS==VAX_ULTRIX_SYS
79 #define HOST_IS_VAX_ULTRIX 1
80 #include <sys/h-vaxult.h>
81 #endif
82
83 #if HOST_SYS==i386_SYSV_SYS
84 #define HOST_IS_i386_SYSV 1
85 #define USG 
86 #include <sys/h-i386v.h>
87 #endif
88
89 #if HOST_SYS==SUN3_SYS
90 #define HOST_IS_SUN3 1
91 #include <sys/h-sun3.h>
92 #endif
93
94 #if HOST_SYS==DEC3100_SYS
95 #define HOST_IS_DEC3100 1
96 #include <sys/h-dec3100.h>
97 #endif
98
99 #if HOST_SYS==HP9000_SYS
100 #define HOST_IS_HP9000 1
101 #define USG 
102 #include <sys/h-hp9000.h>
103 #endif
104 #if HOST_SYS==APOLLO400_SYS
105 #define HOST_IS_APOLLO400 1
106 #include <sys/h-ap400.h>
107 #endif
108  
109 #if HOST_SYS==DOS_SYS
110 #define HOST_IS_DOS 1
111 #include <sys/h_dos.h>
112 #endif
113
114 #endif