The pattern of Gibbsian segregation was theoretically studied in a binary alloy with deposited film. It has been shown that the temperature dependence of the film-crystal interface composition may exhibit, under certain conditions, one or two jumps (concentration phase transitions) featuring virtually complete enrichment of the surface with one of the alloy components. For the different signs of the energy of interaction between atoms of film and alloy components, the Gibbsian surface segregation may lead to the film separation from the crystal.