File: Makefile.am

package info (click to toggle)
hamlib 4.6.5-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,984 kB
  • sloc: ansic: 262,996; sh: 6,135; cpp: 1,578; perl: 876; makefile: 855; python: 148; awk: 58; xml: 26
file content (27 lines) | stat: -rw-r--r-- 1,004 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 rs_hfiq.c

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