2 # Copyright 2004,2005,2006,2007,2008,2009 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
24 AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) $(WITH_INCLUDES)
26 # ----------------------------------------------------------------
27 # these scripts generate trellis codes from template files
32 trellis_encoder_XX.cc.t \
33 trellis_encoder_XX.h.t \
34 trellis_encoder_XX.i.t \
35 trellis_metrics_X.cc.t \
36 trellis_metrics_X.h.t \
37 trellis_metrics_X.i.t \
38 trellis_viterbi_combined_XX.cc.t \
39 trellis_viterbi_combined_XX.h.t \
40 trellis_viterbi_combined_XX.i.t \
41 trellis_viterbi_X.cc.t \
42 trellis_viterbi_X.h.t \
45 # Source built by Python into $(builddir)
46 python_built_sources = \
55 # These headers get installed in ${prefix}/include/gnuradio
61 trellis_metric_type.h \
62 trellis_calc_metric.h \
63 trellis_permutation.h \
66 trellis_siso_combined_f.h \
69 #################################
70 # SWIG interface and library
75 # Install so that they end up available as:
76 # import gnuradio.trellis
78 # ${prefix}/lib/python${python_version}/site-packages/gnuradio
79 trellis_pythondir_category = \
82 # additional sources for the SWIG-generated library
83 trellis_la_swig_sources = \
88 trellis_calc_metric.cc \
89 trellis_permutation.cc \
91 trellis_siso_combined_f.cc \
94 # additional libraries for linking with the SWIG-generated library
95 trellis_la_swig_libadd = \
98 # additional SWIG files to be installed
99 trellis_swiginclude_headers = \
103 trellis_permutation.i \
105 trellis_siso_combined_f.i \
108 # Do creation and inclusion of other Makefiles last
110 # include the srcdir's Makefile.gen; doing this creates an implicit
111 # dependency between $(srcdir)/Makefile.in and $(srcdir)/Makefile.gen.
112 include $(srcdir)/Makefile.gen
114 # common way for generating local Makefile.gen
115 makefile_gen_gen_command = PYTHONPATH=$(top_srcdir)/gnuradio-core/src/python srcdir=$(srcdir) do_makefile=1 do_sources=0 $(PYTHON) $(srcdir)/generate_all.py
116 include $(top_srcdir)/Makefile.gen.gen
118 # common way for generating sources from templates when using
119 # BUILT_SOURCES, using parallel build protection.
120 gen_sources = $(python_built_sources)
121 gen_sources_deps = $(core_generator)
122 par_gen_command = PYTHONPATH=$(top_srcdir)/gnuradio-core/src/python srcdir=$(srcdir) $(PYTHON) $(srcdir)/generate_all.py
123 include $(top_srcdir)/Makefile.par.gen
125 include $(top_srcdir)/Makefile.swig
127 # add some of the variables generated inside the Makefile.swig.gen
129 $(python_built_sources) \
130 $(swig_built_sources)
132 # Do not distribute the output of SWIG
133 no_dist_files = $(swig_built_sources)