NBA

Walsh return to Knicks is all up to him: sources

(
)

Donnie Walsh suffered through two years of having his team mocked — mocking, he says, that was born of fear the Knicks would someday return to prominence.

As they host the Raptors tonight with a playoff berth locked up, Walsh sounded as if the Knicks are on the way to becoming the contender he set out to build.

With the option on the final year of his contract coming up April 30 for owner James Dolan to exercise, it remains to be seen if Walsh returns.

However, two league sources say they believe it is up to Walsh, 70, on whether he comes back next season.

One of those sources said money was a non-issue, but Walsh had a difficult decision to make as to whether he wanted to return or felt his work at the Garden was complete.

“My dream from Day 1 is to put this team on the path to a championship level,” Walsh said.

“I don’t think it’s there now, but we’re getting close. That’s what I said I’d do in three years. That’s what I’ve done.”

Walsh had mixed feelings on gutting the team in the Carmelo Anthony deal, but his three-year rebuilding plan clearly has been a success. Dolan appeared giddy after Sunday’s clincher, walking into the locker room to shake each player’s hand.

“It was important for me to make the playoffs in our third year, so I felt really good about it,” Walsh said.

“From a personal thing, I felt happy. Yeah, [vindicated] a bit. In my mind, we had to make the playoffs by the third year and that would validate [the plan].”

Now Walsh’s work is vindicated, but is it finished? It’s been a trying three years, from a cancer scare to hip surgery to two seasons of salary-cap purging that left his team the butt of jokes.

“Everybody wants to mock the Knicks because they don’t want to see them get good,” said Walsh. “I didn’t. In Indiana, I didn’t want to see the Knicks get good, because they could be good for a long time.”

And that’s a corner he’s convinced his team has turned.

“We’re on the way now, yeah. We’ve got a core group that can be the makings of a very good team,” said Walsh, sounding like a man who could walk away content in a job well done.

His contract doesn’t expire until June 30, so this month’s option deadline could pass without resolution.

If he steps down, possible replacements include Mark Warkentien (hired by the Knicks as a consultant on Jan. 30), ex-Portland GM Kevin Pritchard (whose agent Warren LeGarie also represents Mike D’Antoni), and Toronto’s Bryan Colangelo, who hired D’Antoni in Phoenix.

D’Antoni’s future may be tied to Walsh’s, but he’s under contract for another year — and wants to stay on.

“Yeah, I love what I do, I like my guys, so it’s all good,” the coach said.

“I’m not focused on that. Hypothetically, I’d love to. But we need to make some noise right now.”

D’Antoni also downplayed LeGarie’s presence at Sunday’s game and yesterday’s practice, where he chatted with Walsh.

Additional reporting by Marc Berman.

brian.lewis@nypost.com