This commit is contained in:
Lauri Räsänen 2021-07-24 16:42:22 +03:00
commit b138a33a71
107 changed files with 10966 additions and 0 deletions

41
proc/osx/gcc_rel.sh Executable file
View 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 ..