Convert my poor little makefile into a GNU build system