Statistics
| Branch: | Tag: | Revision:

root / gnuradio-core / src / lib / swig / Makefile.am @ 0408e48c

History | View | Annotate | Download (3.6 kB)

1
#
2
# Copyright 2001,2003,2004,2005,2006,2007,2008,2009,2010 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 3, 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
include $(top_srcdir)/Makefile.common
23
include $(top_srcdir)/Makefile.swig
24
25
AM_CPPFLAGS = -I$(srcdir) $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) \
26
	 $(WITH_INCLUDES)
27
28
# ----------------------------------------------------------------
29
# We've split the previously monstrous gnuradio_core into 6
30
# smaller pieces.  This reduces compile time coupling and creates
31
# smaller pieces for the compiler to digest.  prior to this change, on
32
# X86_64, g++'s resident set size was 650MB!
33
# ----------------------------------------------------------------
34
35
TOP_SWIG_IFILES =		\
36
	gnuradio_core_runtime.i	\
37
	gnuradio_core_general.i	\
38
	gnuradio_core_gengen.i	\
39
	gnuradio_core_filter.i	\
40
	gnuradio_core_io.i	\
41
	gnuradio_core_hier.i
42
43
TOP_SWIG_DOC_IFILES = \
44
	filter_swig_doc.i	\
45
	general_swig_doc.i	\
46
	gengen_swig_doc.i	\
47
	hier_swig_doc.i		\
48
	io_swig_doc.i		\
49
	runtime_swig_doc.i
50
51
52
BUILT_SOURCES += \
53
	$(TOP_SWIG_DOC_IFILES)
54
55
$(TOP_SWIG_DOC_IFILES):
56
	`echo "" > $@`
57
58
install-data-local:
59
	cp -p $(TOP_SWIG_DOC_IFILES) $(swigincludedir)
60
61
# SWIG headers get installed in ${prefix}/include/gnuradio/swig
62
swiginclude_HEADERS =			\
63
	gnuradio.i			\
64
	gr_swig_block_magic.i		\
65
	gr_shared_ptr.i                
66
67
# SWIG headers that get installed in ${prefix}/include/gnuradio/swig/...
68
nobase_swiginclude_HEADERS = \
69
	guile/std_complex.i \
70
	guile/std_vector.i
71
72
73
# special install for this top-level Python script which includes all
74
# of the split Python libraries.
75
ourpythondir = $(grpythondir)/gr
76
ourpython_PYTHON = gnuradio_core.py
77
78
# ----------------------------------------------------------------
79
# FIXME As of swig 1.3.31, this still seems to be required...
80
# gnuradio_swig_bug_workaround.h : gnuradio_core_runtime.py $(srcdir)/gen-swig-bug-fix
81
#	$(PYTHON) $(srcdir)/gen-swig-bug-fix python/gnuradio_core_runtime.cc $@
82
83
EXTRA_DIST += gen-swig-bug-fix
84
85
# C/C++ headers get installed in ${prefix}/include/gnuradio
86
grinclude_HEADERS = gnuradio_swig_bug_workaround.h
87
88
89
# Install so that they end up available as:
90
#   import gnuradio.gr
91
# This ends up at:
92
#   ${prefix}/lib/python${python_version}/site-packages/gnuradio/gr
93
gnuradio_core_runtime_pythondir_category = gnuradio/gr
94
gnuradio_core_general_pythondir_category = gnuradio/gr
95
gnuradio_core_gengen_pythondir_category  = gnuradio/gr
96
gnuradio_core_filter_pythondir_category  = gnuradio/gr
97
gnuradio_core_io_pythondir_category      = gnuradio/gr
98
gnuradio_core_hier_pythondir_category    = gnuradio/gr
99
100
# additional libraries for linking with each SWIG-generated library
101
gnuradio_core_runtime_la_swig_libadd = $(GNURADIO_CORE_LA)
102
gnuradio_core_general_la_swig_libadd = $(GNURADIO_CORE_LA)
103
gnuradio_core_gengen_la_swig_libadd  = $(GNURADIO_CORE_LA)
104
gnuradio_core_filter_la_swig_libadd  = $(GNURADIO_CORE_LA)
105
gnuradio_core_io_la_swig_libadd      = $(GNURADIO_CORE_LA)
106
gnuradio_core_hier_la_swig_libadd    = $(GNURADIO_CORE_LA)
107
108
SWIG_GUILE_FLAGS += -DIN_GNURADIO_CORE