X-Git-Url: https://git.gag.com/?p=debian%2Fsplat;a=blobdiff_plain;f=build;fp=build;h=53f3d05924cb43075bbe96a63856878c772b7fb8;hp=8559558df66b3d0eff3a25df680f7b54b2582354;hb=dcc481697c227c3b265d1e68a8a82910c818332c;hpb=3504a1ce545f764f4e96a31fa53dbf498e0bd9f9 diff --git a/build b/build index 8559558..53f3d05 100755 --- a/build +++ b/build @@ -1,15 +1,20 @@ #!/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!" } @@ -41,4 +46,3 @@ else echo "Usage: build { splat, utils, all }" fi fi -