split the makefile for sources and test