In a hurry? Here's the executive summary.
$ make KERNEL_DIR=/usr/src/linux
Change KERNEL_DIR to wherever your netfilter-enabled kernel source is.
$ make install
After you've done the above, running `insmod ipfwadm.o' or `insmod ipchains.o' as root should allow you to use ipfwadm or ipchains normally, as before.