generate .lbc file dynamicaly