add Makefile to root directory to compile all programs and all tests