initial simple makefile
added a rough proto-type of multi-threading support
test the new threading support