#!/bin/bash # usage: ./compile *.cpp set -e DIR="$(dirname $0)" VERSION="$(cat "$DIR/VERSION" | tr -d '[:space:]')" CXX='g++' CXX_FLAGS='-std=c++14 -O2 -Wall -lxdo -linih -lxdo -linih' g++ "$@" ${CXX_FLAGS} -DCOMFORTABLE_SWIPE_VERSION="\"$VERSION\""