The present invention relates to compounds of formula (I): wherein A=formula: (a) or formula: (b); X is oxygen or methylene; Y is C3-6 alkyl or aryl; Z is oxygen or C1-3 alkyl; R1 is hydrogen or C1-3 alkyl; R2 is hydrogen or C1-3 alkyl; the or each R3 is separately C1-3 alkyl or halo; the or each R4 is separately C1-3 alkyl or halo; p is 0 to 4; q is 0 to 4; m is 0 or 1; and n is 1 to 3. These compounds are useful as kinase inhibitors for the treatment of cancer and other diseases.