Depending on area of a site & positioning of a structure, place for a garage should be decided. Most of the east & north facing properties are found to have a garage in north-east corner, fraught with dangers.
For having a garage separately from a structure, that garage should be not be annexed to a structure. And depending on the place for a garage, making the use of the compound walls should be decided. Always it is safer to raise a garage independently.