aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1642d3f..05fdbd8 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,10 @@ $(TARGET): $(OBJ_CPP) $(LUA_OBJ)
ifeq ($(MAKE_APP),true)
mkdir -p $(dir $(INFO_PLIST))
cp Info.plist $(INFO_PLIST)
+ mkdir -p $(TARGET_DIR)
+ cp /opt/homebrew/opt/sdl2/lib/libSDL2-2.0.0.dylib $(TARGET_DIR)/libSDL2.dylib
+ install_name_tool -change /opt/homebrew/opt/sdl2/lib/libSDL2-2.0.0.dylib @executable_path/libSDL2.dylib $(TARGET)
+ otool -l $(TARGET)
endif
build/main.o: src/main.cpp