What is the meaning of Mercenarily?

In a mercenary way, for selfish reason of profit or gain.

Source: wiktionary.org