Codebase list entr / f6b57a54-52d9-4d90-903d-9c8f79b3b78d/main configure
f6b57a54-52d9-4d90-903d-9c8f79b3b78d/main

Tree @f6b57a54-52d9-4d90-903d-9c8f79b3b78d/main (Download .tar.gz)

configure @f6b57a54-52d9-4d90-903d-9c8f79b3b78d/mainraw · history · blame

#!/bin/sh

copy_mk() {
    cmd="cp Makefile.$1 Makefile"
    echo "$cmd"; $cmd
}

case `uname` in
    Darwin) copy_mk macos ;;
    Linux)  copy_mk linux ;;
    *)      copy_mk bsd ;;
esac

[ $# = 0 ] && exit 0

cat <<HELP
Adjust build options by setting the following environment variables:

`make env`

Example: build a static binary and install to your home directory

./configure
CFLAGS="-static" make test
PREFIX=\$HOME/local make install

HELP
exit 1