OBJS = scanner.cmo ast.cmo parser.cmo translate.cmo makefile.cmo sip.cmo

TARFILES = Makefile scanner.mll ast.ml parser.mly translate.ml makefile.ml sip.ml

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

parser.ml parser.mli: parser.mly
	ocamlyacc -v parser.mly

scanner.ml : scanner.mll
	ocamllex scanner.mll

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

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

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

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