Generate makefile for tests

That allows test to be run in parallel from make -j