restructure build make files to use separated preprocessor defines
it simplify bootstrap and resource related part of build make files