--- /dev/null
+LIB_JARS= lib.jar
+
+all: compile doc
+
+compile:
+ mkdir -p classes
+ javac -sourcepath src -classpath $(LIB_JARS):../../simgrid.jar -d classes `find -L -name "*.java"`
+
+doc:
+ mkdir -p doc
+ javadoc -sourcepath src -classpath $(LIB_JARS):../../simgrid.jar -d doc psgsim
+
+test:
+ ./test.sh
+
+clean:
+ rm -rf classes doc outputs
+
+# Help Target
+help:
+ @echo "The following are a valid targets for this Makefile:"
+ @echo "................ all (the default if no target is provided)"
+ @echo "................ compile"
+ @echo "................ doc"
+ @echo "................ test"
+ @echo "................ clean"
+
eval ulimit -s 128
fi
echo '------------- Start execution..';
-java -Xmx1024m -cp lib.jar:classes peersim.Simulator $1
+java -Xmx1024m -cp lib.jar:classes:../../simgrid.jar peersim.Simulator $1
echo '------------- done -------------';
exit 0
echo -e "\n";
echo '------------- Execute the edaggregation example under PSG -------------';
echo -e "\n";
-java -Xmx1024m -cp lib.jar:classes peersim.Simulator configs/edaggregationPSG.txt
+java -Xmx1024m -cp lib.jar:classes:../../simgrid.jar peersim.Simulator configs/edaggregationPSG.txt
echo -e "\n";
echo '------------- Execute the edaggregation example under PS -------------';
echo -e "\n";
-java -Xmx1024m -cp lib.jar:classes peersim.Simulator configs/edaggregation.txt
+java -Xmx1024m -cp lib.jar:classes:../../simgrid.jar peersim.Simulator configs/edaggregation.txt
echo -e "\n";
echo '------------- Execute the chord example under PSG -------------';
echo -e "\n";
-java -Xmx1024m -cp lib.jar:classes peersim.Simulator configs/chordPSG.txt
+java -Xmx1024m -cp lib.jar:classes:../../simgrid.jar peersim.Simulator configs/chordPSG.txt
echo -e "\n";
echo '------------- Execute the chord example under PS -------------';
echo -e "\n";
-java -Xmx1024m -cp lib.jar:classes peersim.Simulator configs/chord.txt
+java -Xmx1024m -cp lib.jar:classes:../../simgrid.jar peersim.Simulator configs/chord.txt
echo -e "\n";
echo '------------- Compare the 2 results PS and PSG -------------';
echo -e "\n";