Ellipsis of faire (ce) que fou (ferait) (“to do what a madman would do, to act as a madman would”).
faire que fou