how to compile C examples of /usr/share/mraa/examples

On the latest debian image , all my rmaa python scripts are working. But for some reason I have to do something in C or C++
There are samples.

in /usr/share/mraa/examples

how do we compile them ?