Hamlib/kit/Makefile.am
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

28 lines
993 B
Makefile

AM_CFLAGS += $(LIBUSB_CFLAGS)
# FIXME: compile usrp only if CXX available
KITSRC = elektor304.c drt1.c dwt.c usrp.c elektor507.c dds60.c miniVNA.c \
si570avrusb.c si570avrusb.h funcube.c funcube.h fifisdr.c hiqsdr.c \
kit.c kit.h usrp_impl.h
if HAVE_USRP
# Append to the already defined AM_CXXFLAGS that exists outside the conditional.
AM_CXXFLAGS += $(USRP_CFLAGS)
KITSRC += usrp_impl.cc
libhamlib_kit_la_LINK = $(CXXLINK) $(libhamlib_kit_la_LDFLAGS)
else
# automake gets confused and invokes the C++ linker via libtool regardless
# of whether or not HAVE_USRP enables the .cc source. This override forces
# automake to invoke the C linker as no C++ is involved:
libhamlib_kit_la_LINK = $(LINK) $(libhamlib_kit_la_LDFLAGS)
endif
KITROTSRC = pcrotor.c
noinst_LTLIBRARIES = libhamlib-kit.la
libhamlib_kit_la_SOURCES = $(KITSRC) $(KITROTSRC)
libhamlib_kit_la_LIBADD = $(USRP_LIBS) $(LIBUSB_LIBS) $(MATH_LIBS)
EXTRA_DIST = README.funcubedongle Android.mk