compile 167 B

123456789
  1. #!/bin/sh
  2. c_file=$1; shift
  3. so_file=${c_file%.c}.so
  4. echo "Compiling $so_file ... $@"
  5. gcc -shared -fPIC -O2 -g -I../src "$@" "$c_file" -o "$so_file" || exit 1
  6. exit 0