Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 49 lines (40 sloc) 965 Bytes
#!/bin/bash
case $(uname) in
*NT*) EXTEMPORE_OS=windows ;;
Linux) EXTEMPORE_OS=linux ;;
Darwin) EXTEMPORE_OS=darwin ;;
*) echo Unsupported OS: $(uname) >&2 ; exit 1 ;;
esac
export EXTEMPORE_OS
if [ -z "$EXT_LLVM_DIR" ]; then
if [ ! -f config/llvm.bash ]; then
echo Missing config/llvm.bash file. See INSTALL. >&2
exit 1
fi
. config/llvm.bash
fi
# LLVM DEFS
EXT_LLVM_CONFIG_SCRIPT="$EXT_LLVM_DIR/bin/llvm-config"
EXT_LLVM_CXXFLAGS=`$EXT_LLVM_CONFIG_SCRIPT --cxxflags`
EXT_LLVM_LDFLAGS=`$EXT_LLVM_CONFIG_SCRIPT --ldflags`
EXT_LLVM_LIBS=`$EXT_LLVM_CONFIG_SCRIPT --libs`
export EXT_LLVM_CXXFLAGS EXT_LLVM_LDFLAGS EXT_LLVM_LIBS
# check for jack audio
if [[ "$@" =~ "-DJACK_AUDIO" ]]
then
JACK_AUDIO=1
export JACK_AUDIO
else
unset JACK_AUDIO
fi
# check for boost
if [[ "$@" =~ "-DEXT_BOOST" ]]
then
EXT_BOOST=1
export EXT_BOOST
else
unset EXT_BOOST
fi
EXT_USER_ARGS=$@
export EXT_USER_ARGS
make -f top.make extempore
Something went wrong with that request. Please try again.