Installing Asterisk with Add ons

Hey guys

How would I go if I want to install Asterisk with cdr_addon_mysql.c and
res_config_mysql.c?

Thank You