mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-10 22:23:34 +00:00
12 lines
229 B
Bash
Executable File
12 lines
229 B
Bash
Executable File
#!/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 -g -Wall -Wextra -Werror -lm;
|
|
fi
|