File: sysinfo.c

package info (click to toggle)
linuxlogo 2.07-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 296 kB
  • ctags: 73
  • sloc: ansic: 982; sh: 125; makefile: 60
file content (34 lines) | stat: -rw-r--r-- 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* Yes this is a bit messy, but it cleans up the makefile a bit *\
\* The C-Preproccessor can be out friend ;)                     */

#ifdef MREE
#undef MREE 
#endif

#if defined(linux)
#define MREE 1

#if defined(m68000)
#include "sysinfo_m68k.c"
#elif  defined(__alpha__)
#include "sysinfo_alpha.c"
#elif defined(__sparc__)
#include "sysinfo_sparc.c"
#else
#include "sysinfo_ix86.c"
#endif 
#endif /* Linux */

#ifdef SGI
#define MREE 1
#include "sysinfo_irix.c"
#endif

#ifdef AIX
#define MREE 1
#include "sysinfo_aix.c"
#endif

#ifndef MREE
#include "sysinfo_default.c"
#endif