do_build.sh 241 B

123456789101112
  1. #!/usr/bin/bash
  2. echo "CC $1"
  3. # well, that's very, very, very ugly, but at least it works :-(
  4. # $2: CC, $3: directory to enter, and $4 is the CC flags, $5 is the
  5. # extended CC flags by arch.
  6. cd $3
  7. $2 $4 $5 -c $1 -o $1.o