update for 3.10, add makefile