OBJS = ast.cmo parser.cmo scanner.cmo compile.cmo seal.cmo

TARFILES = Makefile testall.sh scanner.mll parser.mly \
	ast.ml compile.ml seal.ml \

nifty50 : $(OBJS)
	ocamlc -o nifty50 $(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 $<

nifty50.tar.gz : $(TARFILES)
	cd .. && tar czf nifty50/nifty50.tar.gz $(TARFILES:%=nifty50/%)

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

# Generated by ocamldep *.ml *.mli
ast.cmo:
ast.cmx:
bytecode.cmo: ast.cmo
bytecode.cmx: ast.cmx
compiler.cmo: bytecode.cmo ast.cmo
compiler.cmx: bytecode.cmx ast.cmx
execute.cmo: bytecode.cmo ast.cmo
execute.cmx: bytecode.cmx ast.cmx
parser.cmo: ast.cmo parser.cmi
parser.cmx: ast.cmx parser.cmi
parser.cmi: ast.cmo


