Fixed spelling error: s/writeable/writable/g
[debian/gnuradio] / gr-msdd6000 / src / lib / Makefile.am
1 #
2 # Copyright 2008 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
23 include $(top_srcdir)/Makefile.common
24
25 # Install this stuff so that it ends up as the gnuradio.msdd module
26 # This usually ends up at:
27 #   ${prefix}/lib/python${python_version}/site-packages/gnuradio
28
29 ourpythondir = $(grpythondir)
30 ourlibdir    = $(grpyexecdir)
31
32 AM_CPPFLAGS =                           \
33         $(STD_DEFINES_AND_INCLUDES)     \
34         $(PYTHON_CPPFLAGS)              \
35         $(WITH_INCLUDES)                \
36         $(CPPUNIT_INCLUDES)
37
38 noinst_LTLIBRARIES = libmsdd.la
39
40 libmsdd_la_SOURCES =                    \
41         msdd_source_base.cc             \
42         msdd_source_c.cc                \
43         msdd_source_s.cc
44
45 # ------------------------------------------------------------------------
46 #  This is the swig-ish part of the Makefile.
47 #  It builds the msdd module which we'll load into python
48 # ------------------------------------------------------------------------
49
50 SWIGCPPPYTHONARGS = -fvirtual -python -modern $(PYTHON_CPPFLAGS) \
51         $(STD_DEFINES_AND_INCLUDES) $(WITH_SWIG_INCLUDES) $(WITH_INCLUDES)
52
53 ALL_IFILES =                            \
54         $(LOCAL_IFILES)                 \
55         $(NON_LOCAL_IFILES)             
56
57 NON_LOCAL_IFILES =                      \
58         $(top_srcdir)/gnuradio-core/src/lib/swig/gnuradio.i
59
60 LOCAL_IFILES =                          \
61         $(top_srcdir)/gr-msdd6000/src/lib/msdd.i                                
62
63
64 # These files are built by SWIG.  The first is the C++ glue.
65 # # The second is the python wrapper that loads the _msdd shared library
66 # # and knows how to call our extensions.
67 #
68 #
69 #
70 swig_built_sources =                    \
71         msdd.cc                         \
72         msdd.py 
73
74 # This gets msdd.py installed in the right place
75 #
76 ourpython_PYTHON =                      \
77         msdd.py
78
79
80 ourlib_LTLIBRARIES = _msdd.la
81
82 # These are the source files that go into the shared library
83 _msdd_la_SOURCES =                      \
84         msdd.cc
85
86 # magic flag
87 _msdd_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version 
88
89 # link the library against some comon swig runtime code and the 
90 # c++ standard library
91
92 _msdd_la_LIBADD =                       \
93         $(GNURADIO_CORE_LA)             \
94         $(PYTHON_LDFLAGS)               \
95         libmsdd.la                      \
96         -lstdc++
97
98 msdd.cc msdd.py: msdd.i $(ALL_FILES)
99         $(SWIG) $(SWIGCPPPYTHONARGS) -module msdd -o msdd.cc $(LOCAL_IFILES)
100
101 # These headers get installed in ${prefix}/include/gnuradio
102 grinclude_HEADERS =                     \
103         msdd_buffer_copy_behaviors.h    \
104         msdd_source_base.h              \
105         msdd_source_c.h                 \
106         msdd_source_s.h                 
107
108 # These swig headers get installed in ${prefix}/include/gnuradio/swig
109 swiginclude_HEADERS =                   \
110         $(LOCAL_IFILES)
111
112 MOSTLYCLEANFILES = $(BUILT_SOURCES) *.pyc *~
113
114 # Don't distribute output of swig
115 dist-hook:
116         @for file in $(BUILT_SOURCES); do echo $(RM) $(distdir)/$$file; done
117         @for file in $(BUILT_SOURCES); do $(RM) $(distdir)/$$file; done