summaryrefslogtreecommitdiff
path: root/makemk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'makemk.sh')
-rwxr-xr-xmakemk.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/makemk.sh b/makemk.sh
index 5bbce2db..48bf973f 100755
--- a/makemk.sh
+++ b/makemk.sh
@@ -6,13 +6,19 @@
# support@vitanuova.com
-# change these defines as appropriate
+# change these defines as appropriate here or in mkconfig
# ROOT should be the root of the Inferno tree
ROOT=/usr/inferno
SYSTARG=FreeBSD
OBJTYPE=386
SYSTYPE=posix
+
+# if you have already changed mkconfig from the distribution, we'll use the definitions from that
+grep -s 'SYSTARG=Plan9' mkconfig || . ./mkconfig
+
PLAT=$ROOT/$SYSTARG/$OBJTYPE
+
+# you might need to adjust the CC, LD, AR, and RANLIB definitions after this point
CC="p gcc -c -I$PLAT/include -I$ROOT/include -I$ROOT/utils/include"
LD="p gcc"
AR="p ar crvs"