How are they separate structures if they are connected with a common porch? A single roof does not make a single building per the building code.