Makefile 628 B

1234567891011121314151617181920212223242526272829303132333435
  1. ALONZO=agda -c
  2. TESTS=Q Printf Proj TestWith
  3. RTMODS = RTS RTP
  4. PRELUDEMODS=AlonzoPrelude PreludeBool PreludeNat PreludeList PreludeString \
  5. PreludeShow PreludeInt PreludeAll
  6. tests: prelude #$(TESTS)
  7. for i in $(TESTS) ; do \
  8. #$(ALONZO) $$i.agda; ghc -c $$i.hs ; \
  9. ./almake $$i ; \
  10. done
  11. Q: Q.agda
  12. $(ALONZO) Q.agda
  13. ghc -c Q.hs
  14. runtime:
  15. ghc -c RTS.hs
  16. ghc -c RTN.hs
  17. ghc -c RTP.hs
  18. prelude: runtime
  19. for i in $(PRELUDEMODS); do \
  20. echo "Compiling $$i"; $(ALONZO) $$i.agda; ghc -c $$i.hs ; \
  21. done
  22. clean:
  23. for i in $(PRELUDEMODS); do \
  24. rm -f $$i.hs ; \
  25. done
  26. -rm -f $(TESTS)
  27. -rm -f *.hi *.o *~ *.agdai