Added build script for Haiku and OpenBSD.
This commit is contained in:
parent
9ede99400b
commit
b0a5838a4a
26
etc/utils/haiku/mk-release.sh
Executable file
26
etc/utils/haiku/mk-release.sh
Executable 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
30
etc/utils/openbsd/mk-release.sh
Executable 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."
|
Loading…
Reference in New Issue
Block a user