#!/bin/bash
#
# Simple shell script for building SPLAT! and associated utilities.
-# Written by John A. Magliacane, KD2BD May 2002 -- Last update: March 2006
+# Written by John A. Magliacane, KD2BD May 2002 -- Last update: October 2007
#
cpu=`uname -m`
+if [ $cpu == "x86_64" ]; then
+ cpu="x86-64"
+fi
+
build_splat()
{
echo -n "Compiling SPLAT!... "
- g++ -Wall -O3 -s -lm -lbz2 -fomit-frame-pointer -march=$cpu itm.cpp splat.cpp -o splat
+ ## g++ -Wall -O3 -s -lm -lbz2 -fomit-frame-pointer -march=$cpu itm.cpp splat.cpp -o splat
+ g++ -Wall -O3 -fomit-frame-pointer -ffast-math -march=$cpu itm.cpp splat.cpp -lm -lbz2 -o splat
echo "Done!"
}
echo "Usage: build { splat, utils, all }"
fi
fi
-