aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Makefile.am')
-rw-r--r--src/common/Makefile.am9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/common/Makefile.am b/src/common/Makefile.am
index eece6fe..1269e76 100644
--- a/src/common/Makefile.am
+++ b/src/common/Makefile.am
@@ -1,5 +1,5 @@
AUTOMAKE_OPTIONS = subdir-objects
-AM_CPPFLAGS = -Wall -Wextra -g $(all_includes)
+AM_CPPFLAGS = -Wall -Wextra -g $(all_includes) $(UHD_CFLAGS)
noinst_LIBRARIES = libcommon.a
@@ -33,3 +33,10 @@ libcommon_a_SOURCES += \
../common/sdr.c
endif
+if HAVE_UHD
+AM_CPPFLAGS += -DHAVE_UHD
+
+libcommon_a_SOURCES += \
+ ../common/uhd.c
+endif
+