add OUR_OF_SOURCE flag to Makfile; add out-of-source sample build/Makefile; start coding genroot.py and genbranch.py