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

Made sure that nse can build outside the source tree.

parent 0ea7ea09
......@@ -18,15 +18,27 @@ all: msg
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
buildnse:
cd $(SRCDIR); $(SRCDIR)/nse-install
ln -s $(SRCDIR)/tbevent.h .
ln -s $(SRCDIR)/tbevent.cc .
ln -s $(SRCDIR)/tbnexthop.h .
ln -s $(SRCDIR)/tbnexthop.cc .
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
sup-install:
cp -p $(INSTALL_FILES) $(INSTALL_SUPDIR)$(CLIENT_BINDIR)
......
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.
......
#!/bin/sh
if [ ! -d ns-allinone-2.26 ]; then
echo "Downloading ns2.26 source from www.emulab.net"
fetch http://www.emulab.net/download/ns-allinone-2.26.tar.gz
fetch http://www.emulab.net/downloads/ns-allinone-2.26.tar.gz
if [ $? -ne 0 ]; then
echo "Failed..."
echo "Downloading ns2.26 source from www.isi.edu"
fetch http://www.isi.edu/nsnam/dist/ns-allinone-2.26.tar.gz
fi
tar xzf ns-allinone-2.26.tar.gz
patch -p0 < nse.patch
if [ $# -ge 1 ]; then
patch -p0 < $1
else
patch -p0 < nse.patch
fi
fi
cd ns-allinone-2.26
./install
......
Markdown is supported
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