How wars affect giving

How did the wars affect giving? How did it affect what we now call "nonprofits" at the time?