905eaa57e455328bb60fd6ae42e027fd806a5f77
[debian/gnuradio] / gr-atsc / src / lib / Makefile.am
1 #
2 # Copyright 2001,2004,2005,2006,2008,2009 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) $(PYTHON_CPPFLAGS) \
25         $(CPPUNIT_INCLUDES) $(WITH_INCLUDES)
26
27 EXTRA_DIST =                                    \
28         atsci_viterbi_gen.cc                    \
29         gen_encoder.py                          \
30         qa_atsci_trellis_encoder_t1_input.dat   \
31         qa_atsci_trellis_encoder_t1_output.dat  \
32         qa_atsci_viterbi_decoder_t1_input.dat   \
33         qa_atsci_viterbi_decoder_t1_output.dat
34
35 TESTS =                                         \
36         test_atsci
37
38 # We build two libtool convenience libraries
39
40 noinst_LTLIBRARIES = libatsc.la libatsc-qa.la
41
42 # FIXME
43 #       atsci_exp2_lp.cc                        \
44 #       atsci_root_raised_cosine.cc             \
45 #       atsci_root_raised_cosine_bandpass.cc    \
46 #       atsci_vsbtx_lp.cc                       \
47 #
48
49 libatsc_la_SOURCES =                    \
50         atsc_derandomizer.cc                    \
51         atsc_randomizer.cc                      \
52         atsc_rs_decoder.cc                      \
53         atsc_rs_encoder.cc                      \
54         atsc_interleaver.cc                     \
55         atsc_deinterleaver.cc                   \
56         atsc_trellis_encoder.cc                 \
57         atsc_viterbi_decoder.cc                 \
58         atsc_ds_to_softds.cc                    \
59         atsc_field_sync_mux.cc                  \
60         atsc_field_sync_demux.cc                \
61         atsc_equalizer.cc                       \
62         atsc_fs_checker.cc                      \
63         atsc_bit_timing_loop.cc                 \
64         atsc_fpll.cc                            \
65         atsc_depad.cc                           \
66         atsc_pad.cc                             \
67         atsci_basic_trellis_encoder.cc          \
68         atsci_data_interleaver.cc               \
69         atsci_equalizer.cc                      \
70         atsci_equalizer_lms.cc                  \
71         atsci_equalizer_lms2.cc                 \
72         atsci_equalizer_nop.cc                  \
73         atsci_fake_single_viterbi.cc            \
74         atsci_fs_checker.cc                     \
75         atsci_fs_checker_naive.cc               \
76         atsci_fs_correlator.cc                  \
77         atsci_fs_correlator_naive.cc            \
78         atsci_single_viterbi.cc                 \
79         atsci_sssr.cc                           \
80         atsci_pnXXX.cc                          \
81         atsci_randomizer.cc                     \
82         atsci_reed_solomon.cc                   \
83         atsci_sliding_correlator.cc             \
84         atsci_trellis_encoder.cc                \
85         atsci_viterbi_decoder.cc                \
86         create_atsci_equalizer.cc               \
87         create_atsci_fs_checker.cc              \
88         create_atsci_fs_correlator.cc           \
89         plinfo.cc                               
90
91 libatsc_la_LIBADD =                             \
92         $(GNURADIO_CORE_LA)
93
94 libatsc_qa_la_SOURCES =                         \
95         qa_atsci_basic_trellis_encoder.cc       \
96         qa_atsci_data_interleaver.cc            \
97         qa_atsci_equalizer_nop.cc               \
98         qa_atsci_fake_single_viterbi.cc         \
99         qa_atsci_fs_correlator.cc               \
100         qa_atsci_single_viterbi.cc              \
101         qa_atsci_randomizer.cc                  \
102         qa_atsci_reed_solomon.cc                \
103         qa_atsci_sliding_correlator.cc          \
104         qa_atsci_trellis_encoder.cc             \
105         qa_atsci_viterbi_decoder.cc             \
106         qa_convolutional_interleaver.cc         \
107         qa_atsci.cc                             \
108         qa_interleaver_fifo.cc                  
109
110 libatsc_qa_la_LIBADD =                  \
111         $(GNURADIO_CORE_LA)
112
113 # These headers get installed in ${prefix}/include/gnuradio
114 grinclude_HEADERS =                             \
115         atsc_consts.h                           \
116         atsc_derandomizer.h                     \
117         atsc_randomizer.h                       \
118         atsc_rs_decoder.h                       \
119         atsc_rs_encoder.h                       \
120         atsc_interleaver.h                      \
121         atsc_deinterleaver.h                    \
122         atsc_trellis_encoder.h                  \
123         atsc_viterbi_decoder.h                  \
124         atsc_ds_to_softds.h                     \
125         atsc_field_sync_mux.h                   \
126         atsc_field_sync_demux.h                 \
127         atsc_equalizer.h                        \
128         atsc_fs_checker.h                       \
129         atsc_bit_timing_loop.h                  \
130         atsc_fpll.h                             \
131         atsc_depad.h                            \
132         atsc_pad.h                              \
133         atsc_types.h                            \
134         atsci_basic_trellis_encoder.h           \
135         atsci_data_interleaver.h                \
136         atsci_diag_output.h                     \
137         atsci_equalizer.h                       \
138         atsci_equalizer_lms.h                   \
139         atsci_equalizer_lms2.h                  \
140         atsci_equalizer_nop.h                   \
141         atsci_exp2_lp.h                         \
142         atsci_fake_single_viterbi.h             \
143         atsci_fs_checker.h                      \
144         atsci_fs_checker_naive.h                \
145         atsci_fs_correlator.h                   \
146         atsci_fs_correlator_naive.h             \
147         atsci_pnXXX.h                           \
148         atsci_randomizer.h                      \
149         atsci_reed_solomon.h                    \
150         atsci_root_raised_cosine.h              \
151         atsci_root_raised_cosine_bandpass.h     \
152         atsci_single_viterbi.h                  \
153         atsci_slicer_agc.h                      \
154         atsci_sliding_correlator.h              \
155         atsci_sssr.h                            \
156         atsci_syminfo.h                         \
157         atsci_sync_tag.h                        \
158         atsci_trellis_encoder.h                 \
159         atsci_viterbi_decoder.h                 \
160         atsci_vsbtx_lp.h                        \
161         convolutional_interleaver.h             \
162         create_atsci_equalizer.h                \
163         create_atsci_fs_checker.h               \
164         create_atsci_fs_correlator.h            \
165         fpll_btloop_coupling.h                  \
166         interleaver_fifo.h                      \
167         qa_atsci.h                              \
168         qa_atsci_basic_trellis_encoder.h        \
169         qa_atsci_data_interleaver.h             \
170         qa_atsci_equalizer_nop.h                \
171         qa_atsci_fake_single_viterbi.h          \
172         qa_atsci_fs_correlator.h                \
173         qa_atsci_randomizer.h                   \
174         qa_atsci_reed_solomon.h                 \
175         qa_atsci_single_viterbi.h               \
176         qa_atsci_sliding_correlator.h           \
177         qa_atsci_trellis_encoder.h              \
178         qa_atsci_viterbi_decoder.h              \
179         qa_convolutional_interleaver.h          \
180         qa_interleaver_fifo.h
181
182
183 # programs we build but don't install
184 # FIXME add test_atsc
185 noinst_PROGRAMS =                               \
186         test_atsci
187
188 atsci_viterbi_gen$(EXEEXT): $(srcdir)/atsci_viterbi_gen.cc
189         $(CXX_FOR_BUILD) -O2 $(srcdir)/atsci_viterbi_gen.cc -o atsci_viterbi_gen$(EXEEXT)
190
191 atsci_viterbi_mux.cc: atsci_viterbi_gen$(EXEEXT) 
192         ./atsci_viterbi_gen$(EXEEXT) -o atsci_viterbi_mux.cc
193
194 test_atsci_SOURCES = test_atsci.cc
195 test_atsci_LDADD   =            \
196         libatsc-qa.la           \
197         libatsc.la              \
198         $(CPPUNIT_LIBS)
199
200 # ------------------------------------------------------------------------
201 #  Cleanup
202 # ------------------------------------------------------------------------
203
204 CLEANFILES = atsci_viterbi_mux.cc atsci_viterbi_gen$(EXEEXT)
205
206 # ------------------------------------------------------------------------
207 #  This is the swig-ish part of the Makefile.
208 #  It builds the atsc module which we'll load into python
209 # ------------------------------------------------------------------------
210
211 TOP_SWIG_IFILES =               \
212         atsc.i
213
214 # Install so that they end up available as:
215 #   import gnuradio
216 # This ends up at:
217 #   ${prefix}/lib/python${python_version}/site-packages/gnuradio
218 atsc_pythondir_category =       \
219         gnuradio
220
221 # additional libraries for linking with the SWIG-generated library
222 atsc_la_swig_libadd =           \
223         libatsc.la
224
225 include $(top_srcdir)/Makefile.swig
226
227 # add some of the variables generated inside the Makefile.swig.gen
228 BUILT_SOURCES =                                 \
229         atsci_viterbi_mux.cc                    \
230         $(swig_built_sources)
231
232 # Do not distribute the output of SWIG
233 no_dist_files = $(swig_built_sources)