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 = $(NO_UNDEFINED) $(LTVERSIONFLAGS)
89 #################################
90 # SWIG interface and library
95 # Install so that they end up available as:
96 # import gnuradio.trellis
98 # ${prefix}/lib/python${python_version}/site-packages/gnuradio
99 trellis_pythondir_category = \
102 # additional libraries for linking with the SWIG-generated library
103 trellis_la_swig_libadd = \
104 libgnuradio-trellis.la
106 # additional SWIG files to be installed
107 trellis_swiginclude_headers = \
111 trellis_permutation.i \
113 trellis_siso_combined_f.i \
116 # Do creation and inclusion of other Makefiles last
118 # include the srcdir's Makefile.gen; doing this creates an implicit
119 # dependency between $(srcdir)/Makefile.in and $(srcdir)/Makefile.gen.
120 include $(srcdir)/Makefile.gen
122 # common way for generating local Makefile.gen
123 makefile_gen_gen_command = PYTHONPATH=$(top_srcdir)/gnuradio-core/src/python srcdir=$(srcdir) do_makefile=1 do_sources=0 $(PYTHON) $(srcdir)/generate_all.py
124 include $(top_srcdir)/Makefile.gen.gen
126 # common way for generating sources from templates when using
127 # BUILT_SOURCES, using parallel build protection.
128 gen_sources = $(python_built_sources)
129 gen_sources_deps = $(core_generator)
130 par_gen_command = PYTHONPATH=$(top_srcdir)/gnuradio-core/src/python srcdir=$(srcdir) $(PYTHON) $(srcdir)/generate_all.py
131 include $(top_srcdir)/Makefile.par.gen
133 include $(top_srcdir)/Makefile.swig
135 # add some of the variables generated inside the Makefile.swig.gen
137 $(python_built_sources) \
138 $(swig_built_sources)
140 # Do not distribute the output of SWIG
141 no_dist_files = $(swig_built_sources)