Mosques would often belong to a "külliye", a set of soup-kitchen, medrese, sometimes a hospital, maybe a library and such. This is the library building.
Copyright Dick Osseman. For use see my Profile.