-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile
More file actions
executable file
·13 lines (7 loc) · 1.93 KB
/
compile
File metadata and controls
executable file
·13 lines (7 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
gcc -Wno-overflow -arch x86_64 -lz -framework SDL -framework SDL_mixer -framework Cocoa -framework libpng12 -framework openGl -Iinclude/SDL/ -Iinclude/SDL_mixer -lpython2.6 main.c -lSDLmain include/SDLMain.m lib/libfreetypeosx.a -D isWindows=0
#with debug flags:
#gcc -O0 -g -Wno-overflow -arch x86_64 -lz -framework SDL -framework SDL_mixer -framework Cocoa -framework libpng12 -framework openGl -Iinclude/SDL/ -Iinclude/SDL_mixer -lpython2.6 main.c -lSDLmain include/SDLMain.m lib/libfreetypeosx.a -D isWindows=0
#gcc -arch x86_64 -lz -lSDLmain -lSDL -Wl,-framework,Cocoa -D_THREAD_SAFE -Wno-overflow -framework SDL_mixer -framework libpng12 -framework openGl -Iinclude/SDL/ -Iinclude/SDL_mixer -lpython2.6 main.c lib/libfreetypeosx.a -D isWindows=0
#the original build script from xcode:
#/Developer/usr/bin/gcc-4.2 -x c -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.6.sdk -mfix-and-continue -mmacosx-version-min=10.6 -gdwarf-2 -I/Users/clay/game/build/gameSDLPort.build/Debug/gameSDLPort.build/gameSDLPort.hmap -F/Users/clay/game/build/Debug -F/Developer/SDKs/MacOSX10.6.sdk/usr/local/lib -F/Users/clay/Library/Frameworks -F/Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks -I/Users/clay/game/build/Debug/include -I/usr/local/include/freetype2 -I/Users/clay/Library/Frameworks/SDL.framework/Headers -I/Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks/SDL.framework/Headers -I/Users/clay/game/build/gameSDLPort.build/Debug/gameSDLPort.build/DerivedSources/x86_64 -I/Users/clay/game/build/gameSDLPort.build/Debug/gameSDLPort.build/DerivedSources -include /var/folders/4T/4Tl9BmMmE5axDMQlEoBfeU+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/gameSDLPort_Prefix-eufjukummoynxtcmppqgvtztefxq/gameSDLPort_Prefix.pch -c /Users/clay/game/main.c -o /Users/clay/game/build/gameSDLPort.build/Debug/gameSDLPort.build/Objects-normal/x86_64/main.o