update makefile and perl file