OCAMLC=ocamlc
OCAMLOPT=ocamlopt
OCAMLDEP=ocamldep
INCLUDES=-rectypes        # all relevant -I options here
OCAMLFLAGS=$(INCLUDES)    # add other options for ocamlc here
OCAMLOPTFLAGS=$(INCLUDES) # add other options for ocamlopt here

# Common rules

.PHONY: main

main: unl2caml

%: %.ml
	$(OCAMLOPT) $(OCAMLOPTFLAGS) $< -o $@

%.ml: %.unl unl2caml template.ml
	./unl2caml $< -o $@
