makefile with threads