#!/bin/sh
# build script

COMP="g++" # for winshit: i686-w64-mingw32-g++ 
FLAGS="-O3 -std=c++98 -Wall -Wextra -pedantic -g"

rm *.o

for f in ./*.cpp; do
  $COMP -c $FLAGS -o $f.o $f
done

$COMP $FLAGS -o libremage *.o -lallegro -lallegro_video -lallegro_dialog -lallegro_acodec -lallegro_audio -lallegro_main -lallegro_primitives -lallegro_image -lallegro_color -lallegro_font -lallegro_main -lallegro_ttf -lm
