Skip to content

Commit

Permalink
Update install_basilisk.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan597 authored Dec 20, 2023
1 parent c591c20 commit 4abe5b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install_basilisk.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
JOBS=$(nproc)

if [[ ! -z $TESTING ]]; then
source $HOME/.bashrc
echo "Testing only"
cd $BASILISK/test
make -j "$JOBS" >/dev/null || (echo 'testing failed' && exit 1)
Expand Down Expand Up @@ -131,14 +132,16 @@ if [[ ! -z $BUILD_GRAPHICS ]]; then
cd ..

echo "export CFLAGS=-I$HOME/local/include" >> "$shellrc"
echo "export LDFLAGS=-L$HOME/local/lib" >> "$shellrc"

echo "Cleaning up..."
cd $HOME && rm -rf *.tar.gz ffmpeg_sources
else
echo "Graphics build disabled..."
fi

CFLAGS="$HOME/local/include -std=gnu99"
CFLAGS="-I$HOME/local/include -std=gnu99"
LDFLAGS="-L$HOME/local/lib"
cd $HOME/basilisk/src/ppr
make && cd ../gl
make libglutils.a libfb_osmesa.a
Expand Down

0 comments on commit 4abe5b7

Please sign in to comment.