Commit Graph

93 Commits

Author SHA1 Message Date
Nate Bargmann
5fbef72af3 Properly exclude non-Linux/MS Windows build of G313
While the Winradio G313 backend wasn't being compiled on a non-Linux
POSIX system, the register function in winradio.c was which caused an
error linking rigctl.  Also, the host_os test in the configure script
now looks for a string containg "*linux-gnu*" which accepts such systems
as the Raspberry Pi which is defined as "linux-gnueabihf".

Thanks to Lorenzo Simoncello, IW3HER, for reporting this build error on
the Raspberry Pi.
2014-11-19 22:02:30 -06:00
Nate Bargmann
6ea09a138a Clean up build system, fix test programs
Clean up various left over commented lines from dlopen to single
libhamlib transition.  Remove unneeded configure variables.

Correct minor inconsistencies in Makefile.am files.

Define a new variable, READLINE_LIBS, so that only programs that offer
Readline support are linked against it.

Fix various compilation warnings and errors in test files revealed with
'make check' on MinGW.

Define rig and rotor backends to (mostly) be built in alphabetical
order.
2013-12-10 20:14:22 -06:00
Julian Cable
3c15a1d6c3 Use Automake conditionals for G313 build
Split G313 sources into POSIX and Windows versions and use Automake
conditionals for building on *linux-gnu or  mingw*, pw32*, or cygwin
platforms.

Fixed dlopen issue on g313 backend which broke rigmatrix generation.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-11-23 08:03:17 -06:00
Ladislav Vaiz
f632695131 Android build updates for monolithic build
Android is now built as a static library.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-09-19 07:25:08 -05:00
Nate Bargmann
9210621c75 Remove dependency on libltdl
No longer depend on libltdl from the libtool package.  The
winradio/linradio/wg313api backend still depends on libdl, but since it
is only compiled on POSIX, it will use the POSIX supplied libdl.

Update documentation to remove references to libltdl.
2013-09-18 22:58:00 -05:00
Nate Bargmann
332a04b7cd Clean up backend Makefile.am files
Moved all backend *.h files into the SOURCES primary as Automake
documentation states all source file types should be listed.  This
causes Automake to include *.h files in rebuild rules for the targets.

Removed the '-DIN_HAMLIB' assignment from the CFLAGS primary in each
backend and assigned it to AM_CPPFLAGS in configure.ac.  The effect is
the same and it simplifies the backend Makefile.am files.

Removed all commented lines.
2013-09-16 21:51:39 -05:00
Remi Chateauneu
60019c9444 Monolitic libraries. 2013-09-08 14:56:28 +01:00
Nate Bargmann
1c1a0797bd g313.c: Correct CPP conditional
Add a #else between tests for _WIN32 and __CYGWIN__
2013-05-10 06:39:25 -05:00
Nate Bargmann
6e104f14f2 Test for cygwin to avoid Linux specific code
Compile failed on Cygwin looking for Linux specific header files.  Add a
preprocessor test for cygwin to only compile Windows compatible code.
2013-05-09 22:02:24 -05:00
Ladislav Vaiz
6d4295af2c Add Android build support
Android makefile fragments are distributed as extra distribution files
by the GNU build system but are otherwise ignored.  The Android build
support is independent and does not rely on the GNU build system.

See android/README.android for more info.

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2013-04-26 22:31:56 -05:00
Julian Cable
92a80da264 wrg313api.c: Fix Win32 (MinGW) build issue
Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-11-11 20:44:10 -06:00
Julian Cable
0005b9a511 WinRadio G313: Updates from Julian Campbell
"I've re-written the hamlib backend to stream the audio, if and spectrum
pcm samples to simple file system objects.

If no path is given, streaming is not requested. If the path can't be
openned, no streaming is requested.

The file is openned non-blocking and overruns are just silently
discarded.

I've tested it using named fifos and if there is no active reader it
fails to open and if there is an active reader it streams fine.

Thats as simple as it can get.

In terms of the project files, I've put the wrg313api.c and wrg313api.h
files in the existing linradio subfolder of winradio.

The .h file is the g313 equivalent of the wrapi.h file already there.
The .c file actually just contains the dlopen and the assignments to the
function variables.

The actual API shared library is binary only (and 32-bit only), and not
included in my patch."

