gs_bucket_array

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

gcc_rel.sh (379B)


      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=gnu99 -w -ldl -lGL -lX11 -pthread -lXi
     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 # Build
     25 echo gcc -O3 ${inc[*]} ${src[*]} ${flags[*]} -lm -o ${proj_name}
     26 gcc -O3 ${inc[*]} ${src[*]} ${flags[*]} -lm -o ${proj_name}
     27 
     28 cd ..