How to build images for client or server in bluetooth mesh examples? #bluetoothmesh


I noticed that in these examples, there's only one main.c file, and only one image file would be built, it can support different hardware, but seems not different roles?
Bluetooth Mesh is supposed to be run in different roles, right?
If one image is enough, how to set it for different roles?