In this case we will only compile sander, not other parts of Amber7 suite. Those can be compiled separately (without MPICH as they do not need it anyway). If you tried to compile sander (cd $AMBERHOME/src/sander; make) you might encounter error similar to this:
...
SYSLIB=`../sysdir lib` ; ../Compile LOAD -o sander \
                sander.o cshf.o noecalc.o noeread.o caldis.o calrate.o dinten.o ...
pgf77 -o sander sander.o cshf.o noecalc.o noeread.o caldis.o calrate.o dinten.o ...
/usr/local/mpich/lib/libmpich.a(farg.o): In function `mpir_iargc__':
farg.o(.text+0x7): undefined reference to `f__xargc'
make: *** [sander] Error 1
An explanation of this error and a workaround is posted somewhere in FAQ section of Portland Group website (look for "How do I fix a ": undefined reference to `f__xargc'" problem?"). In short, create a file farg.f in $AMBERHOME/src/sander directory. Compile it with: pgf77 -c -Msecond_underscore farg.f.
Use MACHINE file provided below to compile and link sander executables.
Machine/Machine.pgf77_mpich.gcc