found the problem. change DIRS in /sys/src/ape/lib/ap/mkfile to include $objtype (the badly named patch mkfile-broken i just submitted has the fix). you'll need to recompile libap.
the old mkfile had the $objtype hidden in the 'for' loop in install. putting it in the DIRS definition makes it more obvious that it's needed.
