Firstly obtain the codes of MAODV protocol from carlton university web portal
I have used the above documents and code for my Major project and have taken contributions from the above links.
step one place the files and give their addresses in makefile.vc and makefile.in
then run make clean and make and then make install
Now create a topology and traffic using cbrgen.tcl script and setdest script (in ..~/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen)
the scenario files should be thoroughly mentioned in your tcl script.
then run your tcl script to obtain tr(trace file) and nam file. Then run the simulations accordingly.