revised Makefile, getVMIndex()