That actually took quite some time, but it's finally finished now. It's missing only a couple minor things from the old Makefile.