LibIPC examples in many languages:
and soon even more!
make in the right directory.
Some makefile utilities
All examples' makefiles include
Go have a look.
You'll be able to ask for a static build, run an application with valgrind with many options, and so on.
make STATIC=1 build will compile your example as a static executable (in all languages).