summaryrefslogtreecommitdiff
path: root/mk.sh
diff options
context:
space:
mode:
authorroot <root@t60.home.remexre.com>2024-11-18 10:45:20 -0600
committerroot <root@t60.home.remexre.com>2024-11-18 10:45:20 -0600
commit62e41dcb40d0450d493a804e7f0ac3e32f35aabf (patch)
tree0744f1af53ac605868d8b85cd5446264820a4ca1 /mk.sh
parent943a6597b2bcd1b3ed208458a5cba61ad5b4051c (diff)
Adds Linux support.
Diffstat (limited to 'mk.sh')
-rwxr-xr-xmk.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk.sh b/mk.sh
index 1f749eb..2468954 100755
--- a/mk.sh
+++ b/mk.sh
@@ -4,6 +4,9 @@ set -euo pipefail
repo=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)
srcdir="$repo/src"
+platform="$1"
+shift
+
if [[ "$(pwd -P)" = "$repo" ]]; then
test ! -d build || rm -r build
mkdir build
@@ -12,6 +15,7 @@ fi
cat >config.mak <<EOF
CONFIGURED = 1
+platform = $platform
srcdir = $srcdir
EOF
ln -s "$srcdir/Makefile"