Skip to content

Commit f7b2236

Browse files
committed
add debug symbols
1 parent 56d18dc commit f7b2236

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

MacOS/makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CC = clang++
2-
CFLAGS = -std=c++17 -Wall -mmacosx-version-min=11.0 -arch x86_64 -arch arm64 -MMD -MP
2+
CFLAGS = -std=c++17 -g -Wall -mmacosx-version-min=11.0 -arch x86_64 -arch arm64 -MMD -MP
33
LFLAGS = -mmacosx-version-min=11.0
44
INCS = -I$(CURDIR)/frameworks/sdl/include/ \
55
-I$(CURDIR)/../frameworks/imgui/
@@ -65,7 +65,7 @@ $(APP_EXE): $(SDL_LIB) $(OBJS)
6565

6666
$(APP_BUNDLE): $(APP_EXE) $(SDL_LIB) resources/Kiwi8.icns src/Info.plist
6767
# Copying the frameworks into .app bundle
68-
cp frameworks/sdl/lib/libSDL2-2.0.0.dylib $(APP_BUNDLE)/Contents/Frameworks/libSDL2-2.0.0.dylib
68+
cp $(SDL_LIB) $(APP_BUNDLE)/Contents/Frameworks/libSDL2-2.0.0.dylib
6969

7070
# Set the dylib's install name to be relative to the bundle
7171
install_name_tool -id @executable_path/../Frameworks/libSDL2-2.0.0.dylib $(APP_BUNDLE)/Contents/Frameworks/libSDL2-2.0.0.dylib
@@ -77,10 +77,10 @@ $(APP_BUNDLE): $(APP_EXE) $(SDL_LIB) resources/Kiwi8.icns src/Info.plist
7777
# Update directory timestamp so Make knows bundle is up-to-date
7878
touch $(APP_BUNDLE)
7979

80-
test-debug: $(APP_BUNDLE)
80+
run-debug: $(APP_BUNDLE)
8181
./$(APP_BUNDLE)/Contents/MacOS/$(APP_NAME)
8282

83-
test-release: $(APP_BUNDLE)
83+
run-release: $(APP_BUNDLE)
8484
open ./$(APP_BUNDLE)
8585

8686
check-dylibs: $(APP_BUNDLE)
@@ -102,4 +102,4 @@ distclean: clean clean-sdl
102102
$(RM) -r frameworks/sdl/backups
103103
$(RM) -r ../MacOS/third_party
104104

105-
.PHONY: all sdl clean clean-sdl distclean test-release test-debug check-dylibs
105+
.PHONY: all sdl clean clean-sdl distclean run-release run-debug check-dylibs

0 commit comments

Comments
 (0)