how much did it cost to build the Titanic?

It is said that cost to build Titanic was $7.5 million. It was built in 1912. Adjusting to inflation, it is said that the cost of it today would come around $174 million. Some says that the cost would be approximately $400 million.
On the other hand, it was spent $200 million to make the movie Titanic in 1997.