Makefile and other functions