A compound of formula (I),a pharmaceutically acceptable salt, or hydrate thereof, and a method of preparing the same. A method of treating or preventing a physiological disorder caused by abnormal protein tyrosine kinase activity in a mammal comprising administering to said mammal a pharmaceutical composition comprising a compound of formula (I).