Commit f67ad04b authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Fixed compile script/instructions

parent 1ca03dfd
......@@ -5,5 +5,11 @@ Currently, ipassign is not compiled with the rest of Emulab. Until integration
happens, run 'compile.sh' in the 'tbsetup/ipassign' directory. The binaries
will be in 'tbsetup/ipassign/bin'
Note that 'compile.sh' assumes that the directory where the METIS include
files are kept is '/home/duerig/metis/metis/metis-4.0/Lib/'. also, it is
assumed that the METIS library files are kept in
'/home/duerig/metis/metis-4.0/'. If this is not the case, alter the shell
variables at the top.
Until integration, this program should always be run from the 'ipassign'
directory and should be located (along with routecalc) in 'bin/ipassign'.
#!/bin/sh
export EXTRA_LIB_PATH=/users/duerig
export EXTRA_LIB_PATH=/home/duerig/metis/metis-4.0
export EXTRA_INCLUDE_PATH=/home/duerig/metis/metis-4.0/Lib/
g++ -O3 -c -o tmp/ipassign.o -I${EXTRA_INCLUDE_PATH} src/ipassign.cc
g++ -O3 -c -o tmp/bitmath.o -I${EXTRA_INCLUDE_PATH} src/bitmath.cc
g++ -O3 -c -o tmp/Assigner.o -I${EXTRA_INCLUDE_PATH} src/Assigner.cc
g++ -O3 -c -o tmp/ConservativeAssigner.o -I${EXTRA_INCLUDE_PATH} src/ConservativeAssigner.cc
g++ -O3 -c -o tmp/Framework.o -I${EXTRA_INCLUDE_PATH} src/Framework.cc
g++ -O3 -c -o tmp/HostRouter.o -I${EXTRA_INCLUDE_PATH} src/HostRouter.cc
g++ -O3 -c -o tmp/Router.o -I${EXTRA_INCLUDE_PATH} src/Router.cc
g++ -O3 -c -o tmp/LanRouter.o -I${EXTRA_INCLUDE_PATH} src/LanRouter.cc
g++ -O3 -c -o tmp/NetRouter.o -I${EXTRA_INCLUDE_PATH} src/NetRouter.cc
g++ -O3 -c -o tmp/coprocess.o -I${EXTRA_INCLUDE_PATH} src/coprocess.cc
g++ -O3 -o bin/ipassign -L${EXTRA_LIB_PATH}/ tmp/ipassign.o tmp/bitmath.o tmp/Assigner.o tmp/ConservativeAssigner.o tmp/Framework.o tmp/HostRouter.o tmp/Router.o tmp/LanRouter.o tmp/NetRouter.o tmp/coprocess.o -lmetis -lm
g++ -O3 -c -o tmp/routestat.o -I${EXTRA_INCLUDE_PATH} src/routestat.cc
g++ -O3 -o bin/routestat -L${EXTRA_LIB_PATH} tmp/routestat.o tmp/bitmath.o -lmetis -lm
g++ -O3 -o bin/routecalc src/routecalc.cc
g++ -o bin/inet2graph src/inet2graph.cc -lm
g++ -o bin/brite2graph src/brite2graph.cc -lm
g++ -o bin/top2graph src/top2graph.cc -lm
#g++ -O3 -c -o tmp/ipassign.o -I${EXTRA_LIB_PATH}/metis/metis-4.0/Lib/ src/ipassign.cc
#g++ -O3 -c -o tmp/bitmath.o -I${EXTRA_LIB_PATH}/metis/metis-4.0/Lib/ src/bitmath.cc
#g++ -O3 -c -o tmp/Assigner.o -I${EXTRA_LIB_PATH}/metis/metis-4.0/Lib/ src/Assigner.cc
#g++ -O3 -c -o tmp/ConservativeAssigner.o -I${EXTRA_LIB_PATH}/metis/metis-4.0/Lib/ src/ConservativeAssigner.cc
#g++ -O3 -c -o tmp/Framework.o -I${EXTRA_LIB_PATH}/metis/metis-4.0/Lib/ src/Framework.cc
#g++ -O3 -c -o tmp/HostRouter.o -I${EXTRA_LIB_PATH}/metis/metis-4.0/Lib/ src/HostRouter.cc
#g++ -O3 -c -o tmp/Router.o -I${EXTRA_LIB_PATH}/metis/metis-4.0/Lib/ src/Router.cc
#g++ -O3 -c -o tmp/LanRouter.o -I${EXTRA_LIB_PATH}/metis/metis-4.0/Lib/ src/LanRouter.cc
#g++ -O3 -c -o tmp/NetRouter.o -I${EXTRA_LIB_PATH}/metis/metis-4.0/Lib/ src/NetRouter.cc
g++ -O3 -c -o tmp/coprocess.o -I${EXTRA_LIB_PATH}/metis/metis-4.0/Lib/ src/coprocess.cc
g++ -O3 -o bin/ipassign -I${EXTRA_LIB_PATH}/metis/metis-4.0/Lib/ -L${EXTRA_LIB_PATH}/metis/metis-4.0 tmp/ipassign.o tmp/bitmath.o tmp/Assigner.o tmp/ConservativeAssigner.o tmp/Framework.o tmp/HostRouter.o tmp/Router.o tmp/LanRouter.o tmp/NetRouter.o tmp/coprocess.o -lmetis -lm
g++ -O3 -c -o tmp/routestat.o -I${EXTRA_LIB_PATH}/metis/metis-4.0/Lib/ src/routestat.cc
g++ -O3 -o bin/routestat -L${EXTRA_LIB_PATH}/metis/metis-4.0 tmp/routestat.o tmp/bitmath.o -lmetis -lm
#g++ -O3 -o bin/routecalc src/routecalc.cc
#g++ -o bin/inet2graph src/inet2graph.cc -lm
#g++ -o bin/brite2graph src/brite2graph.cc -lm
#g++ -o bin/top2graph src/top2graph.cc -lm
#g++ -o bin/autocheck src/autocheck.cc -lm
#g++ -o bin/boolcmp src/boolcmp.cc -lm
#bin/autocheck
#27338.150u 429.446s 12:16:11.56 62.8% 430+-267k 1+2584io 1998215pf+0w
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