f44095b473587ad888329e0404fefc2de39a8a1f
[debian/gnuradio] / gr-gcell / src / Makefile.am
1 #
2 # Copyright 2008,2009 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 along
17 # with this program; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #
20
21 include $(top_srcdir)/Makefile.common
22
23 SUBDIRS = . examples
24
25 AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(GCELL_INCLUDES) \
26         $(PYTHON_CPPFLAGS) $(WITH_INCLUDES)
27
28 # ----------------------------------------------------------------
29
30 noinst_PYTHON =  \
31         qa_fft.py
32
33 DISTCLEANFILES = \
34         gcell.d \
35         run_tests
36
37 # ----------------------------------------------------------------
38 #                        The C++ blocks
39 # ----------------------------------------------------------------
40
41 # the library for the C++ blocks
42 lib_LTLIBRARIES = libgnuradio_gcell.la
43
44 libgnuradio_gcell_la_SOURCES = \
45         gcell_fft_vcc.cc
46
47 # C/C++ headers get installed in ${prefix}/include/gnuradio
48 grinclude_HEADERS = \
49         gcell_fft_vcc.h
50
51 libgnuradio_gcell_la_LIBADD = \
52         $(GNURADIO_CORE_LA) \
53         $(GCELL_LA)
54
55 libgnuradio_gcell_la_LDFLAGS = $(NO_UNDEFINED)
56
57 if PYTHON
58 # ----------------------------------------------------------------
59 #                         SWIG stuff
60 # ----------------------------------------------------------------
61 EXTRA_DIST = run_tests.in
62 TESTS = run_tests
63
64 TOP_SWIG_IFILES =               \
65         gcell.i
66
67 # Install so that they end up available as:
68 #   import gnuradio.gcell
69 # This ends up at:
70 #   ${prefix}/lib/python${python_version}/site-packages/gnuradio
71 gcell_pythondir_category =      \
72         gnuradio
73
74 # additional arguments to the SWIG command
75 gcell_swig_args =               \
76         $(GCELL_INCLUDES)
77
78 # additional libraries for linking with the SWIG-generated library
79 gcell_la_swig_libadd =          \
80         libgnuradio_gcell.la
81
82 # additional SWIG files to be installed
83 gcell_swiginclude_headers =     \
84         gc_job_manager.i        \
85         gcell_fft_vcc.i
86
87 include $(top_srcdir)/Makefile.swig
88
89 # add some of the variables generated inside the Makefile.swig.gen
90 BUILT_SOURCES = $(swig_built_sources)
91
92 # Do not distribute the output of SWIG
93 no_dist_files = $(swig_built_sources)
94 endif