OCAMLPACKS = xml-light2 uuid

# -----------------------------------------------------------------------
# autogen stuff
# -----------------------------------------------------------------------

# should move this into global constants file in root and stop using
# relative paths...
AUTOGEN_DIR = ../../autogen

# only gen_api requires datamodel library:
OCAMLINCLUDES += .. ../.. ../../templates
OCAML_LIBS += ../../templates/template ../datamodel

OCamlProgram(main, main)

# -----------------------------------------------------------------------
# programs that depend on autogen files
# -----------------------------------------------------------------------

.PHONY: clean
clean:
	rm -f *~ *.opt *.run *.a *.cma *.cmxa *.cmo *.cmi *.o *.cmx *.omc *.annot gen_api

.PHONY: lua_error_codes
lua_error_codes: main
	./main