Hi Fitri,
You have to edit the Makefile.module and define AOLSERVER.
$ cd /usr/local/src/aolserver40r10/aolserver/include
$ cp Makefile.module Makefile.module.orig
$ vi Makefile.module
AOLSERVER=/usr/local/src/aolserver/40r10
$ cd ../nscache
$ make install
Please let me know if anyone knows a better way to do this.
Nitish