toygame/proc/osx/gcc_dbg.sh
2025-01-11 17:11:28 +02:00

41 lines
532 B
Bash
Executable file

#!/bin/bash
rm -rf bin
mkdir bin
cd bin
proj_name=Game
proj_root_dir=$(pwd)/../
flags=(
-std=c99 -x objective-c -O0 -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 ..