Seperated build and link in Makefile