*** empty log message ***
[deliverable/binutils-gdb.git] / include / sysdep.h
CommitLineData
a07cc613
JG
1/* Copyright (C) 1990, 1991 Free Software Foundation, Inc.
2
3This file is part of BFD, the Binary File Diddler.
4
5BFD is free software; you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation; either version 1, or (at your option)
8any later version.
9
10BFD is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with BFD; see the file COPYING. If not, write to
17the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
18
a07cc613
JG
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,
9c6a9c92 24 tell me. --steve@cygnus.com */
a07cc613
JG
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
46#include <ansidecl.h>
47
48#if __STDC__
49#define PROTO(type, name, arglist) type name arglist
50#else
51#define PROTO(type, name, arglist) type name ()
52#define NO_STDARG
53#endif
54
55#ifndef HOST_SYS
56#define HOST_SYS = Hey_you_HOST_SYS_has_not_been_defined.
57#endif
58
59#if HOST_SYS==SUN4_SYS
60#define HOST_IS_SUN4 1
61#include <sys/h-sun4.h>
62#endif
63
64#if HOST_SYS==DGUX_SYS
65#include <sys/h-dgux.h>
66#endif
67
68#if HOST_SYS==POSIX_SYS
69#define HOST_IS_POSIX 1
70#endif
71
72#if HOST_SYS==AIX_SYS
73#define HOST_IS_AIX 1
74#include <sys/h-rs6000.h>
75#endif
76
77#if HOST_SYS==VAX_ULTRIX_SYS
78#define HOST_IS_VAX_ULTRIX 1
79#include <sys/h-vaxult.h>
80#endif
81
82#if HOST_SYS==i386_SYSV_SYS
83#define HOST_IS_i386_SYSV 1
84#define USG
85#include <sys/h-i386v.h>
86#endif
87
88#if HOST_SYS==SUN3_SYS
89#define HOST_IS_SUN3 1
90#include <sys/h-sun3.h>
91#endif
92
93#if HOST_SYS==DEC3100_SYS
94#define HOST_IS_DEC3100 1
95#include <sys/h-dec3100.h>
96#endif
97
98#if HOST_SYS==HP9000_SYS
99#define HOST_IS_HP9000 1
100#define USG
101#include <sys/h-hp9000.h>
102#endif
103
104#endif
This page took 0.02583 seconds and 4 git commands to generate.