4737ad619ebeded36144607b85c22b63f9b7abaa
[debian/gnuradio] / gr-howto-write-a-block / swig / Makefile.am
1 #
2 # Copyright 2004,2005,2006,2008,2009,2010 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 += -I$(top_srcdir)/lib
25
26 if PYTHON
27 ###################################
28 # SWIG Python interface and library
29
30 TOP_SWIG_IFILES = \
31         howto.i
32
33 # Install so that they end up available as:
34 #   import howto
35 # This ends up at:
36 #   ${prefix}/lib/python${python_version}/site-packages/$(modname)
37
38 howto_la_swig_libadd =          \
39         $(top_builddir)/lib/libgnuradio-howto.la
40
41 include $(top_srcdir)/Makefile.swig
42
43 # add some of the variables generated inside the Makefile.swig.gen
44 BUILT_SOURCES = $(swig_built_sources)
45
46 # Do not distribute the output of SWIG
47 no_dist_files = $(swig_built_sources)
48
49 # additional SWIG files to be installed
50 howto_swiginclude_headers = \
51         howto_square_ff.i \
52         howto_square2_ff.i
53
54 endif