split file, add makefile