update makefile and copy some files from base