aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am22
1 files changed, 19 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 3fe105aa3..84f1bf68d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,6 +4,22 @@
include $(top_srcdir)/Makefile.common
-SUBDIRS = \
- usrp_dboard \
- usrp_uhd
+SUBDIRS = include lib test
+
+########################################################################
+## Handle the pkgconfig file generation
+########################################################################
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = usrp_uhd.pc
+
+EXTRA_DIST = $(srcdir)/usrp_uhd.pc.in
+BUILT_SOURCES = usrp_uhd.pc
+
+usrp_uhd.pc: $(srcdir)/usrp_uhd.pc.in Makefile
+ $(SED) \
+ -e 's|@prefix[@]|$(prefix)|g' \
+ -e 's|@exec_prefix[@]|$(exec_prefix)|g' \
+ -e 's|@libdir[@]|$(libdir)|g' \
+ -e 's|@includedir[@]|$(includedir)|g' \
+ -e 's|@VERSION[@]|$(VERSION)|g' \
+ $< > $@