Makefile (711B)
1include ../desktop-shared/Makefile.common 2 3DYLIB_PATH=/usr/local/opt/sdl2/lib 4SDL_DYLIB=libSDL2-2.0.0.dylib 5APP_NAME=Gearboy 6 7bundle: 8 rm -rf $(APP_NAME).app 9 mkdir -p $(APP_NAME).app/Contents/{MacOS,Resources,Frameworks} 10 cp Info.plist $(APP_NAME).app/Contents/ 11 cp $(DYLIB_PATH)/$(SDL_DYLIB) $(APP_NAME).app/Contents/Frameworks/ 12 cp iconfile.icns $(APP_NAME).app/Contents/Resources/ 13 cp $(EXE) $(APP_NAME).app/Contents/MacOS/ 14 cp run.sh $(APP_NAME).app/Contents/MacOS/ 15 cp gamecontrollerdb.txt $(APP_NAME).app/Contents/MacOS/ 16 install_name_tool -change $(DYLIB_PATH)/$(SDL_DYLIB) @$(APP_NAME).app/Contents/MacOS/$(SDL_DYLIB) $(APP_NAME).app/Contents/MacOS/$(APP_NAME) 17 18dist: clean all bundle 19 @echo Success!!