We consider a plane problem of generation of surface and internal waves in a bounded rotating basin of variable depth by a front of atmospheric pressure moving over the basin. The fluid is assumed to be two-layer. The system of nonlinear long-wave equations is solved numerically by the method of finite differences for the distribution of depths corresponding to a zonal section of the Black-Sea basin. It is shown that the baric front moving over the basin generates barotropic and baroclinic oscillations of the fluid. The intensity of disturbances depends on the velocity of motion and the width of the front. There exists a velocity of motion of the front for which internal waves are generated especially efficiently. When the front leaves the basin, we observe the formation of a packet of internal waves propagating from one lateral boundary of the basin to the other boundary with reflections from the boundaries.