Blob Blame Raw
#!/bin/bash

set -e

function call() {
    echo "$@"
    "$@"
}


FLAGS="-Wall -std=c++11"
if [ "$1" = "debug" ]; then
    FLAGS="$FLAGS -g -O0"
else
    FLAGS="$FLAGS -O3"
fi

call c++ $FLAGS `pkg-config --cflags --libs gtkmm-3.0` *.cpp -o vector