22
22
include $(top_srcdir)/Makefile.common
24
# Install this stuff so that it ends up as the gnuradio.audio_alsa module
25
# This usually ends up at:
26
# ${prefix}/lib/python${python_version}/site-packages/gnuradio
28
ourpythondir = $(grpythondir)
29
ourlibdir = $(grpyexecdir)
31
24
EXTRA_DIST = run_tests.in
36
$(top_srcdir)/gr-audio-alsa/src/audio_alsa.i
52
INCLUDES = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS)
54
SWIGPYTHONARGS = $(SWIGPYTHONFLAGS) $(STD_DEFINES_AND_INCLUDES)
56
ourlib_LTLIBRARIES = _audio_alsa.la
58
_audio_alsa_la_SOURCES = \
61
audio_alsa_source.cc \
28
DISTCLEANFILES = run_tests
30
# C/C++ headers get installed in ${prefix}/include/gnuradio
64
31
grinclude_HEADERS = \
65
32
audio_alsa_sink.h \
72
swiginclude_HEADERS = \
75
_audio_alsa_la_LIBADD = \
41
AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) $(WITH_INCLUDES)
43
###################################
44
# ALSA library, including OS interface, sink, and source
46
lib_LTLIBRARIES = libgnuradio-audio-alsa.la
48
libgnuradio_audio_alsa_la_SOURCES = \
50
audio_alsa_source.cc \
53
libgnuradio_audio_alsa_la_LIBADD = \
77
54
$(GNURADIO_CORE_LA) \
81
_audio_alsa_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
83
audio_alsa.cc audio_alsa.py: $(LOCAL_IFILES) $(NON_LOCAL_IFILES)
84
$(SWIG) $(SWIGPYTHONARGS) -module audio_alsa -o audio_alsa.cc $(LOCAL_IFILES)
90
$(BUILT_SOURCES) *~ *.pyc
92
# Don't distribute output of swig
94
@for file in $(BUILT_SOURCES); do echo $(RM) $(distdir)/$$file; done
95
@for file in $(BUILT_SOURCES); do $(RM) $(distdir)/$$file; done
57
libgnuradio_audio_alsa_la_LDFLAGS = \
60
###################################
61
# SWIG Python interface and library
66
# Install so that they end up available as:
67
# import gnuradio.audio_alsa
69
# ${prefix}/lib/python${python_version}/site-packages/gnuradio
70
audio_alsa_pythondir_category = \
73
# additional libraries for linking with the SWIG-generated library
74
audio_alsa_la_swig_libadd = \
75
libgnuradio-audio-alsa.la
77
include $(top_srcdir)/Makefile.swig
79
# add some of the variables generated inside the Makefile.swig.gen
80
BUILT_SOURCES = $(swig_built_sources)
82
# Do not distribute the output of SWIG
83
no_dist_files = $(swig_built_sources)