Define functions for makefile