add MakeFile for server
version3 fix the problem of devide by 0
version3 fix the problem of devide by 0