You can't build MAME universally, but if you follow the standard build instructions on an M1 machine you will get an M1 native binary.

Alternatively, MacPorts now offers both Intel and ARM binaries of MAME.