add layout.mak and its relations