buildall.sh 347 B

123456789101112131415161718
  1. #!/bin/bash
  2. declare -a files
  3. files[1]=""
  4. files[3]="52"
  5. files[5]="54"
  6. files[7]="56"
  7. for i in "${files[@]}"
  8. do
  9. gcc -shared -Wall -fPIC \
  10. `$1/bin/mod9.13 --cflags --libs` \
  11. `pkg-config --cflags glib-2.0` \
  12. -I/usr/include/python2.7 \
  13. cuser_form${i}.c cuser_form${i}_wrap.c \
  14. -o $1/modlib/modeller/_cuser_form${i}.so -lm -lmodeller
  15. done;