Deductions & credits

Can the survey fees, attorney fees, etc to subdivide for sale be added to the cost basis?  Do I need to reserve any of the initial cost of the property to use with the cost basis for when I sell the house that we built after purchasing the land as one parcel.  Thank  you !