Joshua took Makkedah on that day, and struck it with the edge of the sword, and the king of it: he utterly destroyed them and all the souls who were therein; he left none remaining; and he did to the king of Makkedah as he had done to the king of Jericho.
Of interest in this verse is the fact that Makkedah was not mentioned as a member of the coalition formed by Adonizedek, yet the city was utterly destroyed.  Note too that it is not recorded that Jerusalem was destroyed, despite the fact that Adonizedek was the leader of the anti-Israelite coalition.