Hello,
r.example should compile with provided Make file just fine. Most of
"std*" things are handled by main Make file and You have to provide
specific things, still I don't see anything specific in Your provided
example. Main Make file is made when You run ./configure in main GRASS
source directory.