Added build script for Haiku and OpenBSD.

This commit is contained in:
LoRd_MuldeR 2022-10-17 20:45:26 +02:00
parent 9ede99400b
commit b0a5838a4a
Signed by: mulder
GPG Key ID: 2B5913365F57E03F
2 changed files with 56 additions and 0 deletions

26
etc/utils/haiku/mk-release.sh Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
set -e
cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../../.."
mk_slunk() {
make -B CC=${1} MARCH=${3} MTUNE=${4} STATIC=1 STRIP=1
cp -vf "frontend/bin/slunkcrypt" "out/slunkcrypt-${2}"
}
rm -rf "out" && mkdir -p "out"
make clean
case "${BE_HOST_CPU}" in
x86_64)
mk_slunk "gcc" "x86_64" "x86-64" "nocona"
;;
x86)
mk_slunk "gcc-x86" "i686" "pentiumpro" "pentium3"
;;
*)
echo "Unknown host CPU type !!!"
exit 1
esac
echo "Build completed successfully."

30
etc/utils/openbsd/mk-release.sh Executable file
View File

@ -0,0 +1,30 @@
#!/bin/ksh
set -e
cd -- "$(dirname -- "${0}")/../../.."
if [ -z "${cc_path}" ]; then
cc_path="/usr/local/bin/egcc"
fi
mk_slunk() {
gmake -B CC="${cc_path}" MARCH=${2} MTUNE=${3} STATIC=1 STRIP=1
cp -vf "frontend/bin/slunkcrypt" "out/slunkcrypt-${1}"
}
rm -rf "out" && mkdir -p "out"
gmake CC="${cc_path}" clean
case "$(uname -m)" in
amd64)
mk_slunk "x86_64" "x86-64" "nocona"
;;
i386)
mk_slunk "i686" "pentiumpro" "pentium3"
;;
*)
echo "Unknown host CPU type !!!"
exit 1
esac
echo "Build completed successfully."