Commit 57b3bd81 authored by Shashi Guruprasad's avatar Shashi Guruprasad
Browse files

Made sure that nse can build outside the source tree.

parent 0ea7ea09
......@@ -18,15 +18,27 @@ all: msg
@echo ""
@echo -n "WARNING! You must first do a \"make buildnse\" in $(SRCDIR) "
@echo "if $(SRCDIR)/nse is not built"
@echo -n "WARNING! You must first do a \"make buildnse\""
@echo "if nse is not built"
@echo "WARNING! It takes about 15 minutes for buildnse"
@echo ""
include $(TESTBED_SRCDIR)/GNUmakerules
# Symlinking all these files is the only way to ensure the build
# succeeds with a pre-built nse.patch file. Since we run both
# the testbed as well as ns configure script, we need to resort
# to this kind of hack
cd $(SRCDIR); $(SRCDIR)/nse-install
ln -s $(SRCDIR)/tbevent.h .
ln -s $(SRCDIR)/ .
ln -s $(SRCDIR)/tbnexthop.h .
ln -s $(SRCDIR)/ .
ln -s $(SRCDIR)/ip_fw.h .
ln -s $(SRCDIR)/../../lib/libtb/log.h .
ln -s $(SRCDIR)/../../lib/libtb/tbdefs.h .
ln -s $(SRCDIR)/../lib/event.h .
$(SRCDIR)/nse-install $(SRCDIR)/nse.patch
The web documentation supersedes this README file wrt incorporating
simulated nodes in your experiment
1) You need to explicitly do a "gmake buildnse" in
<builddir>/event/nsetrafgen directory
2) You need the image FBSD-NSE
For NSE integration and traffic generation, we need the following files
as part of the FBSD disk image or it should be part of
/usr/testbed/sup/sup/FBSD43-STD/root*/etc/testbed on the boss node.
if [ ! -d ns-allinone-2.26 ]; then
echo "Downloading ns2.26 source from"
if [ $? -ne 0 ]; then
echo "Failed..."
echo "Downloading ns2.26 source from"
tar xzf ns-allinone-2.26.tar.gz
patch -p0 < nse.patch
if [ $# -ge 1 ]; then
patch -p0 < $1
patch -p0 < nse.patch
cd ns-allinone-2.26
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment