build: insert autofoo for usrp transceiver and options

Usage:

  ./configure --with-usrp1

  Enable non-UHD USRP1 support through the gnuradio-based
  driver. Requires gnuradio (libusrp) to be installed.

 ./configure --with-resample

  Enable host-based 400ksps to 270.833ksps resampling.
  Only supported for UHD devices. If not enabled, the GSM
  sample rate is requested directly from the device.

Signed-off-by: Thomas Tsou <ttsou@vt.edu>

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2681 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
Kurtis Heimerl
2011-11-26 03:19:05 +00:00
parent fc2d75d75e
commit 98621b28c7
2 changed files with 58 additions and 19 deletions

View File

@@ -21,7 +21,11 @@
include $(top_srcdir)/Makefile.common
if UHD
AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(UHD_CFLAGS)
else
AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(USRP_CFLAGS)
endif
AM_CXXFLAGS = -ldl -lpthread
#rev2dir = $(datadir)/usrp/rev2
@@ -42,12 +46,17 @@ COMMON_SOURCES = \
radioClock.cpp \
sigProcLib.cpp \
Transceiver.cpp \
USRPDevice.cpp \
DummyLoad.cpp
if RESAMPLE
libtransceiver_la_SOURCES = \
$(COMMON_SOURCES) \
radioIOResamp.cpp
else
libtransceiver_la_SOURCES = \
$(COMMON_SOURCES) \
radioIO.cpp
endif
noinst_PROGRAMS = \
USRPping \
@@ -68,22 +77,31 @@ noinst_HEADERS = \
USRPping_SOURCES = USRPping.cpp
USRPping_LDADD = \
libtransceiver.la \
$(COMMON_LA) $(SQLITE_LA) \
$(USRP_LIBS)
$(COMMON_LA) $(SQLITE_LA)
transceiver_SOURCES = runTransceiver.cpp
transceiver_LDADD = \
libtransceiver.la \
$(GSM_LA) \
$(COMMON_LA) $(SQLITE_LA) \
$(USRP_LIBS)
$(COMMON_LA) $(SQLITE_LA)
sigProcLibTest_SOURCES = sigProcLibTest.cpp
sigProcLibTest_LDADD = \
libtransceiver.la \
$(GSM_LA) \
$(COMMON_LA) $(SQLITE_LA) \
$(USRP_LIBS)
$(COMMON_LA) $(SQLITE_LA)
if UHD
libtransceiver_la_SOURCES += UHDDevice.cpp
transceiver_LDADD += $(UHD_LIBS)
USRPping_LDADD += $(UHD_LIBS)
sigProcLibTest_LDADD += $(UHD_LIBS)
else
libtransceiver_la_SOURCES += USRPDevice.cpp
transceiver_LDADD += $(USRP_LIBS)
USRPping_LDADD += $(USRP_LIBS)
sigProcLibTest_LDADD += $(USRP_LIBS)
endif
MOSTLYCLEANFILES +=