diff options
author | John Gilmore <gnu@cygnus> | 1991-04-25 04:20:11 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-04-25 04:20:11 +0000 |
commit | a07cc61341225966fd714e8715aeca6c558b5b8e (patch) | |
tree | 4619bd0c087f07b5b8cd155e1bf34ecdce2dbf0e /include/sysdep.h | |
parent | a6ac0c5998db0fb3b89c11800507b7307dba692b (diff) | |
download | gdb-a07cc61341225966fd714e8715aeca6c558b5b8e.zip gdb-a07cc61341225966fd714e8715aeca6c558b5b8e.tar.gz gdb-a07cc61341225966fd714e8715aeca6c558b5b8e.tar.bz2 |
Initial revision
Diffstat (limited to 'include/sysdep.h')
-rwxr-xr-x | include/sysdep.h | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/include/sysdep.h b/include/sysdep.h new file mode 100755 index 0000000..25996d81 --- /dev/null +++ b/include/sysdep.h @@ -0,0 +1,110 @@ +/* Copyright (C) 1990, 1991 Free Software Foundation, Inc. + +This file is part of BFD, the Binary File Diddler. + +BFD is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 1, or (at your option) +any later version. + +BFD is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with BFD; see the file COPYING. If not, write to +the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + +/* $Id$ */ + +/* All the system include files boiled into one place. + + One day, everyone will have the same set of include files.. + + This is ugly, but if you can think of a better way of doing this, + tell me. steve@cygnus.com + +*/ + + + +#ifndef _SYSDEP_H +#define _SYSDEP_H + +/* + The including makefile must define HOST_SYS to be one of these. + Each combination of Machine and OS (and maybe OS Version) must + have a different number. + */ + +#define SUN4_SYS 2 +#define POSIX_SYS 3 +#define AIX_SYS 4 +#define VAX_ULTRIX_SYS 5 +#define i386_SYSV_SYS 6 +#define SUN3_SYS 7 +#define UNKNOWN_SYS 8 +#define DGUX_SYS 9 +#define DEC3100_SYS 10 +#define HP9000_SYS 11 + +#include <ansidecl.h> + +#if __STDC__ +#define PROTO(type, name, arglist) type name arglist +#else +#define PROTO(type, name, arglist) type name () +#define NO_STDARG +#endif + +#ifndef HOST_SYS +#define HOST_SYS = Hey_you_HOST_SYS_has_not_been_defined. +#endif + +#if HOST_SYS==SUN4_SYS +#define HOST_IS_SUN4 1 +#include <sys/h-sun4.h> +#endif + +#if HOST_SYS==DGUX_SYS +#include <sys/h-dgux.h> +#endif + +#if HOST_SYS==POSIX_SYS +#define HOST_IS_POSIX 1 +#endif + +#if HOST_SYS==AIX_SYS +#define HOST_IS_AIX 1 +#include <sys/h-rs6000.h> +#endif + +#if HOST_SYS==VAX_ULTRIX_SYS +#define HOST_IS_VAX_ULTRIX 1 +#include <sys/h-vaxult.h> +#endif + +#if HOST_SYS==i386_SYSV_SYS +#define HOST_IS_i386_SYSV 1 +#define USG +#include <sys/h-i386v.h> +#endif + +#if HOST_SYS==SUN3_SYS +#define HOST_IS_SUN3 1 +#include <sys/h-sun3.h> +#endif + +#if HOST_SYS==DEC3100_SYS +#define HOST_IS_DEC3100 1 +#include <sys/h-dec3100.h> +#endif + +#if HOST_SYS==HP9000_SYS +#define HOST_IS_HP9000 1 +#define USG +#include <sys/h-hp9000.h> +#endif + +#endif |