2 # Copyright 2006 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 2, 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., 59 Temple Place - Suite 330,
19 # Boston, MA 02111-1307, USA.
22 include $(top_srcdir)/Makefile.common
26 LIBS += $(GNURADIO_CORE_LIBS)
28 # Install this stuff so that it ends up as the gnuradio.und module
29 # This usually ends up at:
30 # ${prefix}/lib/python${python_version}/site-packages/gnuradio
32 ourpythondir = $(grpythondir)
33 ourlibdir = $(grpythondir)
35 INCLUDES = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) $(GNURADIO_INCLUDES)
37 SWIGCPPPYTHONARGS = -fvirtual -python -modern $(PYTHON_CPPFLAGS) \
45 $(top_srcdir)/gnuradio-core/src/lib/swig/gnuradio.i
48 gr_syms_to_metrics.i \
49 gr_metrics_decode_viterbi_full_block.i \
50 gr_streams_encode_convolutional.i \
51 gr_streams_encode_turbo.i \
54 # These files are built by SWIG. The first is the C++ glue.
55 # The second is the python wrapper that loads the _howto shared library
56 # and knows how to call our extensions.
62 # This gets ecc.py installed in the right place
67 ourlib_LTLIBRARIES = _ecc.la
69 # These are the source files that go into the shared library
71 gr_syms_to_metrics.cc \
72 gr_metrics_decode_viterbi_full_block.cc \
73 gr_streams_encode_convolutional.cc \
74 gr_streams_encode_turbo.cc \
78 _ecc_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
80 # link the library against the c++ standard library
86 # These headers get installed in ${prefix}/include/gnuradio
88 gr_syms_to_metrics.h \
89 gr_metrics_decode_viterbi_full_block.h \
90 gr_streams_encode_convolutional.h \
91 gr_streams_encode_turbo.h
93 # These swig headers get installed in ${prefix}/include/gnuradio/swig
94 swiginclude_HEADERS = $(LOCAL_IFILES)
96 ecc.cc ecc.py: ecc.i $(ALL_IFILES)
97 $(SWIG) $(SWIGCPPPYTHONARGS) -module ecc -o ecc.cc $<
99 MOSTLYCLEANFILES = $(BUILT_SOURCES) *.pyc *.loT *~
101 CONFIG_CLEAN_FILES = *.in