.PHONY: clean

test: test.ml
	ocamlc -c -pp "camlp4o ../lib/pa_ciml.cmo" test.ml
	ocamlc -c test_ciml.c
	ocamlc -o test$(EXE) -custom test_ciml.o test.cmo

clean:
	rm -f \
		$(filter-proper-targets $(glob $(addsuffix .*, test))) \
		test_ciml.o test_ciml.c \
		test test.opt test.run

