One makefile now. Moved build functions to main.