2 # Copyright 2001,2002,2004,2005,2006,2007,2008 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 \
50 gr_fir_XXX_generic.cc.t \
51 gr_fir_XXX_generic.h.t \
52 gr_fir_filter_XXX.cc.t \
53 gr_fir_filter_XXX.h.t \
54 gr_fir_filter_XXX.i.t \
55 gr_interp_fir_filter_XXX.cc.t \
56 gr_interp_fir_filter_XXX.h.t \
57 gr_interp_fir_filter_XXX.i.t \
58 gr_rational_resampler_base_XXX.cc.t \
59 gr_rational_resampler_base_XXX.h.t \
60 gr_rational_resampler_base_XXX.i.t \
61 gr_freq_xlating_fir_filter_XXX.cc.t \
62 gr_freq_xlating_fir_filter_XXX.h.t \
63 gr_freq_xlating_fir_filter_XXX.i.t
65 include $(srcdir)/Makefile.gen
67 # Ensure parallel does the right thing.
68 # http://sources.redhat.com/automake/automake.html#Multiple-Outputs
70 generate-stamp: $(CODE_GENERATOR)
73 PYTHONPATH=$(top_srcdir)/gnuradio-core/src/python srcdir=$(srcdir) $(PYTHON) $(srcdir)/generate_all.py
74 touch $(srcdir)/Makefile.in
75 @mv -f generate-tmp $@
78 $(srcdir)/Makefile.gen $(GENERATED_H) $(GENERATED_I) $(GENERATED_CC): generate-stamp
79 ## Recover from the removal of $@
80 @if test -f $@; then :; else \
81 trap 'rm -rf generate-lock generate-stamp' 1 2 13 15; \
82 if mkdir generate-lock 2>/dev/null; then \
83 ## This code is being executed by the first process.
84 rm -f generate-stamp; \
85 $(MAKE) $(AM_MAKEFLAGS) generate-stamp; \
86 rmdir generate-lock; \
88 ## This code is being executed by the follower processes.
89 ## Wait until the first process is done.
90 while test -d generate-lock; do sleep 1; done; \
91 ## Succeed if and only if the first process succeeded.
92 test -f generate-stamp; exit $$?; \
97 BUILT_SOURCES = $(GENERATED_H) $(GENERATED_I) $(GENERATED_CC)
100 # ----------------------------------------------------------------
101 # MD_CPU and MD_SUBCPU are set at configure time by way of
102 # gnuradio/config/gr_set_md_cpu.m4.
103 # It indicates which set of machine dependent code we should be building.
104 # We currently implement "generic" and "x86"
107 # <foo>_CODE entry for each set of machine specific speedups
114 qa_dotprod_generic.cc
118 gr_fir_sysconfig_x86.cc \
135 float_dotprod_sse.S \
136 float_dotprod_3dnow.S \
137 complex_dotprod_3dnowext.S \
138 complex_dotprod_3dnow.S \
139 complex_dotprod_sse.S \
140 ccomplex_dotprod_3dnowext.S \
141 ccomplex_dotprod_3dnow.S \
142 ccomplex_dotprod_sse.S \
143 fcomplex_dotprod_3dnow.S \
144 fcomplex_dotprod_sse.S \
145 short_dotprod_mmx.S \
149 float_dotprod_sse64.S \
150 float_dotprod_3dnow64.S \
151 complex_dotprod_3dnowext64.S \
152 complex_dotprod_3dnow64.S \
153 complex_dotprod_sse64.S \
154 ccomplex_dotprod_3dnowext64.S \
155 ccomplex_dotprod_3dnow64.S \
156 ccomplex_dotprod_sse64.S \
157 fcomplex_dotprod_3dnow64.S \
158 fcomplex_dotprod_sse64.S \
159 short_dotprod_mmx64.S \
164 qa_float_dotprod_x86.cc \
165 qa_complex_dotprod_x86.cc \
166 qa_ccomplex_dotprod_x86.cc
169 # include each <foo>_CODE entry here...
171 EXTRA_libfilter_la_SOURCES = \
181 3dnow_float_dotprod_really_simple.S \
182 3dnow_float_dotprod_simple.S \
186 # work around automake deficiency
187 libfilter_la_common_SOURCES = \
189 gr_adaptive_fir_ccf.cc \
190 gr_cma_equalizer_cc.cc \
191 gr_fft_filter_ccc.cc \
192 gr_fft_filter_fff.cc \
194 gr_filter_delay_fc.cc \
195 gr_fractional_interpolator_ff.cc \
196 gr_fractional_interpolator_cc.cc \
198 gr_iir_filter_ffd.cc \
200 gr_single_pole_iir_filter_ff.cc \
201 gr_single_pole_iir_filter_cc.cc \
203 gri_mmse_fir_interpolator.cc \
204 gri_mmse_fir_interpolator_cc.cc \
205 complex_dotprod_generic.cc \
206 ccomplex_dotprod_generic.cc \
207 float_dotprod_generic.c \
208 short_dotprod_generic.c
210 libfilter_qa_la_common_SOURCES = \
217 qa_gri_mmse_fir_interpolator.cc \
218 qa_gri_mmse_fir_interpolator_cc.cc
221 libfilter_la_SOURCES = $(libfilter_la_common_SOURCES) $(generic_CODE)
222 libfilter_qa_la_SOURCES = $(libfilter_qa_la_common_SOURCES) $(generic_qa_CODE)
227 libfilter_la_SOURCES = $(libfilter_la_common_SOURCES) $(x86_64_SUBCODE) $(x86_CODE)
229 libfilter_la_SOURCES = $(libfilter_la_common_SOURCES) $(x86_SUBCODE) $(x86_CODE)
232 libfilter_qa_la_SOURCES = $(libfilter_qa_la_common_SOURCES) $(x86_qa_CODE)
236 grinclude_HEADERS = \
238 complex_dotprod_generic.h \
239 complex_dotprod_x86.h \
240 fcomplex_dotprod_x86.h \
241 ccomplex_dotprod_generic.h \
242 ccomplex_dotprod_x86.h \
243 float_dotprod_generic.h \
244 float_dotprod_x86.h \
245 gr_adaptive_fir_ccf.h \
246 gr_cma_equalizer_cc.h \
248 gr_fft_filter_ccc.h \
249 gr_fft_filter_fff.h \
250 gr_filter_delay_fc.h \
251 gr_fir_sysconfig_x86.h \
252 gr_fractional_interpolator_ff.h \
253 gr_fractional_interpolator_cc.h \
256 gr_iir_filter_ffd.h \
259 gr_single_pole_iir.h \
260 gr_single_pole_iir_filter_ff.h \
261 gr_single_pole_iir_filter_cc.h \
264 gri_mmse_fir_interpolator.h \
265 gri_mmse_fir_interpolator_cc.h \
267 short_dotprod_generic.h \
268 short_dotprod_x86.h \
285 interpolator_taps.h \
286 qa_complex_dotprod_x86.h \
287 qa_ccomplex_dotprod_x86.h \
289 qa_float_dotprod_x86.h \
295 qa_gri_mmse_fir_interpolator.h \
296 qa_gri_mmse_fir_interpolator_cc.h
300 swiginclude_HEADERS = \
303 gr_adaptive_fir_ccf.i \
304 gr_cma_equalizer_cc.i \
305 gr_fft_filter_ccc.i \
306 gr_fft_filter_fff.i \
307 gr_filter_delay_fc.i \
308 gr_fractional_interpolator_ff.i \
309 gr_fractional_interpolator_cc.i \
312 gr_iir_filter_ffd.i \
313 gr_single_pole_iir_filter_ff.i \
314 gr_single_pole_iir_filter_cc.i \
318 CLEANFILES = $(BUILT_SOURCES) *.pyc