Signed-off-by: Nate Bargmann <n0nb@n0nb.us>
2012-11-10 07:37:11 -06:00
Stephane Fillod
eb8fc66675 winradio: fix ineffective packed attribute 2012-06-23 16:51:13 +02:00
Nate Bargmann
01ab10bf10 Include backend specific notes with 'make dist'
(cherry picked from commit 20814924b2)
2012-03-01 21:23:16 -06:00
Nate Bargmann
be2fefcf18 Update version of modified backends
Per Stephane's request, updated the version string of backends modified
since 1.2.14 release.  Newly added backends were left alone.
2012-02-02 20:10:37 -06:00
Stephane Fillod
8b26904aa5 Quell cppcheck warnings 2012-01-29 23:37:59 +01:00
Nate Bargmann
4863209a07 Assure NULL terminated strings in winradio file.
Various strncpy operations could result in a port pathname that is not a
NULL terminated string as the allowed string length is the same size as
the buffer per the strncpy manual page.  This is corrected by assuring
that the allowed length is FILPATHLEN - 1.
2012-01-07 21:55:37 -06:00
Nate Bargmann
77f92769d9 Update LGPL header in WiNRADiO source files.
TNX to Lucian Laga, YO6PLB, for the notification.
2011-08-22 21:38:38 -05:00
Kamal Mostafa, KA6MAL
2567b93af7 Move backend libraries into /usr/lib/hamlib directory.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2988 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-09-26 02:23:50 +00:00
Stéphane Fillod, F8CFE
58bf987f4f remove double binding of dll symbol
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2652 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-02-20 12:38:29 +00:00
Stéphane Fillod, F8CFE
16c2af2d00 Add Winradio G305
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2576 7ae35d74-ebe9-4afe-98af-79ac388436b8
2009-01-11 13:21:21 +00:00
Thomas Beierlein, DL1JBE
b1bf5c9c67 changed RIG_STATUS_NEW into RIG_STATUS_UNTESTED.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2424 7ae35d74-ebe9-4afe-98af-79ac388436b8
2008-10-26 13:54:52 +00:00
Stéphane Fillod, F8CFE
5403a48f6c fix memory access after freeing
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2217 7ae35d74-ebe9-4afe-98af-79ac388436b8
2007-09-18 19:34:43 +00:00
Nate Bargmann, N0NB
30550d15b7 Added S-meter functionality. Thanks to Simone.
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2186 7ae35d74-ebe9-4afe-98af-79ac388436b8
2007-02-22 16:54:46 +00:00
Nate Bargmann, N0NB
081e1d4595 20061119:
New:
		New g313.c for G313i/G313e RX support.  Thanks to
		Simone Stoeppler for this support.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2163 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-11-19 13:06:37 +00:00
Nate Bargmann, N0NB
6124a3cbc2 20061118:
Update:
		New Winradio backend, G313i/G313e RX, from Simone Stoeppler.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2162 7ae35d74-ebe9-4afe-98af-79ac388436b8
2006-11-19 03:04:20 +00:00
Stéphane Fillod, F8CFE
6fbf59e8dc correct SignalStrength computation and function pointer types
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1818 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-08-23 19:48:41 +00:00
Stéphane Fillod, F8CFE
b697ce1859 bump version
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1808 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-08-16 22:33:07 +00:00
Stéphane Fillod, F8CFE
4c16d9b1d4 Some winradio backends have only support for Linux module, ie. depend on linux/ioctl.h
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1802 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-08-16 20:44:16 +00:00
Stéphane Fillod, F8CFE
6593aa6235 fix DLL function name binding
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1788 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-08-08 21:38:02 +00:00
Stéphane Fillod, F8CFE
6c91ab3632 Added G303 support
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1722 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-04-16 20:08:08 +00:00
Stéphane Fillod, F8CFE
9395fdea50 Add G303 support, allow build on non-Linux systems
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1721 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-04-16 20:07:47 +00:00
Stéphane Fillod, F8CFE
35511d272b Allow build on non-Linux systems
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1720 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-04-16 20:06:24 +00:00
Stéphane Fillod, F8CFE
68b3fef8dd Initial release of G3 wrapper
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1719 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-04-16 20:05:31 +00:00
Stéphane Fillod, F8CFE
64d539acd9 be freq_t and setting_t type agnostic
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1641 7ae35d74-ebe9-4afe-98af-79ac388436b8
2004-01-15 22:43:59 +00:00
Stéphane Fillod, F8CFE
84ad9b827b include fixup, stdio.h is not included by rig.h anymore
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1551 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-10-01 19:32:04 +00:00
Stéphane Fillod, F8CFE
aba3325e7f Missing WR-1550 registration, from Juergen DC3BW
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1532 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-09-07 14:07:48 +00:00
Stéphane Fillod, F8CFE
960c83c4c5 * added ABI VERSION to backend entry point symbol name
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1442 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-16 22:30:43 +00:00
Stéphane Fillod, F8CFE
e0b2a7b4ac fix headers
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1435 7ae35d74-ebe9-4afe-98af-79ac388436b8
2003-04-07 22:42:11 +00:00
Stéphane Fillod, F8CFE
3497d098a5 misc Makefile fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1282 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-11-13 20:39:07 +00:00
Stéphane Fillod, F8CFE
2c4dc9fcd9 updated to linradio-toolkit-0.7
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1253 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-11-05 21:54:10 +00:00
Stéphane Fillod, F8CFE
52e9a15924 libhamlib-backend.so.x.y.z -> hamlib-backend.so, avoid version info for modules
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1241 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-11-04 22:19:31 +00:00
Stéphane Fillod, F8CFE
41f5748be2 converted to C99 intialization style
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1132 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-08-16 17:43:02 +00:00
Stéphane Fillod, F8CFE
3a08190627 gcc3 fixes
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1109 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-07-08 22:53:27 +00:00
Stéphane Fillod, F8CFE
51ea94cdb5 removed autogenerated files, use autogen.sh instead
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1088 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-07-02 18:03:25 +00:00
Stéphane Fillod, F8CFE
cf23615f9e regenerated
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1056 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-05-28 21:46:50 +00:00
Stéphane Fillod, F8CFE
95571eb3a4 regenerated
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@937 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-01-27 23:59:42 +00:00
Francois Retief
d88cbe7307 regenerated
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@872 7ae35d74-ebe9-4afe-98af-79ac388436b8
2002-01-16 19:18:46 +00:00
Stéphane Fillod, F8CFE
303861e483 warning: backend module breakage: symbol changed: init_ -> initrigs_
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@821 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-28 20:28:04 +00:00
Stéphane Fillod, F8CFE
11ce718be6 regenerated
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@778 7ae35d74-ebe9-4afe-98af-79ac388436b8
2001-12-19 03:58:00 +00:00