3 # Simple shell script for building SPLAT! and associated utilities.
4 # Written by John A. Magliacane, KD2BD May 2002 -- Last update: March 2009
9 if [ "$cpu" = "x86_64" ]; then
15 if [ -r std-parms.h ]; then
16 cp std-parms.h splat.h
18 echo "/* Parameters for 3 arc-second standard resolution mode of operation */" > std-parms.h
20 echo "#define MAXPAGES 9" >> std-parms.h
21 echo "#define HD_MODE 0" >> std-parms.h
22 cp std-parms.h splat.h
25 echo -n "Compiling SPLAT!... "
26 g++ -Wall -O3 -fomit-frame-pointer -ffast-math -march=$cpu itm.cpp splat.cpp -lm -lbz2 -o splat
31 echo "Compilation failed!"
34 if [ -r hd-parms.h ]; then
36 echo -n "Compiling SPLAT! HD... "
37 g++ -Wall -O3 -fomit-frame-pointer -ffast-math -march=$cpu itm.cpp splat.cpp -lm -lbz2 -o splat-hd
39 if [ -x splat-hd ]; then
42 echo "Compilation failed!"
54 if [ "$#" = "0" ]; then
55 echo "Usage: build { splat, utils, all }"
58 if [ "$1" = "splat" ]; then
62 if [ "$1" = "utils" ]; then
66 if [ "$1" = "all" ]; then
71 if [ "$1" != "splat" ] && [ "$1" != "utils" ] && [ "$1" != "all" ]; then
72 echo "Usage: build { splat, utils, all }"