build_gm2.sh.orig 680 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. ############################################
  3. # This build file assumes the vishap oberon compiler is installed.
  4. ############################################
  5. #
  6. rm -f ./*.o
  7. rm -f ./*_m2.cpp ./*_m2.s
  8. rm -f a.out
  9. rm -f ./PL0
  10. #
  11. for x in \
  12. CharacterInput.mod \
  13. Interpreter.mod \
  14. ErrorHandling.mod \
  15. Scanner.mod \
  16. StringTable.mod \
  17. Generator.mod \
  18. ObjectTable.mod \
  19. InternalTree.mod \
  20. SyntaxAnalysis.mod \
  21. ErrorHandling.mod \
  22. Synthesis.mod
  23. do
  24. echo "+++++++++++++++++++++++++++++"
  25. echo $x
  26. gm2 -g -I. -flibs=log,pim $x
  27. done
  28. echo "+++++++++++++++++++++++++++++"
  29. echo PL0.mod
  30. gm2 -g -I. -flibs=log,pim PL0.mod -o PL0