How exactly does clan earn XP?
Solution 1:
According to this Supercell forum post, Clan XP is earned by destroying enemy war bases (getting at least one star on a base), getting 40&60% of available war stars, and by winning the war. The total amount of clan XP available in a war depends only on the number of players in the war.