Statistics
| Branch: | Tag: | Revision:

root / Makefile.swig.gen.t @ 20a083fe

History | View | Annotate | Download (4.5 kB)

1 c3f962a1 jcorgan
# -*- Makefile -*-
2 c3f962a1 jcorgan
#
3 c3f962a1 jcorgan
# Copyright 2009 Free Software Foundation, Inc.
4 c3f962a1 jcorgan
# 
5 c3f962a1 jcorgan
# This file is part of GNU Radio
6 c3f962a1 jcorgan
# 
7 c3f962a1 jcorgan
# GNU Radio is free software; you can redistribute it and/or modify
8 c3f962a1 jcorgan
# it under the terms of the GNU General Public License as published by
9 c3f962a1 jcorgan
# the Free Software Foundation; either version 3, or (at your option)
10 c3f962a1 jcorgan
# any later version.
11 c3f962a1 jcorgan
# 
12 c3f962a1 jcorgan
# GNU Radio is distributed in the hope that it will be useful,
13 c3f962a1 jcorgan
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14 c3f962a1 jcorgan
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 c3f962a1 jcorgan
# GNU General Public License for more details.
16 c3f962a1 jcorgan
# 
17 c3f962a1 jcorgan
# You should have received a copy of the GNU General Public License
18 c3f962a1 jcorgan
# along with GNU Radio; see the file COPYING.  If not, write to
19 c3f962a1 jcorgan
# the Free Software Foundation, Inc., 51 Franklin Street,
20 c3f962a1 jcorgan
# Boston, MA 02110-1301, USA.
21 c3f962a1 jcorgan
# 
22 c3f962a1 jcorgan
23 c3f962a1 jcorgan
# Makefile.swig.gen for @NAME@.i
24 c3f962a1 jcorgan
25 c3f962a1 jcorgan
## Default install locations for these files:
26 c3f962a1 jcorgan
##
27 c3f962a1 jcorgan
## Default location for the Python directory is:
28 c3f962a1 jcorgan
##  ${prefix}/lib/python${python_version}/site-packages/[category]/@NAME@
29 c3f962a1 jcorgan
## Default location for the Python exec directory is:
30 c3f962a1 jcorgan
##  ${exec_prefix}/lib/python${python_version}/site-packages/[category]/@NAME@
31 c3f962a1 jcorgan
##
32 c3f962a1 jcorgan
## The following can be overloaded to change the install location, but
33 c3f962a1 jcorgan
## this has to be done in the including Makefile.am -before-
34 c3f962a1 jcorgan
## Makefile.swig is included.
35 c3f962a1 jcorgan
36 c3f962a1 jcorgan
@NAME@_pythondir_category ?= gnuradio/@NAME@
37 c3f962a1 jcorgan
@NAME@_pylibdir_category ?= $(@NAME@_pythondir_category)
38 c3f962a1 jcorgan
@NAME@_pythondir = $(pythondir)/$(@NAME@_pythondir_category)
39 c3f962a1 jcorgan
@NAME@_pylibdir = $(pyexecdir)/$(@NAME@_pylibdir_category)
40 c3f962a1 jcorgan
41 3842b40b Rob Savoye
# The .so libraries for the guile modules get installed whereever guile
42 3842b40b Rob Savoye
# is installed, usually /usr/lib/guile/gnuradio/
43 3842b40b Rob Savoye
# FIXME: determince whether these should be installed with gnuradio.
44 fba8a45e Eric Blossom
@NAME@_scmlibdir = $(libdir)
45 3842b40b Rob Savoye
46 3842b40b Rob Savoye
# The scm files for the guile modules get installed where ever guile
47 3842b40b Rob Savoye
# is installed, usually /usr/share/guile/site/@NAME@
48 3842b40b Rob Savoye
# FIXME: determince whether these should be installed with gnuradio.
49 299aba57 Eric Blossom
@NAME@_scmdir = $(guiledir)
50 3842b40b Rob Savoye
51 c3f962a1 jcorgan
## SWIG headers are always installed into the same directory.
52 c3f962a1 jcorgan
53 c3f962a1 jcorgan
@NAME@_swigincludedir = $(swigincludedir)
54 c3f962a1 jcorgan
55 c3f962a1 jcorgan
## This is a template file for a "generated" Makefile addition (in
56 c3f962a1 jcorgan
## this case, "Makefile.swig.gen").  By including the top-level
57 c3f962a1 jcorgan
## Makefile.swig, this file will be used to generate the SWIG
58 c3f962a1 jcorgan
## dependencies.  Assign the variable TOP_SWIG_FILES to be the list of
59 c3f962a1 jcorgan
## SWIG .i files to generated wrappings for; there can be more than 1
60 c3f962a1 jcorgan
## so long as the names are unique (no sorting is done on the
61 c3f962a1 jcorgan
## TOP_SWIG_FILES list). This file explicitly assumes that a SWIG .i
62 c3f962a1 jcorgan
## file will generate .cc, .py, and possibly .h files -- meaning that
63 c3f962a1 jcorgan
## all of these files will have the same base name (that provided for
64 c3f962a1 jcorgan
## the SWIG .i file).
65 c3f962a1 jcorgan
##
66 c3f962a1 jcorgan
## This code is setup to ensure parallel MAKE ("-j" or "-jN") does the
67 c3f962a1 jcorgan
## right thing.  For more info, see <
68 c3f962a1 jcorgan
## http://sources.redhat.com/automake/automake.html#Multiple-Outputs >
69 c3f962a1 jcorgan
70 c3f962a1 jcorgan
## Other cleaned files: dependency files generated by SWIG or this Makefile
71 c3f962a1 jcorgan
72 c3f962a1 jcorgan
MOSTLYCLEANFILES += $(DEPDIR)/*.S*
73 c3f962a1 jcorgan
74 c3f962a1 jcorgan
## Various SWIG variables.  These can be overloaded in the including
75 c3f962a1 jcorgan
## Makefile.am by setting the variable value there, then including
76 c3f962a1 jcorgan
## Makefile.swig .
77 c3f962a1 jcorgan
78 c3f962a1 jcorgan
@NAME@_swiginclude_HEADERS =		\
79 c3f962a1 jcorgan
	@NAME@.i			\
80 c3f962a1 jcorgan
	$(@NAME@_swiginclude_headers)
81 c3f962a1 jcorgan
82 d67df105 Rob Savoye
if PYTHON
83 c3f962a1 jcorgan
@NAME@_pylib_LTLIBRARIES =		\
84 ef074365 Rob Savoye
	_@NAME@.la
85 c3f962a1 jcorgan
86 ef074365 Rob Savoye
_@NAME@_la_SOURCES = 			\
87 ef074365 Rob Savoye
	python/@NAME@.cc		\
88 c3f962a1 jcorgan
	$(@NAME@_la_swig_sources)
89 c3f962a1 jcorgan
90 d67df105 Rob Savoye
@NAME@_python_PYTHON =			\
91 d67df105 Rob Savoye
	@NAME@.py			\
92 d67df105 Rob Savoye
	$(@NAME@_python)
93 d67df105 Rob Savoye
94 ef074365 Rob Savoye
_@NAME@_la_LIBADD =			\
95 c3f962a1 jcorgan
	$(STD_SWIG_LA_LIB_ADD)		\
96 c3f962a1 jcorgan
	$(@NAME@_la_swig_libadd)
97 c3f962a1 jcorgan
98 ef074365 Rob Savoye
_@NAME@_la_LDFLAGS =			\
99 c3f962a1 jcorgan
	$(STD_SWIG_LA_LD_FLAGS)		\
100 c3f962a1 jcorgan
	$(@NAME@_la_swig_ldflags)
101 c3f962a1 jcorgan
102 ef074365 Rob Savoye
_@NAME@_la_CXXFLAGS =			\
103 c3f962a1 jcorgan
	$(STD_SWIG_CXX_FLAGS)		\
104 39d4b276 Rob Savoye
	-I$(top_builddir) 		\
105 c3f962a1 jcorgan
	$(@NAME@_la_swig_cxxflags)
106 c3f962a1 jcorgan
107 4216a7b3 Rob Savoye
python/@NAME@.cc: @NAME@.py
108 315f45c2 Ben Reynwar
@NAME@.py: @NAME@.i 
109 4216a7b3 Rob Savoye
110 4216a7b3 Rob Savoye
# Include the python dependencies for this file
111 4216a7b3 Rob Savoye
-include python/@NAME@.d
112 d67df105 Rob Savoye
113 d67df105 Rob Savoye
endif		# end of if python
114 4216a7b3 Rob Savoye
115 a30db7e0 Rob Savoye
if GUILE
116 d67df105 Rob Savoye
117 d67df105 Rob Savoye
@NAME@_scmlib_LTLIBRARIES = 		\
118 0b5f6611 Eric Blossom
	libguile-gnuradio-@NAME@.la
119 0b5f6611 Eric Blossom
libguile_gnuradio_@NAME@_la_SOURCES =	\
120 39d4b276 Rob Savoye
	guile/@NAME@.cc			\
121 a30db7e0 Rob Savoye
	$(@NAME@_la_swig_sources)
122 d67df105 Rob Savoye
nobase_@NAME@_scm_DATA = 		\
123 d67df105 Rob Savoye
	gnuradio/@NAME@.scm 		\
124 d67df105 Rob Savoye
	gnuradio/@NAME@-primitive.scm
125 0b5f6611 Eric Blossom
libguile_gnuradio_@NAME@_la_LIBADD = 	\
126 d67df105 Rob Savoye
	$(STD_SWIG_LA_LIB_ADD)		\
127 d67df105 Rob Savoye
	$(@NAME@_la_swig_libadd)
128 0b5f6611 Eric Blossom
libguile_gnuradio_@NAME@_la_LDFLAGS = 	\
129 d67df105 Rob Savoye
	$(STD_SWIG_LA_LD_FLAGS)		\
130 d67df105 Rob Savoye
	$(@NAME@_la_swig_ldflags)
131 0b5f6611 Eric Blossom
libguile_gnuradio_@NAME@_la_CXXFLAGS = 	\
132 d67df105 Rob Savoye
	$(STD_SWIG_CXX_FLAGS)		\
133 d67df105 Rob Savoye
	-I$(top_builddir) 		\
134 d67df105 Rob Savoye
	$(@NAME@_la_swig_cxxflags)
135 a30db7e0 Rob Savoye
136 08e6b7c1 Rob Savoye
guile/@NAME@.cc: gnuradio/@NAME@.scm
137 08e6b7c1 Rob Savoye
gnuradio/@NAME@.scm: @NAME@.i
138 08e6b7c1 Rob Savoye
gnuradio/@NAME@-primitive.scm: gnuradio/@NAME@.scm
139 e1a05ac8 Rob Savoye
140 4216a7b3 Rob Savoye
# Include the guile dependencies for this file
141 81983f26 Rob Savoye
-include guile/@NAME@.d
142 c3f962a1 jcorgan
143 39d4b276 Rob Savoye
endif				# end of GUILE