How to compile a source file for a particular pair style within LAMMPS

I want to compile pair_style rebomos, and I have source file for that. But I don’t know how to compile it to make it work. Kindly explain step by step.