3 # Simple shell script for building SPLAT! and associated utilities.
4 # Written by John A. Magliacane, KD2BD May 2002
9 echo -n "Compiling citydecoder... "
10 cc -Wall -O3 -s -fomit-frame-pointer citydecoder.c -o citydecoder
16 echo -n "Compiling usgs2sdf... "
17 cc -Wall -O3 -s -fomit-frame-pointer usgs2sdf.c -o usgs2sdf
23 echo -n "Compiling fontdata... "
24 cc -Wall -O3 -s -lz -fomit-frame-pointer fontdata.c -o fontdata
28 if [ $# == "0" ]; then
29 echo "Usage: build { citydecoder, usgs2sdf, fontdata, all }"
32 if [ $1 == "citydecoder" ]; then
36 if [ $1 == "usgs2sdf" ]; then
40 if [ $1 == "fontdata" ]; then
44 if [ $1 == "clean" ]; then
45 rm -f citydecoder usgs2sdf fontdata
48 if [ $1 == "all" ]; then
54 if [ $1 != "citydecoder" ] && [ $1 != "usgs2sdf" ] && [ $1 != "fontdata" ] && [ $1 != "clean" ] && [ $1 != "all" ]; then
55 echo "Usage: build { citydecoder, usgs2sdf, fontdata, all }"