You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
456 B

copy_mk() {
cmd="cp Makefile.$1 Makefile"
echo "$cmd"; $cmd
case `uname` in
Darwin) copy_mk macos ;;
Linux) copy_mk linux ;;
*) copy_mk bsd ;;
[ $# = 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
CFLAGS="-static" make test
PREFIX=\$HOME/local make install
exit 1