gs_bucket_array

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README

gcc_rdbg.sh (519B)


      1 #!/bin/bash
      2 
      3 rm -rf bin
      4 mkdir bin
      5 cd bin
      6 
      7 proj_name=App
      8 proj_root_dir=$(pwd)/../
      9 
     10 flags=(
     11 	-std=c99 -x objective-c -O1 -w 
     12 )
     13 
     14 # Include directories
     15 inc=(
     16 	-I ../third_party/include/
     17 )
     18 
     19 # Source files
     20 src=(
     21 	../source/main.c
     22 )
     23 
     24 fworks=(
     25 	-framework OpenGL
     26 	-framework CoreFoundation 
     27 	-framework CoreVideo 
     28 	-framework IOKit 
     29 	-framework Cocoa 
     30 	-framework Carbon
     31 )
     32 
     33 # Build
     34 echo gcc ${flags[*]} ${fworks[*]} ${inc[*]} ${src[*]} -o ${proj_name}
     35 gcc ${flags[*]} ${fworks[*]} ${inc[*]} ${src[*]} -o ${proj_name}
     36 
     37 cd ..
     38 
     39 
     40