The present invention relates to compounds of formula (I): wherein A=formula: (a) or formula: (b); X is oxygen or methylene; Y is C
3-6
alkyl or aryl; Z is oxygen or C
1-3
alkyl; R
1
is hydrogen or C
1-3
alkyl; R
2
is hydrogen or C
1-3
alkyl; the or each R
3
is separately C
1-3
alkyl or halo; the or each R
4
is separately C
1-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.