#!/bin/bash

mkdir build

gcc demo.c gfx.c geometry.c trans.c mem.c scenes.c palette.c random.c \
    \
    -ggdb \
    -Wswitch -Wreturn-type -Wmissing-prototypes -Wunused-variable -Wimplicit-function-declaration -Wextra \
    -lm -lallegro -lallegro_image -lallegro_font -lallegro_primitives -lallegro_ttf -lallegro_audio -lallegro_acodec \
    -o build/coolshit

# export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
# echo $PKG_CONFIG_PATH

# gcc demo.c gfx.c geometry.c trans.c mem.c scenes.c palette.c random.c \
#     -ggdb \
#     -Wswitch -Wreturn-type -Wmissing-prototypes -Wunused-variable -Wimplicit-function-declaration -Wextra \
#     -lm \
#     $(pkg-config --libs --static allegro-static-5 allegro_font-static-5 allegro_primitives-static-5 allegro_ttf-static-5 allegro_audio-static-5 allegro_acodec-static-5 allegro_image-static-5) \
#     -o build/cool_static

cp snowstorm.otf build
cp rymdsyra.ogg build
cp readme.txt build
