Blame projects/asteroid/build.sh

223ac6
#!/bin/bash
223ac6
223ac6
set -e
223ac6
223ac6
if [ -z "$CPP" ]; then
223ac6
    CPP=c++
223ac6
fi
223ac6
223ac6
if [ -z "$TARGET" ]; then
223ac6
    TARGET="asteroid"
223ac6
fi
223ac6
223ac6
LIBS="sdl2"
223ac6
FLAGS="-Wall -DGL_GLEXT_PROTOTYPES -lm -lGL"
223ac6
223ac6
FLAGS="`pkg-config --cflags --libs $LIBS` $FLAGS "
223ac6
if [ "$1" == "debug" ]; then
223ac6
  FLAGS="$FLAGS -O0 -g"
223ac6
fi
223ac6
223ac6
echo $CPP $FLAGS *.cpp -o "$TARGET"
223ac6
     $CPP $FLAGS *.cpp -o "$TARGET"