Bucks pick up 2 young pieces for the rebuild - considering they don't have any firsts for a while picking up Martin in a salary dump isn't a huge deal when getting 2 former lotto picks.
Mavs - also still in rebuild - clean up their cap sheet without getting dramatically worse. They will probably want at least 1 first for PJ.
Detroit fix the mess they have with duren, ship holland - who may or may not be in the trading block this season anyway - for vets still in their prime that can space and defend.