OBJS = ast.cmo parser.cmo scanner.cmo translate.cmo compile.cmo knit.cmo

knit : $(OBJS)
	ocamlc -o knit $(OBJS)

scanner.ml : scanner.mll
	ocamllex scanner.mll

parser.ml parser.mli : parser.mly
	ocamlyacc parser.mly

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

%.cmi : %.mli
	ocamlc -c $<

.PHONY : clean
clean :
	rm -f knit parser.ml parser.mli scanner.ml testall.log \
	*.cmo *.cmi *.out *.diff

# Generated by ocamldep *.ml *.mli
ast.cmo :
ast.cmx :
compile.cmo : translate.cmo ast.cmo
compile.cmx : translate.cmx ast.cmx
knit.cmo : scanner.cmo parser.cmi compile.cmo ast.cmo
knit.cmx : scanner.cmx parser.cmx compile.cmx ast.cmx
parser.cmo : ast.cmo parser.cmi
parser.cmx : ast.cmx parser.cmi
scanner.cmo : parser.cmi
scanner.cmx : parser.cmx
translate.cmo :
translate.cmx :
parser.cmi : ast.cmo
