summaryrefslogtreecommitdiff
path: root/gr-run-waveform
diff options
context:
space:
mode:
authorRob Savoye2010-11-26 11:22:18 -0700
committerRob Savoye2010-11-26 11:22:18 -0700
commit922bc95950787d74265cc68e572dba331753f6b2 (patch)
tree50c60509a6567e53d1202c0b66cab6ee0aed5312 /gr-run-waveform
parente8a3f5bacd2d7b662e43be4bee0189d91465281b (diff)
downloadgnuradio-922bc95950787d74265cc68e572dba331753f6b2.tar.gz
gnuradio-922bc95950787d74265cc68e572dba331753f6b2.tar.bz2
gnuradio-922bc95950787d74265cc68e572dba331753f6b2.zip
add test case and new XYZZY class files.
Diffstat (limited to 'gr-run-waveform')
-rw-r--r--gr-run-waveform/Makefile.am21
1 files changed, 19 insertions, 2 deletions
diff --git a/gr-run-waveform/Makefile.am b/gr-run-waveform/Makefile.am
index c8c207d1a..dc402e109 100644
--- a/gr-run-waveform/Makefile.am
+++ b/gr-run-waveform/Makefile.am
@@ -23,10 +23,27 @@ ACLOCAL_AMFLAGS = -I config
DIST_SUBDIRS = config
EXTRA_DIST = gen-xyzzy
+# build the standalone waveform application
bin_PROGRAMS = run_waveform
-run_waveform_SOURCES = run_waveform.cc
-run_waveform_CPPFLAGS = $(GUILE_CFLAGS) -DSRCDIR=\"$(srcdir)\"
+# A unit test case for the XYZZY class
+check_PROGRAMS = test_xyzzy
+test_xyzzy_SOURCES = test_xyzzy.cc xyzzy.cc
+test_xyzzy_CPPFLAGS = $(GUILE_CFLAGS) \
+ -DSRCDIR=\"$(srcdir)\" \
+ -DPKGLIBDIR=\"$(pkglibdir)\"
+
+# Don't install the internal header
+noinst_HEADERS = xyzzy.h
+
+# The standalone waveform application
+run_waveform_SOURCES = run_waveform.cc xyzzy.cc
+run_waveform_CPPFLAGS = $(GUILE_CFLAGS) \
+ -DSRCDIR=\"$(srcdir)\" \
+ -DPKGLIBDIR=\"$(pkglibdir)\"
+# Uncommenting this force make to statically link in the guile library.
+# Note that this will fail to link it you don't have libguile.a.
+# run_waveform_LDFLAGS = -static
run_waveform_LDADD = $(GUILE_LIBS)
DISTCLEANFILES = gr-run-waveform.tar.gz