add Makefile mode