summaryrefslogtreecommitdiff
path: root/pmt/src/lib/Makefile.am
diff options
context:
space:
mode:
authoreb2006-08-03 23:34:56 +0000
committereb2006-08-03 23:34:56 +0000
commit0f53423b1973cf31a44fafe6b2a28e37061527f7 (patch)
tree9870ba8e7f327224fb0e4f88d595e5bcaf3ee65b /pmt/src/lib/Makefile.am
parentbf12a22d5abddc7ff79ca5584da87fa414564ab2 (diff)
downloadgnuradio-0f53423b1973cf31a44fafe6b2a28e37061527f7.tar.gz
gnuradio-0f53423b1973cf31a44fafe6b2a28e37061527f7.tar.bz2
gnuradio-0f53423b1973cf31a44fafe6b2a28e37061527f7.zip
merged interim/pmt changes r2243:2248 into the trunk
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3127 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'pmt/src/lib/Makefile.am')
-rw-r--r--pmt/src/lib/Makefile.am33
1 files changed, 32 insertions, 1 deletions
diff --git a/pmt/src/lib/Makefile.am b/pmt/src/lib/Makefile.am
index 2f3eab730..1c084dead 100644
--- a/pmt/src/lib/Makefile.am
+++ b/pmt/src/lib/Makefile.am
@@ -25,9 +25,36 @@ TESTS = test_pmt
lib_LTLIBRARIES = libpmt.la libpmt-qa.la
+# ----------------------------------------------------------------
+# these scripts generate code
+
+CODE_GENERATOR = \
+ generate_unv.py \
+ unv_template.h.t \
+ unv_template.cc.t
+
+GENERATED_H = \
+ pmt_unv_int.h
+
+GENERATED_CC = \
+ pmt_unv.cc
+
+
+$(GENERATED_H) $(GENERATED_I) $(GENERATED_CC): $(CODE_GENERATOR)
+ PYTHONPATH=$(top_srcdir)/src/lib srcdir=$(srcdir) $(srcdir)/generate_unv.py
+
+BUILT_SOURCES = $(GENERATED_H) $(GENERATED_CC)
+
+# ----------------------------------------------------------------
+
+EXTRA_DIST = \
+ $(CODE_GENERATOR)
+
+
# These are the source files that go into the pmt shared library
libpmt_la_SOURCES = \
- pmt.cc
+ pmt.cc \
+ $(GENERATED_CC)
# magic flags
libpmt_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
@@ -40,6 +67,7 @@ include_HEADERS = \
pmt.h
noinst_HEADERS = \
+ $(GENERATED_H) \
pmt_int.h \
qa_pmt.h \
qa_pmt_prims.h
@@ -69,3 +97,6 @@ LIBPMTQA = libpmt-qa.la $(LIBPMT)
test_pmt_SOURCES = test_pmt.cc
test_pmt_LDADD = $(LIBPMTQA)
+
+
+CLEANFILES = $(BUILT_SOURCES) *.pyc