Normally the flat roof coverings would go up the wall a bit where it joins the main wall. Then there's a groove cut horizontally into the wall along the whole length of the roof (using a stihl saw), and a lead flashing is held into this groove with lead wedges and dressed down to cover/protect...