summaryrefslogtreecommitdiff
path: root/volk/lib/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'volk/lib/Makefile.am')
-rw-r--r--volk/lib/Makefile.am246
1 files changed, 45 insertions, 201 deletions
diff --git a/volk/lib/Makefile.am b/volk/lib/Makefile.am
index 446ff574f..af7c7f335 100644
--- a/volk/lib/Makefile.am
+++ b/volk/lib/Makefile.am
@@ -24,18 +24,19 @@ include $(top_srcdir)/Makefile.common
# of a hack. Figure out the right way to do this to find built
# volk_config.h and volk_tables.h
-AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(CPPUNIT_CPPFLAGS) \
+AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) \
-I$(top_builddir)/include \
$(LV_CXXFLAGS) $(WITH_INCLUDES)
-# We build 2 libraries and 1 executable here. One library contains
-# everything except the libcppunit QA code, and one contains only the
-# libcppunit-based QA code. The C++ QA code is especially recommended
+# We build 1 library and 1 executable here. The library contains
+# everything except the QA code. The C++ QA code is especially recommended
# when you have general purpose C or C++ code that may not get
# thoroughly exercised by building and running a GR block. The
# executable runs the QA code at "make check" time.
#
+#
+#
# N.B., If there's a SWIG generated shared library and associated
# python code, it will be contained in ../python, not here. (That
# code is conditionally built depending on the state of the
@@ -44,13 +45,14 @@ AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(CPPUNIT_CPPFLAGS) \
# list of programs run by "make check" and "make distcheck"
-#TESTS = test_all
-
+#TESTS = testqa
+#orc stuff gets built in the ORC directory conditional to ORC being enabled.
+#it gets linked in during the build of libvolk as an added library.
+#there might be a better way to do this.
lib_LTLIBRARIES = \
libvolk.la \
- libvolk_runtime.la \
- libvolk_qa.la
+ libvolk_runtime.la
EXTRA_DIST = \
volk_mktables.c \
@@ -72,221 +74,63 @@ libvolk_la_SOURCES = \
volk.c \
volk_environment_init.c
+volk_orc_LDFLAGS = \
+ $(ORC_LDFLAGS) \
+ -lorc-0.4
-libvolk_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
-libvolk_runtime_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
+volk_orc_LIBADD = \
+ ../orc/libvolk_orc.la
+if LV_HAVE_ORC
+libvolk_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0 $(volk_orc_LDFLAGS)
+libvolk_runtime_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0 $(volk_orc_LDFLAGS)
+libvolk_la_LIBADD = $(volk_orc_LIBADD)
+else
+libvolk_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
+libvolk_runtime_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
libvolk_la_LIBADD =
-
+endif
# ----------------------------------------------------------------
# The QA library. Note libvolk.la in LIBADD
# ----------------------------------------------------------------
-libvolk_qa_la_SOURCES = \
- qa_volk.cc \
- qa_16s_quad_max_star_aligned16.cc \
- qa_32fc_dot_prod_aligned16.cc \
- qa_32fc_square_dist_aligned16.cc \
- qa_32fc_square_dist_scalar_mult_aligned16.cc \
- qa_32f_sum_of_poly_aligned16.cc \
- qa_32fc_index_max_aligned16.cc \
- qa_32f_index_max_aligned16.cc \
- qa_32fc_conjugate_dot_prod_aligned16.cc \
- qa_32fc_conjugate_dot_prod_unaligned.cc \
- qa_16s_permute_and_scalar_add_aligned16.cc \
- qa_16s_branch_4_state_8_aligned16.cc \
- qa_16s_max_star_horizontal_aligned16.cc \
- qa_16s_max_star_aligned16.cc \
- qa_16s_add_quad_aligned16.cc \
- qa_32f_add_aligned16.cc \
- qa_32f_subtract_aligned16.cc \
- qa_32f_max_aligned16.cc \
- qa_32f_min_aligned16.cc \
- qa_64f_max_aligned16.cc \
- qa_64f_min_aligned16.cc \
- qa_32s_and_aligned16.cc \
- qa_32s_or_aligned16.cc \
- qa_32f_dot_prod_aligned16.cc \
- qa_32f_dot_prod_unaligned16.cc \
- qa_32f_fm_detect_aligned16.cc \
- qa_32fc_32f_multiply_aligned16.cc \
- qa_32fc_multiply_aligned16.cc \
- qa_32f_divide_aligned16.cc \
- qa_32f_multiply_aligned16.cc \
- qa_32f_sqrt_aligned16.cc \
- qa_8sc_multiply_conjugate_16sc_aligned16.cc \
- qa_8sc_multiply_conjugate_32fc_aligned16.cc \
- qa_32u_popcnt_aligned16.cc \
- qa_64u_popcnt_aligned16.cc \
- qa_64u_byteswap_aligned16.cc \
- qa_8sc_deinterleave_32f_aligned16.cc \
- qa_16sc_deinterleave_32f_aligned16.cc \
- qa_8sc_deinterleave_16s_aligned16.cc \
- qa_32f_interleave_32fc_aligned16.cc \
- qa_16u_byteswap_aligned16.cc \
- qa_16sc_deinterleave_16s_aligned16.cc \
- qa_32fc_deinterleave_real_32f_aligned16.cc \
- qa_32fc_magnitude_32f_aligned16.cc \
- qa_32fc_deinterleave_real_64f_aligned16.cc \
- qa_32fc_deinterleave_real_16s_aligned16.cc \
- qa_32fc_magnitude_16s_aligned16.cc \
- qa_32fc_deinterleave_32f_aligned16.cc \
- qa_8sc_deinterleave_real_8s_aligned16.cc \
- qa_32fc_deinterleave_64f_aligned16.cc \
- qa_32f_interleave_16sc_aligned16.cc \
- qa_16sc_deinterleave_real_8s_aligned16.cc \
- qa_16sc_deinterleave_real_32f_aligned16.cc \
- qa_16sc_magnitude_32f_aligned16.cc \
- qa_32u_byteswap_aligned16.cc \
- qa_16sc_deinterleave_real_16s_aligned16.cc \
- qa_8sc_deinterleave_real_32f_aligned16.cc \
- qa_16sc_magnitude_16s_aligned16.cc \
- qa_32f_normalize_aligned16.cc \
- qa_8sc_deinterleave_real_16s_aligned16.cc \
- qa_16s_convert_32f_aligned16.cc \
- qa_16s_convert_32f_unaligned16.cc \
- qa_16s_convert_8s_aligned16.cc \
- qa_16s_convert_8s_unaligned16.cc \
- qa_32f_convert_16s_aligned16.cc \
- qa_32f_convert_16s_unaligned16.cc \
- qa_32f_convert_32s_aligned16.cc \
- qa_32f_convert_32s_unaligned16.cc \
- qa_32f_convert_64f_aligned16.cc \
- qa_32f_convert_64f_unaligned16.cc \
- qa_32f_convert_8s_aligned16.cc \
- qa_32f_convert_8s_unaligned16.cc \
- qa_32s_convert_32f_aligned16.cc \
- qa_32s_convert_32f_unaligned16.cc \
- qa_64f_convert_32f_aligned16.cc \
- qa_64f_convert_32f_unaligned16.cc \
- qa_8s_convert_16s_aligned16.cc \
- qa_8s_convert_16s_unaligned16.cc \
- qa_8s_convert_32f_aligned16.cc \
- qa_8s_convert_32f_unaligned16.cc \
- qa_32fc_32f_power_32fc_aligned16.cc \
- qa_32f_power_aligned16.cc \
- qa_32fc_atan2_32f_aligned16.cc \
- qa_32fc_power_spectral_density_32f_aligned16.cc \
- qa_32fc_power_spectrum_32f_aligned16.cc \
- qa_32f_calc_spectral_noise_floor_aligned16.cc \
- qa_32f_accumulator_aligned16.cc \
- qa_32f_stddev_aligned16.cc \
- qa_32f_stddev_and_mean_aligned16.cc
+#libvolk_qa_la_SOURCES = \
+# qa_utils.cc
-libvolk_qa_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
+#libvolk_qa_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0 -lboost
-libvolk_qa_la_LIBADD = \
- libvolk.la \
- libvolk_runtime.la \
- $(CPPUNIT_LIBS)
+#libvolk_qa_la_LIBADD = \
+# libvolk.la \
+# libvolk_runtime.la
# ----------------------------------------------------------------
# headers that don't get installed
# ----------------------------------------------------------------
noinst_HEADERS = \
volk_init.h \
- qa_volk.h \
- gcc_x86_cpuid.h \
- qa_16s_quad_max_star_aligned16.h \
- qa_32fc_dot_prod_aligned16.h \
- qa_32fc_square_dist_aligned16.h \
- qa_32fc_square_dist_scalar_mult_aligned16.h \
- qa_32f_sum_of_poly_aligned16.h \
- qa_32fc_index_max_aligned16.h \
- qa_32f_index_max_aligned16.h \
- qa_32fc_conjugate_dot_prod_aligned16.h \
- qa_32fc_conjugate_dot_prod_unaligned.h \
- qa_16s_permute_and_scalar_add_aligned16.h \
- qa_16s_branch_4_state_8_aligned16.h \
- qa_16s_max_star_horizontal_aligned16.h \
- qa_16s_max_star_aligned16.h \
- qa_16s_add_quad_aligned16.h \
- qa_32f_add_aligned16.h \
- qa_32f_subtract_aligned16.h \
- qa_32f_max_aligned16.h \
- qa_32f_min_aligned16.h \
- qa_64f_max_aligned16.h \
- qa_64f_min_aligned16.h \
- qa_32s_and_aligned16.h \
- qa_32s_or_aligned16.h \
- qa_32f_dot_prod_aligned16.h \
- qa_32f_dot_prod_unaligned16.h \
- qa_32f_fm_detect_aligned16.h \
- qa_32fc_32f_multiply_aligned16.h \
- qa_32fc_multiply_aligned16.h \
- qa_32f_divide_aligned16.h \
- qa_32f_multiply_aligned16.h \
- qa_32f_sqrt_aligned16.h \
- qa_8sc_multiply_conjugate_16sc_aligned16.h \
- qa_8sc_multiply_conjugate_32fc_aligned16.h \
- qa_32u_popcnt_aligned16.h \
- qa_64u_popcnt_aligned16.h \
- qa_64u_byteswap_aligned16.h \
- qa_8sc_deinterleave_32f_aligned16.h \
- qa_16sc_deinterleave_32f_aligned16.h \
- qa_8sc_deinterleave_16s_aligned16.h \
- qa_32f_interleave_32fc_aligned16.h \
- qa_16u_byteswap_aligned16.h \
- qa_16sc_deinterleave_16s_aligned16.h \
- qa_32fc_deinterleave_real_32f_aligned16.h \
- qa_32fc_magnitude_32f_aligned16.h \
- qa_32fc_deinterleave_real_64f_aligned16.h \
- qa_32fc_deinterleave_real_16s_aligned16.h \
- qa_32fc_magnitude_16s_aligned16.h \
- qa_32fc_deinterleave_32f_aligned16.h \
- qa_8sc_deinterleave_real_8s_aligned16.h \
- qa_32fc_deinterleave_64f_aligned16.h \
- qa_32f_interleave_16sc_aligned16.h \
- qa_16sc_deinterleave_real_8s_aligned16.h \
- qa_16sc_deinterleave_real_32f_aligned16.h \
- qa_16sc_magnitude_32f_aligned16.h \
- qa_32u_byteswap_aligned16.h \
- qa_16sc_deinterleave_real_16s_aligned16.h \
- qa_8sc_deinterleave_real_32f_aligned16.h \
- qa_16sc_magnitude_16s_aligned16.h \
- qa_32f_normalize_aligned16.h \
- qa_8sc_deinterleave_real_16s_aligned16.h \
- qa_16s_convert_32f_aligned16.h \
- qa_16s_convert_32f_unaligned16.h \
- qa_16s_convert_8s_aligned16.h \
- qa_16s_convert_8s_unaligned16.h \
- qa_32f_convert_16s_aligned16.h \
- qa_32f_convert_16s_unaligned16.h \
- qa_32f_convert_32s_aligned16.h \
- qa_32f_convert_32s_unaligned16.h \
- qa_32f_convert_64f_aligned16.h \
- qa_32f_convert_64f_unaligned16.h \
- qa_32f_convert_8s_aligned16.h \
- qa_32f_convert_8s_unaligned16.h \
- qa_32s_convert_32f_aligned16.h \
- qa_32s_convert_32f_unaligned16.h \
- qa_64f_convert_32f_aligned16.h \
- qa_64f_convert_32f_unaligned16.h \
- qa_8s_convert_16s_aligned16.h \
- qa_8s_convert_16s_unaligned16.h \
- qa_8s_convert_32f_aligned16.h \
- qa_8s_convert_32f_unaligned16.h \
- qa_32fc_32f_power_32fc_aligned16.h \
- qa_32f_power_aligned16.h \
- qa_32fc_atan2_32f_aligned16.h \
- qa_32fc_power_spectral_density_32f_aligned16.h \
- qa_32fc_power_spectrum_32f_aligned16.h \
- qa_32f_calc_spectral_noise_floor_aligned16.h \
- qa_32f_accumulator_aligned16.h \
- qa_32f_stddev_aligned16.h \
- qa_32f_stddev_and_mean_aligned16.h
-
+ qa_utils.h \
+ assembly.h
# ----------------------------------------------------------------
# Our test program
# ----------------------------------------------------------------
noinst_PROGRAMS = \
- test_all
-
-test_all_SOURCES = test_all.cc
-test_all_LDADD = libvolk.la libvolk_runtime.la libvolk_qa.la
+ testqa
+testqa_SOURCES = testqa.cc qa_utils.cc
+testqa_CPPFLAGS = -DBOOST_TEST_DYN_LINK -DBOOST_TEST_MAIN $(AM_CPPFLAGS)
+testqa_LDFLAGS = $(BOOST_UNIT_TEST_FRAMEWORK_LIB)
+if LV_HAVE_ORC
+testqa_LDADD = \
+ libvolk.la \
+ libvolk_runtime.la \
+ ../orc/libvolk_orc.la
+else
+testqa_LDADD = \
+ libvolk.la \
+ libvolk_runtime.la
+endif
distclean-local:
rm -f volk.c