add Makefile, flags support