Skip to content
Permalink
Browse files

bladeRF init commit

  • Loading branch information...
rghilduta committed Mar 10, 2014
1 parent 84d42e4 commit d0cb6b2863abb5d0ffadd1cd4770b3df52365317
@@ -134,6 +134,12 @@ AC_SUBST(THREAD_LIB)

HAVE_USB=no

HAVE_BLADERF=no
AC_ARG_ENABLE(bladeRF,AC_HELP_STRING([--enable-bladeRF],[Build bladeRF transceiver if available (default: yes)]),HAVE_BLADERF=$enableval,HAVE_BLADERF=yes)
if [[ "x$HAVE_BLADERF" != "xno" -a "x$HAVE_BLADERF" = "xno" ]]; then
HAVE_BLADERF=check
fi
AC_SUBST(HAVE_BLADERF)

HAVE_RAD1=no
AC_ARG_ENABLE(rad1,AC_HELP_STRING([--enable-rad1],[Build RAD1 transceiver if available (default: yes)]),HAVE_RAD1=$enableval,HAVE_RAD1=yes)
@@ -8,6 +8,10 @@ INCFILES := Complex.h convert.h convolve.h DummyLoad.h radioClock.h radioDevice.
sigProcLib.h Transceiver.h
LOCALLIBS = $(GSM_LIBS)

ifneq (@HAVE_BLADERF@,no)
PROGS:= $(PROGS) transceiver-bladeRF
LOCALLIBS := $(LOCALLIBS) -lbladeRF
endif
ifneq (@HAVE_UHD@,no)
PROGS:= $(PROGS) transceiver-uhd
ifeq ($(BUILD_TESTS),yes)
@@ -33,6 +37,9 @@ EXTRACLEAN := runTransceiver.o USRPDevice.o UHDDevice.o

all:

transceiver-bladeRF: bladeRFDevice.cpp runTransceiver.o $(MKDEPS) $(INCFILES) $(LIBS) $(LIBDEPS)
$(COMPILE) -o $@ $(LOCALFLAGS) $< runTransceiver.o $(LIBS) $(LIBTHR) $(LDFLAGS) $(LOCALLIBS)

transceiver-usrp1: USRPDevice.cpp USRPDevice.h runTransceiver.o $(MKDEPS) $(INCFILES) $(LIBS) $(LIBDEPS)
$(COMPILE) -o $@ $(LOCALFLAGS) $< runTransceiver.o $(LIBS) $(LIBTHR) $(LDFLAGS) $(LOCALLIBS)

0 comments on commit d0cb6b2

Please sign in to comment.
You can’t perform that action at this time.