he = subject spent = verb his days = Direct object (What did he spend? - his days) making money = adverbial phrase of manner (How did he spend his days? - making money)
Some verbs are followed only by the gerund, some by the infinitive, and some by either the gerund or the infinitive. Unfortunately, you have to learn the correct constructions