

%.cmo: %.ml
	ocamlc -c  $<

%.cmx: %.ml 
	ocamlopt -unsafe -c $<

all: myarray.cmo kernel.cmo kdt.cmo kdtfunct.cmo kdttest.cmo kdtfuncttest.cmo myarray.cmx kernel.cmx kdt.cmx  kdtfunct.cmx kdttest.cmx

top: all
	ocamlmktop -o kdttop myarray.cmo kernel.cmo kdtfunct.cmo kdtfuncttest.cmo

test: all
	ocamlc -o test myarray.cmo kernel.cmo kdt.cmo kdttest.cmo
	ocamlc -o test2  myarray.cmo kernel.cmo kdtfunct.cmo kdtfuncttest.cmo
clean: 
	rm -f *.cmo *.cmi *.cmx *.o test test2
