efficient moving average filters, should speed up OFDM significantly
[debian/gnuradio] / gnuradio-core / src / lib / gengen / Makefile.am
1 #
2 # Copyright 2001,2002,2004,2006,2007,2008 Free Software Foundation, Inc.
3
4 # This file is part of GNU Radio
5
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)
9 # any later version.
10
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.
15
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.
20
21
22 include $(top_srcdir)/Makefile.common
23
24 AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(CPPUNIT_INCLUDES) $(WITH_INCLUDES)
25
26 #noinst_LTLIBRARIES = libgengen.la libgengen-qa.la
27 noinst_LTLIBRARIES = libgengen.la
28
29 # ----------------------------------------------------------------
30 # these scripts generate code
31
32 CODE_GENERATOR =                        \
33         generate_all.py                 \
34         generate_common.py              \
35         gr_add_XX.cc.t                  \
36         gr_add_XX.h.t                   \
37         gr_add_XX.i.t                   \
38         gr_add_const_XX.cc.t            \
39         gr_add_const_XX.h.t             \
40         gr_add_const_XX.i.t             \
41         gr_add_vXX.cc.t                 \
42         gr_add_vXX.h.t                  \
43         gr_add_vXX.i.t                  \
44         gr_add_const_vXX.cc.t           \
45         gr_add_const_vXX.h.t            \
46         gr_add_const_vXX.i.t            \
47         gr_argmax_XX.cc.t               \
48         gr_argmax_XX.h.t                \
49         gr_argmax_XX.i.t                \
50         gr_chunks_to_symbols_XX.cc.t    \
51         gr_chunks_to_symbols_XX.h.t     \
52         gr_chunks_to_symbols_XX.i.t     \
53         gr_divide_XX.cc.t               \
54         gr_divide_XX.h.t                \
55         gr_divide_XX.i.t                \
56         gr_integrate_XX.cc.t            \
57         gr_integrate_XX.h.t             \
58         gr_integrate_XX.i.t             \
59         gr_max_XX.cc.t                  \
60         gr_max_XX.h.t                   \
61         gr_max_XX.i.t                   \
62         gr_multiply_XX.cc.t             \
63         gr_multiply_XX.h.t              \
64         gr_multiply_XX.i.t              \
65         gr_multiply_const_XX.cc.t       \
66         gr_multiply_const_XX.h.t        \
67         gr_multiply_const_XX.i.t        \
68         gr_multiply_vXX.cc.t            \
69         gr_multiply_vXX.h.t             \
70         gr_multiply_vXX.i.t             \
71         gr_multiply_const_vXX.cc.t      \
72         gr_multiply_const_vXX.h.t       \
73         gr_multiply_const_vXX.i.t       \
74         gr_mute_XX.cc.t                 \
75         gr_mute_XX.h.t                  \
76         gr_mute_XX.i.t                  \
77         gr_noise_source_X.cc.t          \
78         gr_noise_source_X.h.t           \
79         gr_noise_source_X.i.t           \
80         gr_packed_to_unpacked_XX.cc.t   \
81         gr_packed_to_unpacked_XX.h.t    \
82         gr_packed_to_unpacked_XX.i.t    \
83         gr_peak_detector_XX.cc.t        \
84         gr_peak_detector_XX.h.t         \
85         gr_peak_detector_XX.i.t         \
86         gr_sample_and_hold_XX.cc.t      \
87         gr_sample_and_hold_XX.h.t       \
88         gr_sample_and_hold_XX.i.t       \
89         gr_sig_source_X.cc.t            \
90         gr_sig_source_X.h.t             \
91         gr_sig_source_X.i.t             \
92         gr_sub_XX.cc.t                  \
93         gr_sub_XX.h.t                   \
94         gr_sub_XX.i.t                   \
95         gr_unpacked_to_packed_XX.cc.t   \
96         gr_unpacked_to_packed_XX.h.t    \
97         gr_unpacked_to_packed_XX.i.t    \
98         gr_vector_source_X.cc.t         \
99         gr_vector_source_X.h.t          \
100         gr_vector_source_X.i.t          \
101         gr_vector_sink_X.cc.t           \
102         gr_vector_sink_X.h.t            \
103         gr_vector_sink_X.i.t            \
104         gr_xor_XX.cc.t                  \
105         gr_xor_XX.h.t                   \
106         gr_xor_XX.i.t                   \
107         gr_and_XX.cc.t                  \
108         gr_and_XX.h.t                   \
109         gr_and_XX.i.t                   \
110         gr_or_XX.cc.t                   \
111         gr_or_XX.h.t                    \
112         gr_or_XX.i.t                    \
113         gr_not_XX.cc.t                  \
114         gr_not_XX.h.t                   \
115         gr_not_XX.i.t                   \
116         gr_moving_average_XX.cc.t       \
117         gr_moving_average_XX.h.t        \
118         gr_moving_average_XX.i.t
119
120 include Makefile.gen
121
122 # Ensure parallel make does the right thing.
123 # http://sources.redhat.com/automake/automake.html#Multiple-Outputs
124
125 STAMPS = generate-stamp
126
127 generate-stamp: $(CODE_GENERATOR)
128         @rm -f generate-tmp
129         @touch generate-tmp
130         PYTHONPATH=$(top_srcdir)/gnuradio-core/src/python srcdir=$(srcdir) $(PYTHON) $(srcdir)/generate_all.py
131         @mv -f generate-tmp $@
132
133
134 $(GENERATED_H) $(GENERATED_I) $(GENERATED_CC) gengen_generated.i : generate-stamp
135 ## Recover from the removal of $@
136         @if test -f $@; then :; else \
137                trap 'rm -rf generate-lock generate-stamp' 1 2 13 15; \
138                if mkdir generate-lock 2>/dev/null; then \
139 ## This code is being executed by the first process.
140                  rm -f generate-stamp; \
141                  $(MAKE) $(AM_MAKEFLAGS) generate-stamp; \
142                  rmdir generate-lock; \
143                else \
144 ## This code is being executed by the follower processes.
145 ## Wait until the first process is done.
146                  while test -d generate-lock; do sleep 1; done; \
147 ## Succeed if and only if the first process succeeded.
148                  test -f generate-stamp; exit $$?; \
149                fi; \
150              fi
151
152
153 BUILT_SOURCES = $(GENERATED_H) $(GENERATED_I) $(GENERATED_CC)
154
155 # ----------------------------------------------------------------
156
157 EXTRA_DIST =                            \
158         $(CODE_GENERATOR)               \
159         $(STAMPS)
160
161 libgengen_la_SOURCES =                  \
162         $(GENERATED_CC)                 
163
164 #libgengen_qa_la_SOURCES =              
165
166 grinclude_HEADERS =                     \
167         $(GENERATED_H)                  \
168         gr_endianness.h                 \
169         gr_noise_type.h                 \
170         gr_sig_source_waveform.h        
171
172 noinst_HEADERS =                        
173
174 swiginclude_HEADERS =                   \
175         $(GENERATED_I)                  \
176         gr_endianness.i                 \
177         gengen.i                        \
178         gengen_generated.i              
179
180 CLEANFILES = $(BUILT_SOURCES) $(STAMPS) *.pyc