In asterisk source directory do
./configure
make menuconfig
#check here that you have chan_dahdi in channels and metmee in applications
make -j 3
make install
Note: prerequest have be installed(dahdi with headers etc). All prerequests shown near module when you do menuconfig.