build_gm2.sh~ 615 B

1234567891011121314151617181920212223242526272829303132
  1. #
  2. ############################################
  3. # This build file assumes the vishap oberon compiler is installed.
  4. ############################################
  5. #
  6. rm -f ./*.o
  7. rm -f ./PL0
  8. #
  9. for x in \
  10. CharacterInput.mod \
  11. Interpreter.mod \
  12. ErrorHandling.mod \
  13. Scanner.mod \
  14. StringTable.mod \
  15. Generator.mod \
  16. ObjectTable.mod \
  17. InternalTree.mod \
  18. SyntaxAnalysis.mod \
  19. ErrorHandling.mod \
  20. Synthesis.mod
  21. do
  22. echo "+++++++++++++++++++++++++++++"
  23. echo $x
  24. gm2 -fiso -c $x
  25. done
  26. echo "+++++++++++++++++++++++++++++"
  27. echo PL0.mod
  28. gm2 -fiso *.o PL0.mod -o PL0