summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-05-02 15:40:59 -0400
committerIan Moffett <ian@osmora.org>2025-05-02 15:40:59 -0400
commit1b79c42492ea902af29f3157b5c38c89078dc3b8 (patch)
tree8cb5c9d796d07ce748c5df788d9b98c3d3f78a4f
parentcf26088bb6bb9e7ddf5d3d5a1298c479ac318226 (diff)
bootstrap: Do host checks
Signed-off-by: Ian Moffett <ian@osmora.org>
-rwxr-xr-xbootstrap17
1 files changed, 15 insertions, 2 deletions
diff --git a/bootstrap b/bootstrap
index f9370ab..bea5ccf 100755
--- a/bootstrap
+++ b/bootstrap
@@ -3,6 +3,19 @@ set -e
mkdir -p lib/
+SYSTEM_NAME="$(uname -s)"
+MAKE="make"
+GIT="git"
+GCC="gcc"
+CLANG="clang"
+
+
+if [ "$SYSTEM_NAME" = "OpenBSD" ]
+then
+ MAKE="$(which gmake)"
+fi
+
+
# arg0: Output path.
# arg1: Command for downloading
try_fetch() {
@@ -27,11 +40,11 @@ fetch() {
}
build_limine() {
- make -C stand/limine/
+ $MAKE -C stand/limine/
}
build_kconf() {
- make -C tools/kconf/
+ $MAKE -C tools/kconf/
}
build() {