summaryrefslogtreecommitdiff
path: root/setup/srcconf_beos.inc
diff options
context:
space:
mode:
Diffstat (limited to 'setup/srcconf_beos.inc')
-rw-r--r--setup/srcconf_beos.inc34
1 files changed, 34 insertions, 0 deletions
diff --git a/setup/srcconf_beos.inc b/setup/srcconf_beos.inc
new file mode 100644
index 0000000..8083e50
--- /dev/null
+++ b/setup/srcconf_beos.inc
@@ -0,0 +1,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");
+}