diff options
author | kurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2011-11-26 03:19:05 +0000 |
---|---|---|
committer | kurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2011-11-26 03:19:05 +0000 |
commit | 75336d9dee4e10b1e60e302b2870d552592ba106 (patch) | |
tree | 0900c901170e4095fed4b6034c8e7d57bf78d465 /Transceiver52M/Makefile.am | |
parent | 3998da7577c823e55035281b8e4232ee20b1cc44 (diff) |
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
Diffstat (limited to 'Transceiver52M/Makefile.am')
-rw-r--r-- | Transceiver52M/Makefile.am | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/Transceiver52M/Makefile.am b/Transceiver52M/Makefile.am index 652663b..aae7310 100644 --- a/Transceiver52M/Makefile.am +++ b/Transceiver52M/Makefile.am @@ -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 += |