Macrocyclic pyrimidine derivatives of general formula I ##STR00001## in
which R.sup.1 to R.sup.5, X, Y, A, B, m and n have the meanings that are
contained in the description, as inhibitors of the cyclin-dependent
kinase, their processes for production as well as their use as
medications for treating various diseases are described.