mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 06:33:35 +00:00
fixing run file and lib name on macos
This commit is contained in:
3
Makefile
3
Makefile
@@ -6,7 +6,7 @@
|
||||
# By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2022/10/04 16:43:41 by maldavid #+# #+# #
|
||||
# Updated: 2023/12/12 13:00:48 by kbz_8 ### ########.fr #
|
||||
# Updated: 2023/12/12 13:19:33 by kbz_8 ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@@ -46,6 +46,7 @@ endif
|
||||
ifeq ($(OS), Darwin)
|
||||
LDLIBS += -L /opt/homebrew/lib -lSDL2
|
||||
CXXFLAGS += -I /opt/homebrew/include
|
||||
NAME = libmlx.dylib
|
||||
endif
|
||||
|
||||
ifeq ($(DEBUG), true)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user