To build the examples from the source tree, the BUILD_EXAMPLES_FROM_TREE environment variable must be defined. This will ensure the examples' Makefiles use the source tree's public header files and binaries.