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 lib_LTLIBRARIES = libgnuradio-trellis.la
71 libgnuradio_trellis_la_SOURCES = \
76 trellis_calc_metric.cc \
77 trellis_permutation.cc \
79 trellis_siso_combined_f.cc \
82 libgnuradio_trellis_la_LIBADD = \
85 libgnuradio_trellis_la_LDFLAGS = \
92 #################################
93 # SWIG interface and library
98 # Install so that they end up available as:
99 # import gnuradio.trellis
101 # ${prefix}/lib/python${python_version}/site-packages/gnuradio
102 trellis_pythondir_category = \
105 # additional libraries for linking with the SWIG-generated library
106 trellis_la_swig_libadd = \
107 libgnuradio-trellis.la
109 # additional SWIG files to be installed
110 trellis_swiginclude_headers = \
114 trellis_permutation.i \
116 trellis_siso_combined_f.i \
119 # Do creation and inclusion of other Makefiles last
121 # include the srcdir's Makefile.gen; doing this creates an implicit
122 # dependency between $(srcdir)/Makefile.in and $(srcdir)/Makefile.gen.
123 include $(srcdir)/Makefile.gen
125 # common way for generating local Makefile.gen
126 makefile_gen_gen_command = PYTHONPATH=$(top_srcdir)/gnuradio-core/src/python srcdir=$(srcdir) do_makefile=1 do_sources=0 $(PYTHON) $(srcdir)/generate_all.py
127 include $(top_srcdir)/Makefile.gen.gen
129 # common way for generating sources from templates when using
130 # BUILT_SOURCES, using parallel build protection.
131 gen_sources = $(python_built_sources)
132 gen_sources_deps = $(core_generator)
133 par_gen_command = PYTHONPATH=$(top_srcdir)/gnuradio-core/src/python srcdir=$(srcdir) $(PYTHON) $(srcdir)/generate_all.py
134 include $(top_srcdir)/Makefile.par.gen
136 include $(top_srcdir)/Makefile.swig
138 # add some of the variables generated inside the Makefile.swig.gen
140 $(python_built_sources) \
141 $(swig_built_sources)
143 # Do not distribute the output of SWIG
144 no_dist_files = $(swig_built_sources)