33# Purpose: Builds the application into a standalone .app bundle for distribution
44
55CC = clang++
6- CFLAGS = -std=c++11 -Wall -mmacosx-version-min=10.9
6+ CFLAGS = -std=c++11 -Wall -mmacosx-version-min=10.9 -arch x86_64
77LFLAGS = -mmacosx-version-min=10.9
88INCS = -I$(CURDIR ) /frameworks/sdl/include/ \
99 -I$(CURDIR ) /../frameworks/imgui/
@@ -22,7 +22,7 @@ $(APPNAME): objects
2222 # Compiling main executable
2323 $(CC) $(CFLAGS) $(LIBS) $(INCS) *.o -o $@ $(LFLAGS)
2424
25- # Removing leftover objects
25+ # Removing leftover objects
2626 $(RM) *.o
2727
2828 # Creating empty .app bundle
@@ -33,7 +33,7 @@ $(APPNAME): objects
3333 cp frameworks/sdl/lib/libSDL2-2.0.0.dylib
[email protected] /Contents/Frameworks/libSDL2-2.0.0.dylib
3434
3535 # Re-linking the dylibs to newly compiled executable
36- install_name_tool -change /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib @executable_path/../Frameworks/libSDL2-2.0.0.dylib $@
36+ install_name_tool -change /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib @executable_path/../Frameworks/libSDL2-2.0.0.dylib $@
3737
3838 # Moving the configured executable and copying other files into .app bundle
3939@@ -52,7 +52,7 @@ test_release:
5252# Runs the program with an attached terminal (Application must be built prior)
5353test_debug :
5454 ./release/$(APPNAME ) .app/Contents/MacOS/$(APPNAME ) \
55-
55+
5656
5757# Removes latest build and object files
5858clean :
0 commit comments