2017-04-30 09:23:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
#
|
|
|
|
|
# Auto Sonde Decoder build script.
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# Build rs_detect.
|
2018-05-09 12:00:56 +00:00
|
|
|
echo "Building rs_detect"
|
2017-04-30 09:23:19 +00:00
|
|
|
cd ../scan/
|
2019-02-28 09:10:44 +00:00
|
|
|
gcc dft_detect.c -lm -o dft_detect -DNOC34C50
|
2017-04-30 09:23:19 +00:00
|
|
|
|
2018-05-09 12:25:31 +00:00
|
|
|
echo "Building RS92/RS41/DFM Demodulators"
|
2017-12-19 08:14:33 +00:00
|
|
|
cd ../demod/
|
|
|
|
|
gcc -c demod.c
|
|
|
|
|
gcc -c demod_dft.c
|
2018-05-09 12:00:56 +00:00
|
|
|
gcc rs92dm_dft.c demod_dft.o -lm -o rs92ecc -I../ecc/ -I../rs92
|
2019-02-27 09:41:55 +00:00
|
|
|
gcc rs41dm_dft.c demod_dft.o -lm -o rs41ecc -I../ecc/ -I../rs41 -w
|
2018-05-09 12:25:31 +00:00
|
|
|
gcc dfm09dm_dft.c demod_dft.o -lm -o dfm09ecc -I../ecc/ -I../dfm
|
2018-12-18 22:33:37 +00:00
|
|
|
# Build M10 decoder
|
2019-02-02 05:12:16 +00:00
|
|
|
echo "Building M10 Demodulator."
|
2018-12-18 22:33:37 +00:00
|
|
|
cd ../m10/
|
2019-02-04 13:02:09 +00:00
|
|
|
g++ M10.cpp M10Decoder.cpp M10GeneralParser.cpp M10GtopParser.cpp M10TrimbleParser.cpp AudioFile.cpp -lm -o m10 -std=c++11
|
2018-12-18 22:33:37 +00:00
|
|
|
|
2017-04-30 09:23:19 +00:00
|
|
|
|
|
|
|
|
# Copy all necessary files into this directory.
|
2018-05-09 12:00:56 +00:00
|
|
|
echo "Copying files into auto_rx directory."
|
2017-04-30 09:23:19 +00:00
|
|
|
cd ../auto_rx/
|
|
|
|
|
cp ../scan/rs_detect .
|
2019-02-27 09:41:55 +00:00
|
|
|
cp ../scan/dft_detect .
|
2017-12-19 08:14:33 +00:00
|
|
|
cp ../demod/rs92ecc .
|
|
|
|
|
cp ../demod/rs41ecc .
|
2018-05-09 12:25:31 +00:00
|
|
|
cp ../demod/dfm09ecc .
|
2018-12-18 22:33:37 +00:00
|
|
|
cp ../m10/m10 .
|
2017-04-30 09:23:19 +00:00
|
|
|
|
2017-12-05 09:55:57 +00:00
|
|
|
echo "Done!"
|