aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M
diff options
context:
space:
mode:
authorkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2011-11-26 03:19:36 +0000
committerkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2011-11-26 03:19:36 +0000
commit4ba47189f80ee5f5614b63a6d5e5cd6d171bb630 (patch)
treeb4173e0d0797ec855a87375da0b0c4a1e558dc94 /Transceiver52M
parentb99cbf384b7a45b53e72ac2f3fef6fac5c7a75ec (diff)
changing config scripts to explitly target UHD/USRP1
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@2692 19bc5d8c-e614-43d4-8b26-e1612bc8e597
Diffstat (limited to 'Transceiver52M')
-rw-r--r--Transceiver52M/Makefile.am12
1 files changed, 12 insertions, 0 deletions
diff --git a/Transceiver52M/Makefile.am b/Transceiver52M/Makefile.am
index 3c79aff..7bdc181 100644
--- a/Transceiver52M/Makefile.am
+++ b/Transceiver52M/Makefile.am
@@ -21,10 +21,17 @@
include $(top_srcdir)/Makefile.common
+#UHD wins if both are defined
if UHD
AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(UHD_CFLAGS)
else
+if USRP1
AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(USRP_CFLAGS)
+else
+#we should never be here, as this doesn't build if one of the above
+#doesn't exist
+AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES)
+endif
endif
AM_CXXFLAGS = -ldl -lpthread
@@ -93,16 +100,21 @@ sigProcLibTest_LDADD = \
$(GSM_LA) \
$(COMMON_LA) $(SQLITE_LA)
+#uhd wins
if UHD
libtransceiver_la_SOURCES += UHDDevice.cpp
transceiver_LDADD += $(UHD_LIBS)
USRPping_LDADD += $(UHD_LIBS)
sigProcLibTest_LDADD += $(UHD_LIBS)
else
+if USRP1
libtransceiver_la_SOURCES += USRPDevice.cpp
transceiver_LDADD += $(USRP_LIBS)
USRPping_LDADD += $(USRP_LIBS)
sigProcLibTest_LDADD += $(USRP_LIBS)
+else
+#we should never be here, as one of the above mustbe defined for us to build
+endif
endif