File: srcconf_beos.inc

package info (click to toggle)
oss4 4.2-build2020-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,332 kB
  • sloc: ansic: 239,151; cpp: 18,981; sh: 4,590; pascal: 3,863; asm: 1,189; makefile: 553; php: 53; xml: 46
file content (34 lines) | stat: -rw-r--r-- 909 bytes parent folder | download | duplicates (3)
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
#define HAVE_SYSDEP
#define HAVE_KERNEL_FLAGS
static void
check_sysdep (conf_t * conf, struct utsname *un)
{
  strcpy (conf->cplusplus, "g++ -fno-rtti -fno-exceptions -I.");

  /* fixup machine names */
  if (strcmp (un->machine, "BePC") == 0)
    {
      strcpy (conf->arch, "i586");
    }
  if (strcmp (un->machine, "BePC") == 0 ||
      strcmp (un->machine, "i386") == 0 ||
      strcmp (un->machine, "i486") == 0 ||
      strcmp (un->machine, "i586") == 0 || strcmp (un->machine, "i686") == 0)
    {
      strcpy (conf->platform, "i86pc");
    }
  if (strcmp (un->machine, "BeMac") == 0 ||
      strcmp (un->machine, "BeBox") == 0)
    {
      /* seems to be what Linux uses */
      /* XXX: check for ppc64 ? */
      strcpy (conf->arch, "ppc");
      strcpy (conf->platform, "ppc");
    }
}

static void
add_kernel_flags (FILE * f)
{
  fprintf (f, "CFLAGS=-O2 -D_KERNEL -D_KERNEL_MODE=1 -no-fpic\n");
}