2 # Copyright 2001,2002,2004,2005,2006,2007,2008,2009,2010 Free Software Foundation, Inc.
4 # This file is part of GNU Radio
6 # GNU Radio is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
11 # GNU Radio is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with GNU Radio; see the file COPYING. If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street,
19 # Boston, MA 02110-1301, USA.
22 include $(top_srcdir)/Makefile.common
25 # This directory contains mostly filter routines, plus a few
26 # other performance critical items
29 AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(CPPUNIT_INCLUDES) $(WITH_INCLUDES)
31 noinst_LTLIBRARIES = libfilter.la libfilter-qa.la
33 # ----------------------------------------------------------------
34 # these scripts generate FIR code
39 generate_gr_fir_XXX.py \
40 generate_gr_fir_filter_XXX.py \
41 generate_gr_interp_fir_filter_XXX.py \
42 generate_gr_rational_resampler_base_XXX.py \
43 generate_gr_fir_sysconfig.py \
44 generate_gr_fir_sysconfig_generic.py \
45 generate_gr_fir_util.py \
46 generate_gr_freq_xlating_fir_filter_XXX.py \
47 generate_gri_fir_filter_with_buffer_XXX.py \
51 gr_fir_XXX_generic.cc.t \
52 gr_fir_XXX_generic.h.t \
53 gr_fir_filter_XXX.cc.t \
54 gr_fir_filter_XXX.h.t \
55 gr_fir_filter_XXX.i.t \
56 gr_interp_fir_filter_XXX.cc.t \
57 gr_interp_fir_filter_XXX.h.t \
58 gr_interp_fir_filter_XXX.i.t \
59 gr_rational_resampler_base_XXX.cc.t \
60 gr_rational_resampler_base_XXX.h.t \
61 gr_rational_resampler_base_XXX.i.t \
62 gr_freq_xlating_fir_filter_XXX.cc.t \
63 gr_freq_xlating_fir_filter_XXX.h.t \
64 gr_freq_xlating_fir_filter_XXX.i.t \
65 gri_fir_filter_with_buffer_XXX.cc.t \
66 gri_fir_filter_with_buffer_XXX.h.t \
67 gri_fir_filter_with_buffer_XXX.i.t
70 # Source built by Python into $(builddir)
77 # ----------------------------------------------------------------
78 # MD_CPU and MD_SUBCPU are set at configure time by way of
79 # gnuradio/config/gr_set_md_cpu.m4.
80 # It indicates which set of machine dependent code we should be building.
81 # We currently implement "generic" and "x86"
84 # <foo>_CODE entry for each set of machine specific speedups
95 gr_fir_sysconfig_x86.cc \
112 float_dotprod_sse.S \
113 float_dotprod_3dnow.S \
114 complex_dotprod_3dnowext.S \
115 complex_dotprod_3dnow.S \
116 complex_dotprod_sse.S \
117 ccomplex_dotprod_3dnowext.S \
118 ccomplex_dotprod_3dnow.S \
119 ccomplex_dotprod_sse.S \
120 fcomplex_dotprod_3dnow.S \
121 fcomplex_dotprod_sse.S \
122 short_dotprod_mmx.S \
126 float_dotprod_sse64.S \
127 float_dotprod_3dnow64.S \
128 complex_dotprod_3dnowext64.S \
129 complex_dotprod_3dnow64.S \
130 complex_dotprod_sse64.S \
131 ccomplex_dotprod_3dnowext64.S \
132 ccomplex_dotprod_3dnow64.S \
133 ccomplex_dotprod_sse64.S \
134 fcomplex_dotprod_3dnow64.S \
135 fcomplex_dotprod_sse64.S \
136 short_dotprod_mmx64.S \
141 qa_float_dotprod_x86.cc \
142 qa_complex_dotprod_x86.cc \
143 qa_ccomplex_dotprod_x86.cc
146 sysconfig_powerpc.cc \
147 gr_fir_sysconfig_powerpc.cc \
149 gr_fir_fff_altivec.cc \
151 dotprod_fff_altivec.c
154 qa_dotprod_powerpc.cc
157 sysconfig_armv7_a.cc \
158 gr_fir_sysconfig_armv7_a.cc \
160 gr_fir_fff_armv7_a.cc \
161 dotprod_fff_armv7_a.c
164 qa_dotprod_armv7_a.cc
167 # include each <foo>_CODE entry here...
169 EXTRA_libfilter_la_SOURCES = \
183 3dnow_float_dotprod_really_simple.S \
184 3dnow_float_dotprod_simple.S \
187 # work around automake deficiency
188 libfilter_la_common_SOURCES = \
190 gr_adaptive_fir_ccf.cc \
191 gr_cma_equalizer_cc.cc \
192 gri_fft_filter_fff_generic.cc \
193 gri_fft_filter_ccc_generic.cc \
194 gr_fft_filter_ccc.cc \
195 gr_fft_filter_fff.cc \
197 gr_filter_delay_fc.cc \
198 gri_fir_filter_with_buffer_ccf.cc \
199 gr_fractional_interpolator_ff.cc \
200 gr_fractional_interpolator_cc.cc \
202 gr_iir_filter_ffd.cc \
204 gr_single_pole_iir_filter_ff.cc \
205 gr_single_pole_iir_filter_cc.cc \
207 gri_mmse_fir_interpolator.cc \
208 gri_mmse_fir_interpolator_cc.cc \
209 complex_dotprod_generic.cc \
210 ccomplex_dotprod_generic.cc \
211 float_dotprod_generic.c \
212 short_dotprod_generic.c \
213 gr_pfb_channelizer_ccf.cc \
214 gr_pfb_synthesis_filterbank_ccf.cc\
215 gr_pfb_decimator_ccf.cc \
216 gr_pfb_interpolator_ccf.cc \
217 gr_pfb_arb_resampler_ccf.cc \
218 gr_pfb_clock_sync_ccf.cc \
219 gr_pfb_clock_sync_fff.cc
221 libfilter_qa_la_common_SOURCES = \
229 qa_gri_mmse_fir_interpolator.cc \
230 qa_gri_mmse_fir_interpolator_cc.cc \
231 qa_gri_fir_filter_with_buffer_ccf.cc
234 libfilter_la_SOURCES = $(libfilter_la_common_SOURCES) $(generic_CODE)
235 libfilter_qa_la_SOURCES = $(libfilter_qa_la_common_SOURCES) $(generic_qa_CODE)
240 libfilter_la_SOURCES = $(libfilter_la_common_SOURCES) $(x86_64_SUBCODE) $(x86_CODE)
242 libfilter_la_SOURCES = $(libfilter_la_common_SOURCES) $(x86_SUBCODE) $(x86_CODE)
245 libfilter_qa_la_SOURCES = $(libfilter_qa_la_common_SOURCES) $(x86_qa_CODE)
249 libfilter_la_SOURCES = $(libfilter_la_common_SOURCES) $(powerpc_CODE)
250 libfilter_qa_la_SOURCES = $(libfilter_qa_la_common_SOURCES) $(powerpc_qa_CODE)
254 libfilter_la_SOURCES = $(libfilter_la_common_SOURCES) $(armv7_a_CODE)
255 libfilter_qa_la_SOURCES = $(libfilter_qa_la_common_SOURCES) $(armv7_a_qa_CODE)
259 grinclude_HEADERS = \
261 complex_dotprod_generic.h \
262 complex_dotprod_x86.h \
263 fcomplex_dotprod_x86.h \
264 ccomplex_dotprod_generic.h \
265 ccomplex_dotprod_x86.h \
266 float_dotprod_generic.h \
267 float_dotprod_x86.h \
268 gr_adaptive_fir_ccf.h \
270 gr_cma_equalizer_cc.h \
272 gri_fft_filter_fff_generic.h \
273 gri_fft_filter_ccc_generic.h \
274 gr_fft_filter_ccc.h \
275 gr_fft_filter_fff.h \
276 gr_filter_delay_fc.h \
277 gri_fir_filter_with_buffer_ccf.h \
278 gr_fir_sysconfig_x86.h \
279 gr_fir_sysconfig_powerpc.h \
280 gr_fractional_interpolator_ff.h \
281 gr_fractional_interpolator_cc.h \
284 gr_iir_filter_ffd.h \
287 gr_single_pole_iir.h \
288 gr_single_pole_iir_filter_ff.h \
289 gr_single_pole_iir_filter_cc.h \
293 gri_mmse_fir_interpolator.h \
294 gri_mmse_fir_interpolator_cc.h \
296 short_dotprod_generic.h \
297 short_dotprod_x86.h \
299 gr_pfb_channelizer_ccf.h \
300 gr_pfb_synthesis_filterbank_ccf.h\
301 gr_pfb_decimator_ccf.h \
302 gr_pfb_interpolator_ccf.h \
303 gr_pfb_arb_resampler_ccf.h \
304 gr_pfb_clock_sync_ccf.h \
305 gr_pfb_clock_sync_fff.h
309 dotprod_fff_altivec.h \
310 dotprod_fff_armv7_a.h \
319 gr_fir_fff_altivec.h \
320 gr_fir_fff_armv7_a.h \
325 interpolator_taps.h \
326 qa_complex_dotprod_x86.h \
327 qa_ccomplex_dotprod_x86.h \
329 qa_float_dotprod_x86.h \
336 qa_gri_mmse_fir_interpolator.h \
337 qa_gri_mmse_fir_interpolator_cc.h \
338 qa_gri_fir_filter_with_buffer_ccf.h
342 swiginclude_HEADERS = \
345 gr_adaptive_fir_ccf.i \
346 gr_cma_equalizer_cc.i \
347 gr_fft_filter_ccc.i \
348 gr_fft_filter_fff.i \
349 gr_filter_delay_fc.i \
350 gr_fractional_interpolator_ff.i \
351 gr_fractional_interpolator_cc.i \
354 gr_iir_filter_ffd.i \
355 gr_single_pole_iir_filter_ff.i \
356 gr_single_pole_iir_filter_cc.i \
357 gr_pfb_channelizer_ccf.i \
358 gr_pfb_synthesis_filterbank_ccf.i\
359 gr_pfb_decimator_ccf.i \
360 gr_pfb_interpolator_ccf.i \
361 gr_pfb_arb_resampler_ccf.i \
362 gr_pfb_clock_sync_ccf.i \
363 gr_pfb_clock_sync_fff.i \
367 # Do creation and inclusion of other Makefiles last
369 # include the srcdir's Makefile.gen; doing this creates an implicit
370 # dependency between $(srcdir)/Makefile.in and $(srcdir)/Makefile.gen.
371 include $(srcdir)/Makefile.gen
373 # common way for generating local Makefile.gen
374 makefile_gen_gen_command = PYTHONPATH=$(top_srcdir)/gnuradio-core/src/python srcdir=$(srcdir) do_makefile=1 do_sources=0 $(PYTHON) $(srcdir)/generate_all.py
375 include $(top_srcdir)/Makefile.gen.gen
377 # common way for generating sources from templates when using
378 # BUILT_SOURCES, using parallel build protection.
379 gen_sources = $(BUILT_SOURCES)
380 gen_sources_deps = $(core_generator)
381 par_gen_command = PYTHONPATH=$(top_srcdir)/gnuradio-core/src/python srcdir=$(srcdir) $(PYTHON) $(srcdir)/generate_all.py
382 include $(top_srcdir)/Makefile.par.gen