Add a Makefile with a "check" rule for SQL functions