aboutsummaryrefslogtreecommitdiff
path: root/mkconfig
diff options
context:
space:
mode:
authorbhgv <bhgv.empire@gmail.com>2018-03-01 16:54:45 +0200
committerbhgv <bhgv.empire@gmail.com>2018-03-01 16:54:45 +0200
commitb786f20bbab5a59046aa78a2c6c2a11536497202 (patch)
tree0851ecdec889eb9b7ba3751cc04d4f0b474e4a9e /mkconfig
inferno-os tree was separated from the inferno-os-android (separated from the Android driver)
Diffstat (limited to 'mkconfig')
-rw-r--r--mkconfig33
1 files changed, 33 insertions, 0 deletions
diff --git a/mkconfig b/mkconfig
new file mode 100644
index 0000000..8db822b
--- /dev/null
+++ b/mkconfig
@@ -0,0 +1,33 @@
+#
+# Set the following 4 variables. The host system is the system where
+# the software will be built; the target system is where it will run.
+# They are almost always the same.
+
+# On Nt systems, the ROOT path MUST be of the form `drive:/path'
+ROOT=$PWD
+
+#
+# Specify the flavour of Tk (std for standard builds)
+#
+TKSTYLE=std
+
+#
+# Except for building kernels, SYSTARG must always be the same as SYSHOST
+#
+SYSHOST=Nt #Plan9 # build system OS type (Hp, Inferno, Irix, Linux, MacOSX, Nt, Plan9, Solaris)
+SYSTARG=Android #Linux #$SYSHOST # target system OS type (Hp, Inferno, Irix, Linux, Nt, Plan9, Solaris)
+
+#
+# specify the architecture of the target system - Plan 9 imports it from the
+# environment; for other systems it is usually just hard-coded
+#
+OBJTYPE=arm #386 # target system object type (eg, 386, arm, mips, power, s800, sparc)
+#OBJTYPE=$objtype
+
+#
+# no changes required beyond this point
+#
+OBJDIR=$SYSTARG/$OBJTYPE
+
+<$ROOT/mkfiles/mkhost-$SYSHOST # variables appropriate for host system
+<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE # variables used to build target object type