rental property basis and epreciation

Just bought first rental property.   Not a real estate professional. Closed January 16 2020.  Does basis include all of the expenses spent acquiring property?  i.e. Meals, mileage, appraisal, inspections. closing costs, memberships in professional organizations, books, TurboTax? And is depreciation based on Purchase price plus all of those expenses minus value of land?