Turkey has been secretly buying ISIS oil thus providing it with revenues. Western nations have participated in purchasing this oil. Turkey supposedly crushed a coup but in doing so eliminated all of the secular opposition to supporting the Islamists. Now Turkey is attacking the Kurds the only force currently defeating ISIS in battle after battle.
Ethno Religious map of Iraq [2014/6] (Source: The Institute for the Study of War, The Long War Journal, CIA World Factbook.. GRAPHIC: Swati Sharma, Laris Karklis and Gene Thorp.) Published June 11, 2014.
obama won't fund the Kirds because they actually fight isis, but he will fund mercenaries who will fight for the highest bidder. So when isis pays them a little more, adds in a sex slave, they get to keep the guns obama gave them.