Etymology
Today it means: In a futile manner. Full definition →
From futile + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.