compile.sh 810 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. #
  3. # Author: Nikita Ermakov (coffe92@gmail.com)
  4. # Desc: You can compile StRoot software by just typing ./compile.sh
  5. # after that you can find libraries in the ./libs directory.
  6. # Have fun!
  7. #
  8. # Directories where we want do make
  9. export DIR_TO_MAKE="StarRoot StChain St_base StarClassLibrary StBichsel StEvent StStrangeMuDstMaker StEventUtilities StFemtoDst StHbtMaker StFlowMaker StFemtoEvent"
  10. # Create directory 'libs' and go to StRoot
  11. mkdir libs
  12. mkdir libs_debug
  13. cd StRoot
  14. # Compile all libraries and place them in to 'libs' directory
  15. for i in $DIR_TO_MAKE; do
  16. cd $i
  17. export DEBUG_FLAG=""
  18. make clean && make
  19. mv *.so ../../libs
  20. make clean
  21. export DEBUG_FLAG="-g"
  22. make clean && make
  23. mv *.so ../../libs_debug
  24. make clean
  25. cd ..
  26. done
  27. echo "Done! :P"