Squashed
This commit is contained in:
commit
b138a33a71
107 changed files with 10966 additions and 0 deletions
41
proc/osx/gcc_rel.sh
Executable file
41
proc/osx/gcc_rel.sh
Executable file
|
@ -0,0 +1,41 @@
|
|||
#!/bin/bash
|
||||
|
||||
rm -rf bin
|
||||
mkdir bin
|
||||
cd bin
|
||||
|
||||
proj_name=Game
|
||||
proj_root_dir=$(pwd)/../
|
||||
|
||||
flags=(
|
||||
-std=c99 -x objective-c -O3 -w
|
||||
)
|
||||
|
||||
# Include directories
|
||||
inc=(
|
||||
-I ../third_party/include/
|
||||
)
|
||||
|
||||
# Source files
|
||||
src=(
|
||||
../src/main.c
|
||||
../src/**/*.c
|
||||
)
|
||||
|
||||
fworks=(
|
||||
-framework OpenGL
|
||||
-framework CoreFoundation
|
||||
-framework CoreVideo
|
||||
-framework IOKit
|
||||
-framework Cocoa
|
||||
-framework Carbon
|
||||
)
|
||||
|
||||
# Build
|
||||
echo gcc ${flags[*]} ${fworks[*]} ${inc[*]} ${src[*]} -o ${proj_name}
|
||||
gcc ${flags[*]} ${fworks[*]} ${inc[*]} ${src[*]} -o ${proj_name}
|
||||
|
||||
cd ..
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue