Guest User

Untitled

a guest
Sep 14th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. # /gcc/fact/st1
  2.  
  3. f="fact1"
  4.  
  5. #vi $f.h
  6. #vi lib$f.c
  7. #vi $f.c
  8.  
  9. rm -rf $f
  10.  
  11. #gcc -O3 $f.c -o $f
  12. #gcc -Wall -pipe -s -O3 $f.c -o $f
  13. gcc -Wall -O3 -c lib$f.c -o lib$f.o
  14. ar -r -s lib$f.a lib$f.o
  15. gcc -Wall -O3 $f.c -L/gcc/fact -l$f -o $f
  16.  
  17. rm -rf lib$f.o
  18. rm -rf lib$f.a
  19.  
  20. if [ ! -e $f ]; then
  21. echo
  22. echo compilation problem
  23. echo
  24. exit
  25. fi
  26.  
  27. ./$f
Add Comment
Please, Sign In to add comment