Migrate to makefile