Houston, we have a trunk.
[debian/gnuradio] / gr-audio-jack / src / Makefile.am
1 #
2 # Copyright 2005 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., 59 Temple Place - Suite 330,
19 # Boston, MA 02111-1307, USA.
20
21
22 include $(top_srcdir)/Makefile.common
23
24 LIBS += $(GNURADIO_CORE_LIBS)
25
26 # Install this stuff so that it ends up as the gnuradio.audio_jack module
27 # This usually ends up at:
28 #   ${prefix}/lib/python${python_version}/site-packages/gnuradio
29
30 ourpythondir = $(grpythondir)
31 ourlibdir    = $(grpyexecdir)
32
33 EXTRA_DIST = run_tests.in
34
35 TESTS = run_tests
36
37 LOCAL_IFILES =                          \
38         audio_jack.i                            
39
40 NON_LOCAL_IFILES =                      \
41         $(top_srcdir)/gnuradio-core/src/lib/swig/gnuradio.i
42
43 ALL_IFILES =                            \
44         $(LOCAL_IFILES)                 \
45         $(NON_LOCAL_IFILES)             
46
47 BUILT_SOURCES =                         \
48         audio_jack.cc                   \
49         audio_jack.py                           
50
51 ourpython_PYTHON =                      \
52         audio_jack.py
53
54 INCLUDES = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS)
55
56 SWIGPYTHONARGS = $(SWIGPYTHONFLAGS) $(STD_DEFINES_AND_INCLUDES)
57
58
59 ourlib_LTLIBRARIES = _audio_jack.la
60
61
62 _audio_jack_la_SOURCES =                \
63         audio_jack.cc                   \
64         audio_jack_sink.cc              \
65         audio_jack_source.cc            \
66         gri_jack.cc                     
67
68 grinclude_HEADERS =                     \
69         audio_jack_sink.h               \
70         audio_jack_source.h             
71
72 noinst_HEADERS =                        \
73         gri_jack.h                      
74
75
76 swiginclude_HEADERS =                   \
77         $(LOCAL_IFILES)
78
79 _audio_jack_la_LIBADD =                 \
80         $(PYTHON_LDFLAGS)               \
81         -lstdc++                                
82
83 _audio_jack_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
84
85 audio_jack.cc audio_jack.py: audio_jack.i $(NON_LOCAL_IFILES)
86         $(SWIG) $(SWIGPYTHONARGS) -module audio_jack -o audio_jack.cc $<
87
88
89 noinst_PYTHON =                         \
90         qa_jack.py                      
91
92 MOSTLYCLEANFILES = \
93         $(BUILT_SOURCES) *~ *.pyc
94
95 # Don't distribute output of swig
96 dist-hook:
97         @for file in $(BUILT_SOURCES); do echo $(RM) $(distdir)/$$file; done
98         @for file in $(BUILT_SOURCES); do $(RM) $(distdir)/$$file; done