本發明係有關於一種式(I)化合物:其中A、B、D、X、Y、R1 、R2 、R3 、m、p及q定義於內文。亦揭露一種類FMS酪胺酸激酶3、極光激酶或血管內皮生長因子受體之抑制方法。A compound of formula (I):wherein A, B, D, X, Y, R1 , R2 , R3 , m, p, and q are defined herein. Also disclosed is a method for inhibiting FMS-like tyrosine kinase 3, aurora kinase, or vascular endothelial growth factor receptor.