#!/bin/bash

if [ -e a.out ]; then
	rm a.out
fi

if [ $(uname -s) = 'Darwin' ]; then
	clang main.c ../libmlx.dylib -L /opt/homebrew/lib -lSDL2 -lm -g;
else
	clang main.c ../libmlx.so -lSDL2 -lm -g -Wall -Wextra -Werror;
fi
