1#!/usr/bin/env bash 2set -e 3 4if test -z "$PATHTOCLANGPP"; then 5 PATHTOCLANGPP=clang++ 6fi 7 8for INDEX in $SOURCE_INDEXES 9do 10 CFLAGS=$(eval echo "\$COMPILER_OPTIONS_$INDEX") 11 SRCFILE=$(eval echo "\$SOURCE_FILE_$INDEX") 12 OBJFILE=$(eval echo "\$OBJECT_FILE_$INDEX") 13 $PATHTOCLANGPP -std=gnu++11 -c $CFLAGS $SRCFILE -o $OBJFILE 14done 15 16$PATHTOCLANGPP $LINKER_OPTIONS $OBJECT_FILES -o $EXECUTABLE_FILE 17