3
# Copyright 2009 Free Software Foundation, Inc.
5
# This file is part of GNU Radio
7
# GNU Radio is free software; you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 3, or (at your option)
12
# GNU Radio is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
17
# You should have received a copy of the GNU General Public License
18
# along with GNU Radio; see the file COPYING. If not, write to
19
# the Free Software Foundation, Inc., 51 Franklin Street,
20
# Boston, MA 02110-1301, USA.
23
# Makefile.swig.gen for audio_swig.i
25
## Default install locations for these files:
27
## Default location for the Python directory is:
28
## ${prefix}/lib/python${python_version}/site-packages/[category]/audio_swig
29
## Default location for the Python exec directory is:
30
## ${exec_prefix}/lib/python${python_version}/site-packages/[category]/audio_swig
32
## The following can be overloaded to change the install location, but
33
## this has to be done in the including Makefile.am -before-
34
## Makefile.swig is included.
36
audio_swig_pythondir_category ?= gnuradio/audio_swig
37
audio_swig_pylibdir_category ?= $(audio_swig_pythondir_category)
38
audio_swig_pythondir = $(pythondir)/$(audio_swig_pythondir_category)
39
audio_swig_pylibdir = $(pyexecdir)/$(audio_swig_pylibdir_category)
41
# The .so libraries for the guile modules get installed whereever guile
42
# is installed, usually /usr/lib/guile/gnuradio/
43
# FIXME: determince whether these should be installed with gnuradio.
44
audio_swig_scmlibdir = $(libdir)
46
# The scm files for the guile modules get installed where ever guile
47
# is installed, usually /usr/share/guile/site/audio_swig
48
# FIXME: determince whether these should be installed with gnuradio.
49
audio_swig_scmdir = $(guiledir)
51
## SWIG headers are always installed into the same directory.
53
audio_swig_swigincludedir = $(swigincludedir)
55
## This is a template file for a "generated" Makefile addition (in
56
## this case, "Makefile.swig.gen"). By including the top-level
57
## Makefile.swig, this file will be used to generate the SWIG
58
## dependencies. Assign the variable TOP_SWIG_FILES to be the list of
59
## SWIG .i files to generated wrappings for; there can be more than 1
60
## so long as the names are unique (no sorting is done on the
61
## TOP_SWIG_FILES list). This file explicitly assumes that a SWIG .i
62
## file will generate .cc, .py, and possibly .h files -- meaning that
63
## all of these files will have the same base name (that provided for
66
## This code is setup to ensure parallel MAKE ("-j" or "-jN") does the
67
## right thing. For more info, see <
68
## http://sources.redhat.com/automake/automake.html#Multiple-Outputs >
70
## Other cleaned files: dependency files generated by SWIG or this Makefile
72
MOSTLYCLEANFILES += $(DEPDIR)/*.S*
74
## Various SWIG variables. These can be overloaded in the including
75
## Makefile.am by setting the variable value there, then including
78
audio_swig_swiginclude_HEADERS = \
80
$(audio_swig_swiginclude_headers)
83
audio_swig_pylib_LTLIBRARIES = \
86
_audio_swig_la_SOURCES = \
87
python/audio_swig.cc \
88
$(audio_swig_la_swig_sources)
90
audio_swig_python_PYTHON = \
94
_audio_swig_la_LIBADD = \
95
$(STD_SWIG_LA_LIB_ADD) \
96
$(audio_swig_la_swig_libadd)
98
_audio_swig_la_LDFLAGS = \
99
$(STD_SWIG_LA_LD_FLAGS) \
100
$(audio_swig_la_swig_ldflags)
102
_audio_swig_la_CXXFLAGS = \
103
$(STD_SWIG_CXX_FLAGS) \
105
$(audio_swig_la_swig_cxxflags)
107
python/audio_swig.cc: audio_swig.py
108
audio_swig.py: audio_swig.i
110
# Include the python dependencies for this file
111
-include python/audio_swig.d
113
endif # end of if python
117
audio_swig_scmlib_LTLIBRARIES = \
118
libguile-gnuradio-audio_swig.la
119
libguile_gnuradio_audio_swig_la_SOURCES = \
120
guile/audio_swig.cc \
121
$(audio_swig_la_swig_sources)
122
nobase_audio_swig_scm_DATA = \
123
gnuradio/audio_swig.scm \
124
gnuradio/audio_swig-primitive.scm
125
libguile_gnuradio_audio_swig_la_LIBADD = \
126
$(STD_SWIG_LA_LIB_ADD) \
127
$(audio_swig_la_swig_libadd)
128
libguile_gnuradio_audio_swig_la_LDFLAGS = \
129
$(STD_SWIG_LA_LD_FLAGS) \
130
$(audio_swig_la_swig_ldflags)
131
libguile_gnuradio_audio_swig_la_CXXFLAGS = \
132
$(STD_SWIG_CXX_FLAGS) \
134
$(audio_swig_la_swig_cxxflags)
136
guile/audio_swig.cc: gnuradio/audio_swig.scm
137
gnuradio/audio_swig.scm: audio_swig.i
138
gnuradio/audio_swig-primitive.scm: gnuradio/audio_swig.scm
140
# Include the guile dependencies for this file
141
-include guile/audio_swig.d