Skip to content

Commit

Permalink
simplify build & install for *BSD
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Jan 17, 2014
1 parent d3b3071 commit f63db27
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,16 @@ export INSTALL_BIN=ginstall
export CC=gcc
fi

if [[ "$(uname)" == *BSD* ]]; then
export MAKE=gmake
export PREFIX=/usr/local
fi

case "$1" in
"" ) build;;
"default" ) build;;
"install" ) install;;
"nix32" ) CFLAGS=-m32 LDFLAGS=-m32 build;;
"bsd" ) MAKE=gmake PREFIX=/usr/local build;;
"bsd_install" ) MAKE=gmake PREFIX=/usr/local install;;
"cross-win32" ) CROSS=i686-w64-mingw32- build;;
"cross-win64" ) CROSS=x86_64-w64-mingw32- build;;
"cygwin-mingw32" ) CROSS=i686-pc-mingw32- build;;
Expand Down

0 comments on commit f63db27

Please sign in to comment.