fixing run file and lib name on macos

This commit is contained in:
Kbz-8
2023-12-12 13:27:19 +01:00
parent 843d7f0fe2
commit 3c52fd05f3
2 changed files with 9 additions and 2 deletions

View File

@@ -1 +1,7 @@
clang main.c ../libmlx.so -lSDL2 -g && ./a.out
#!/bin/bash
if [ $(uname -s) = 'Darwin' ]; then
clang main.c ../libmlx.dylib -L /opt/homebrew/lib -lSDL2 -g && ./a.out;
else
clang main.c ../libmlx.so -lSDL2 -g && ./a.out;
fi