Make C++ shared libraries versioned
[debian/gnuradio] / gr-msdd6000 / src / Makefile.am
1 #
2 # Copyright 2007,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 2, 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 = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) \
25         $(WITH_INCLUDES)
26
27 # C/C++ headers get installed in ${prefix}/include/gnuradio
28 grinclude_HEADERS =                     \
29         msdd_source_simple.h            \
30         msdd_buffer_copy_behaviors.h    \
31         msdd6000.h                      \
32         msdd_rs_source_simple.h         \
33         msdd6000_rs.h
34
35 lib_LTLIBRARIES = libgnuradio-msdd6000.la \
36         libgnuradio-msdd6000_rs.la
37
38 libgnuradio_msdd6000_la_LDFLAGS = $(NO_UNDEFINED) $(LTVERSIONFLAGS)
39 libgnuradio_msdd6000_rs_la_LDFLAGS = $(NO_UNDEFINED) $(LTVERSIONFLAGS)
40
41 libgnuradio_msdd6000_la_SOURCES =       \
42         msdd_source_simple.cc           \
43         msdd6000.cc
44
45
46 libgnuradio_msdd6000_rs_la_SOURCES =    \
47         msdd_rs_source_simple.cc                \
48         msdd6000_rs.cc
49
50 libgnuradio_msdd6000_la_LIBADD =        \
51         $(GNURADIO_CORE_LA)
52
53 libgnuradio_msdd6000_rs_la_LIBADD =     \
54         $(GNURADIO_CORE_LA)
55
56
57 if PYTHON
58 #################################
59 # SWIG interface and library
60
61 TOP_SWIG_IFILES =                       \
62         msdd.i msdd_rs.i
63
64 # Install so that they end up available as:
65 #   import gnuradio.msdd
66 # This ends up at:
67 #   ${prefix}/lib/python${python_version}/site-packages/gnuradio
68 msdd_pythondir_category =               \
69         gnuradio
70
71 msdd_rs_pythondir_category =    \
72         gnuradio
73
74 # additional libraries for linking with the SWIG-generated library
75 msdd_la_swig_libadd =                   \
76         libgnuradio-msdd6000.la
77
78 msdd_rs_la_swig_libadd =                        \
79         libgnuradio-msdd6000_rs.la
80
81 include $(top_srcdir)/Makefile.swig
82
83 # add some of the variables generated inside the Makefile.swig.gen
84 BUILT_SOURCES = $(swig_built_sources)
85
86 # Do not distribute the output of SWIG
87 no_dist_files = $(swig_built_sources)
88 endif