LABLGTK_DIR = /usr/lib/ocaml/lablgtk LABLGTK_MATHVIEW_DIR = .. MINIDOM_DIR = ../minidom OCAMLC = ocamlc -I $(LABLGTK_DIR) -I $(LABLGTK_MATHVIEW_DIR) \ -I $(MINIDOM_DIR) -I mlmathview OCAMLOPT = ocamlopt -I $(LABLGTK_DIR) -I $(LABLGTK_MATHVIEW_DIR) \ -I $(MINIDOM_DIR) -I mlmathview all: test opt: test.opt test: test.cmo $(OCAMLC) -custom -o test lablgtk.cma gtkInit.cmo \ $(MINIDOM_DIR)/minidom.cmo \ $(MINIDOM_DIR)/ominidom.cmo \ $(LABLGTK_MATHVIEW_DIR)/lablgtkmathview.cma \ -cclib "$(MINIDOM_DIR)/ml_minidom.o" \ test.cmo \ -cclib "-lstr -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk \ -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm \ -L/usr/local/lib/gtkmathview -lgtkmathview \ $(LABLGTK_MATHVIEW_DIR)/ml_gtk_mathview.o" test.opt: test.cmx $(OCAMLOPT) -o test.opt lablgtk.cmxa gtkInit.cmx \ $(MINIDOM_DIR)/minidom.cmx \ $(MINIDOM_DIR)/ominidom.cmx \ $(LABLGTK_MATHVIEW_DIR)/lablgtkmathview.cmxa \ -cclib "$(MINIDOM_DIR)/ml_minidom.o" \ test.cmx \ -cclib "-lstr -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk \ -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm \ -L/usr/local/lib/gtkmathview -lgtkmathview \ $(LABLGTK_MATHVIEW_DIR)/ml_gtk_mathview.o" .SUFFIXES: .ml .mli .cmo .cmi .cmx .ml.cmo: $(OCAMLC) -c $< .mli.cmi: $(OCAMLC) -c $< .ml.cmx: $(OCAMLOPT) -c $< clean: rm -f *.cm[iox] *.o test test.opt t1lib.log test.ps