Replaces static makefiles with heredocs, removes add-subdir.sh,  and updates README.