updated makefile to only build required sources