The build system of CHARMM is not user friendly nor logical. The manual says M mean MPI and MPIF90 means let mpif90 handle everything.