2013-05-25 11:00:36 +00:00
|
|
|
AM_CFLAGS = @AM_CFLAGS@ $(LIBUSB_CFLAGS)
|
2005-11-01 23:14:41 +00:00
|
|
|
|
|
|
|
# FIXME: compile usrp only if CXX available
|
2009-11-01 14:45:59 +00:00
|
|
|
KITSRCLIST = elektor304.c drt1.c dwt.c usrp.c elektor507.c \
|
2012-01-06 08:40:04 +00:00
|
|
|
dds60.c miniVNA.c si570avrusb.c funcube.c fifisdr.c hiqsdr.c
|
2010-09-29 17:58:32 +00:00
|
|
|
|
|
|
|
if HAVE_USRP
|
2013-05-25 11:00:36 +00:00
|
|
|
# Append to the already defined AM_CXXFLAGS that exists outside the conditional.
|
|
|
|
AM_CXXFLAGS += @USRP_CFLAGS@
|
2010-09-29 17:58:32 +00:00
|
|
|
KITSRCLIST += usrp_impl.cc
|
2010-10-08 21:19:24 +00:00
|
|
|
hamlib_kit_la_LINK = $(CXXLINK) $(hamlib_kit_la_LDFLAGS)
|
2010-09-29 17:58:32 +00:00
|
|
|
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:
|
|
|
|
hamlib_kit_la_LINK = $(LINK) $(hamlib_kit_la_LDFLAGS)
|
2009-11-01 14:45:59 +00:00
|
|
|
endif
|
2004-04-16 20:29:51 +00:00
|
|
|
|
2008-10-31 07:45:17 +00:00
|
|
|
KITROTSRCLIST = pcrotor.c
|
|
|
|
|
2010-09-26 02:23:50 +00:00
|
|
|
pkglib_LTLIBRARIES = hamlib-kit.la
|
2008-10-31 07:45:17 +00:00
|
|
|
hamlib_kit_la_SOURCES = $(KITSRCLIST) $(KITROTSRCLIST) kit.c
|
2004-04-16 20:29:51 +00:00
|
|
|
hamlib_kit_la_LDFLAGS = -no-undefined -module -avoid-version
|
|
|
|
hamlib_kit_la_LIBADD = $(top_builddir)/lib/libmisc.la \
|
2005-11-01 23:14:41 +00:00
|
|
|
$(USRP_LIBS) \
|
|
|
|
$(LIBUSB_LIBS) \
|
|
|
|
@MATH_LIBS@ \
|
2004-04-16 20:29:51 +00:00
|
|
|
$(top_builddir)/src/libhamlib.la
|
|
|
|
|
2011-01-28 00:40:45 +00:00
|
|
|
noinst_HEADERS = kit.h usrp_impl.h si570avrusb.h funcube.h
|
2004-04-16 20:29:51 +00:00
|
|
|
|
2012-12-19 11:59:59 +00:00
|
|
|
EXTRA_DIST = README.funcubedongle Android.mk
|