summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usrp/host/lib/legacy/Makefile.am16
1 files changed, 12 insertions, 4 deletions
diff --git a/usrp/host/lib/legacy/Makefile.am b/usrp/host/lib/legacy/Makefile.am
index 3dd10bf1c..3d1e5a6bc 100644
--- a/usrp/host/lib/legacy/Makefile.am
+++ b/usrp/host/lib/legacy/Makefile.am
@@ -20,21 +20,29 @@
include $(top_srcdir)/Makefile.common
-INCLUDES = $(USRP_INCLUDES) $(OMNITHREAD_INCLUDES)
+common_INCLUDES = $(USRP_INCLUDES)
lib_LTLIBRARIES = libusrp.la
libusrp_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
-libusrp_la_LIBADD = \
+libusrp_la_common_LIBADD = \
$(USB_LIBS) \
- ../../misc/libmisc.la
+ ../../misc/libmisc.la
+
+# darwin fusb requires omnithreads
+if FUSB_TECH_darwin
+INCLUDES = $(common_INCLUDES) $(OMNITHREAD_INCLUDES)
+libusrp_la_LIBADD = $(libusrp_la_common_LIBADD) $(OMNITHREAD_LA)
+else
+INCLUDES = $(common_INCLUDES)
+libusrp_la_LIBADD = $(libusrp_la_common_LIBADD)
+endif
EXTRA_DIST = \
std_paths.h.in \
usrp_dbid.dat
-
BUILT_SOURCES = \
usrp_dbid.h \
usrp_dbid.cc \