Makefile 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. OBJ=render_info.cmo tex.cmo texutil.cmo parser.cmo lexer.cmo texvc.cmo \
  2. render_info.cmx tex.cmx texutil.cmx parser.cmx lexer.cmx texvc.cmx \
  3. lexer.cmi parser.cmi render_info.cmi tex.cmi texutil.cmi texvc.cmi \
  4. lexer.o parser.o render_info.o tex.o texutil.o texvc.o \
  5. lexer.ml parser.ml parser.mli texvc texvc.bc texvc_test.cmo \
  6. texvc_test.cmx texvc_test.cmi texvc_test.o texvc_test util.o \
  7. util.cmo util.cmx util.cmi texvc_cgi.cmi texvc_cgi texvc_cgi.cmo \
  8. render.o render.cmi render.cmo render.cmx texvc_tex.cmx \
  9. texvc_tex.o texvc_tex.cmi texvc_tex html.cmi html.cmo html.cmx \
  10. html.o mathml.cmi mathml.cmo mathml.cmx mathml.o
  11. CGIPATH=-I /usr/lib/ocaml/cgi -I /usr/lib/ocaml/netstring -I /usr/lib/ocaml/pcre
  12. all: texvc texvc_test texvc_tex
  13. texvc.bc: util.cmo parser.cmo html.cmo mathml.cmo texutil.cmo render.cmo lexer.cmo texvc.cmo
  14. ocamlc -o $@ unix.cma $^
  15. texvc: util.cmx parser.cmx html.cmx mathml.cmx texutil.cmx render.cmx lexer.cmx texvc.cmx
  16. ocamlopt -o $@ unix.cmxa $^
  17. texvc_test: util.cmx parser.cmx html.cmx mathml.cmx texutil.cmx lexer.cmx texvc_test.cmx
  18. ocamlopt -o $@ $^
  19. texvc_tex: util.cmx parser.cmx html.cmx mathml.cmx texutil.cmx lexer.cmx texvc_tex.cmx
  20. ocamlopt -o $@ $^
  21. %.ml: %.mll
  22. ocamllex $<
  23. %.mli %.ml: %.mly
  24. ocamlyacc $<
  25. %.cmo: %.ml
  26. ocamlc -c $<
  27. %.cmx: %.ml
  28. ocamlopt -c $<
  29. %.cmi: %.mli
  30. ocamlc -c $<
  31. texvc_cgi.cmo: texvc_cgi.ml
  32. ocamlc -c $(CGIPATH) $<
  33. texvc_cgi: util.cmo parser.cmo texutil.cmo render.cmo lexer.cmo texvc_cgi.cmo
  34. ocamlc -o $@ unix.cma $(CGIPATH) pcre.cma netstring.cma cgi.cma $^
  35. chmod g-w $@
  36. clean:
  37. rm -f $(OBJ)
  38. html.cmo: render_info.cmi tex.cmi util.cmo html.cmi
  39. html.cmx: render_info.cmi tex.cmi util.cmx html.cmi
  40. html.cmi: tex.cmi
  41. lexer.cmo: parser.cmi render_info.cmi tex.cmi texutil.cmi
  42. lexer.cmx: parser.cmx render_info.cmi tex.cmi texutil.cmx
  43. mathml.cmo: tex.cmi mathml.cmi
  44. mathml.cmx: tex.cmi mathml.cmi
  45. mathml.cmi: tex.cmi
  46. parser.cmo: render_info.cmi tex.cmi parser.cmi
  47. parser.cmx: render_info.cmi tex.cmi parser.cmi
  48. parser.cmi: render_info.cmi tex.cmi
  49. render.cmo: texutil.cmi util.cmo
  50. render.cmx: texutil.cmx util.cmx
  51. tex.cmi: render_info.cmi
  52. texutil.cmo: html.cmi parser.cmi render_info.cmi tex.cmi util.cmo texutil.cmi
  53. texutil.cmx: html.cmx parser.cmx render_info.cmi tex.cmi util.cmx texutil.cmi
  54. texutil.cmi: parser.cmi tex.cmi
  55. texvc.cmo: html.cmi lexer.cmo mathml.cmi parser.cmi render.cmo texutil.cmi util.cmo
  56. texvc.cmx: html.cmx lexer.cmx mathml.cmx parser.cmx render.cmx texutil.cmx util.cmx
  57. texvc_cgi.cmo: lexer.cmo parser.cmi render.cmo texutil.cmi util.cmo
  58. texvc_cgi.cmx: lexer.cmx parser.cmx render.cmx texutil.cmx util.cmx
  59. texvc_test.cmo: html.cmi lexer.cmo parser.cmi texutil.cmi util.cmo
  60. texvc_test.cmx: html.cmx lexer.cmx parser.cmx texutil.cmx util.cmx
  61. texvc_tex.cmo: lexer.cmo parser.cmi texutil.cmi util.cmo
  62. texvc_tex.cmx: lexer.cmx parser.cmx texutil.cmx util.cmx