OBJS = ast.cmo parser.cmo scanner.cmo builtin.cmo translate.cmo yappl.cmo

yappl : $(OBJS)
	ocamlc -o yappl str.cma unix.cma $(OBJS)

debug : $(OBJS)
	ocamlc -g -o yappl unix.cma $(OBJS)

scanner.ml : scanner.mll
	ocamllex scanner.mll

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

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

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

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

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