| 1 | ROOTDIR = ../.. |
| 2 | include $(ROOTDIR)/Makefile.common |
| 3 | include $(ROOTDIR)/Makefile.best_binaries |
| 4 | |
| 5 | OCAMLC ?= $(BEST_OCAMLC) $(STDLIBFLAGS) |
| 6 | |
| 7 | all: texquote2 transf |
| 8 | |
| 9 | |
| 10 | transf: transf.cmo transfmain.cmo |
| 11 | $(OCAMLC) $(COMPFLAGS) -o $@ -g $^ |
| 12 | |
| 13 | transfmain.cmo: transf.cmo |
| 14 | |
| 15 | texquote2: texquote2.ml |
| 16 | $(OCAMLC) $(COMPFLAGS) -o $@ $< |
| 17 | |
| 18 | %.cmo: %.ml |
| 19 | $(OCAMLC) $(COMPFLAGS) -c $< |
| 20 | |
| 21 | %.cmi: %.mli |
| 22 | $(OCAMLC) $(COMPFLAGS) -c $< |
| 23 | |
| 24 | .PHONY: clean |
| 25 | clean: |
| 26 | rm -f *.o *.cm? *.cmx? |
| 27 | rm -f transf.ml |
| 28 | rm -f texquote2 transf |
| 29 | |
| 30 | .PHONY: distclean |
| 31 | distclean: clean |