This application discloses 5-phenyl-1H-pyridin-2-one and
6-phenyl-2H-pyridazin-3-one derivatives according to generic Formulae
I-III: ##STR00001## wherein, variables R, X, Y.sup.1, Y.sup.2, Y.sup.3,
Y.sup.4, n and m are defined as described herein, which inhibit Btk. The
compounds disclosed herein are useful to modulate the activity of Btk and
treat diseases associated with excessive Btk activity. The compounds are
further useful to treat inflammatory and auto immune diseases associated
with aberrant B-cell proliferation such as rheumatoid arthritis. Also
disclosed are compositions containing compounds of Formulae I-III and at
least one carrier, diluent or excipient.