makeall.sh 990 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #! /bin/sh
  2. # makeall
  3. # re-builds absolutely everything, inclusing doing a re-profile
  4. # of REDUCE to select what should be compiled into C. This should only
  5. # be required after MAJOR changes in the source.
  6. # Note that you will need to have made a suitable Makefile available,
  7. # eg by going something like
  8. # ln -s ../util/Makefile.xxx Makefile
  9. # for xxx matching the computer you are using.
  10. # This script may be passed a directory as arg1, but if not it expects
  11. # to find my source files in "../cslbase"
  12. if test -n "$1"
  13. then srcdir="$1"
  14. else srcdir=../cslbase
  15. fi
  16. make slowr38
  17. $srcdir/../util/boot38.sh $srcdir
  18. $srcdir/../util/profile.sh $srcdir
  19. cp profile.dat $srcdir/../csl-c
  20. rm profile.dat
  21. $srcdir/../util/c-code38.sh $srcdir
  22. make r38
  23. # the bits from here down are cheaper and are all that is usually needed
  24. $srcdir/../util/full38.sh $srcdir
  25. $srcdir/../util/testall.sh $srcdir
  26. $srcdir/../util/checkall.sh $srcdir
  27. # log/checkall.log and log/times.log should now be up to date.