]> git.gag.com Git - debian/gnuradio/blob - gr-gcell/src/Makefile.am
Merged eb/gcell -r8215:8243 into trunk. This adds gr-gcell, the GNU
[debian/gnuradio] / gr-gcell / src / Makefile.am
1 #
2 # Copyright 2008 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 along
17 # with this program; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #
20
21 include $(top_srcdir)/Makefile.common
22
23 SUBDIRS = . examples
24
25 EXTRA_DIST = run_tests.in
26 TESTS = run_tests
27
28
29 # Install the python portion so that it ends up as the gnuradio.gcell module
30 #   ${prefix}/lib/python${python_version}/site-packages/gnuradio
31
32 ourpythondir = $(grpythondir)
33 ourlibdir    = $(grpyexecdir)
34
35 AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(GCELL_INCLUDES) $(PYTHON_CPPFLAGS) $(WITH_INCLUDES)
36
37 SWIGPYTHONARGS = $(SWIGPYTHONFLAGS) $(STD_DEFINES_AND_INCLUDES) $(GCELL_INCLUDES) \
38         $(WITH_SWIG_INCLUDES) $(WITH_INCLUDES)
39
40 # ----------------------------------------------------------------
41 #                        The C++ blocks
42 # ----------------------------------------------------------------
43
44 # the library for the C++ blocks
45 lib_LTLIBRARIES = libgr_gcell.la
46
47 libgr_gcell_la_SOURCES = \
48         gcell_fft_vcc.cc
49
50 grinclude_HEADERS = \
51         gcell_fft_vcc.h
52
53 libgr_gcell_la_LIBADD = \
54         $(GNURADIO_CORE_LA) \
55         $(GCELL_LA)
56
57 libgr_gcell_la_LDFLAGS = $(NO_UNDEFINED)
58
59
60 # ----------------------------------------------------------------
61 #                         SWIG stuff
62 # ----------------------------------------------------------------
63
64 # the library for the swig interface
65 ourlib_LTLIBRARIES = _gcell.la
66
67 LOCAL_IFILES = \
68         $(top_srcdir)/gr-gcell/src/gcell.i
69
70 NON_LOCAL_IFILES = \
71         $(GNURADIO_I)
72
73 ALL_IFILES = \
74         $(LOCAL_IFILES) \
75         $(NON_LOCAL_IFILES)
76
77 swig_built_sources = \
78         gcell.cc \
79         gcell.py
80
81 ourpython_PYTHON = \
82         gcell.py
83
84 _gcell_la_SOURCES = \
85         gcell.cc
86
87 _gcell_la_LIBADD = \
88         $(PYTHON_LDFLAGS) \
89         libgr_gcell.la \
90         -lstdc++
91
92 _gcell_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
93
94
95 swiginclude_HEADERS = \
96         $(LOCAL_IFILES)
97
98 #gcell.cc gcell.py: $(LOCAL_IFILES) $(NON_LOCAL_IFILES)
99 #       $(SWIG) $(SWIGPYTHONARGS) -module gcell -o gcell.cc $(LOCAL_IFILES)
100
101 # KLUDGE: Force runtime include of gcell.d dependency file.
102 # This is not guaranteed to be portable, but will probably work.
103 # If it works, we have accurate dependencies for our swig stuff, which is good.
104 @am__include@ @am__quote@./gcell.d@am__quote@
105
106 gcell.py gcell.h: gcell.cc
107
108 gcell.cc : gcell.i $(GNURADIO_I)
109         if $(SWIG) $(SWIGPYTHONARGS) -MMD -MF gcell.Td -module gcell -o gcell.cc $(srcdir)/gcell.i ;\
110         then if test $(host_os) = mingw32; \
111              then sed 's,\\\\,/,g' <gcell.Td >gcell.d; rm -f gcell.Td; \
112              else mv -f gcell.Td gcell.d; fi \
113         else rm -f gcell.Td; exit 1; fi 
114
115
116 noinst_PYTHON =  \
117         qa_gcell.py
118
119 # ----------------------------------------------------------------
120
121 MOSTLYCLEANFILES =  \
122         $(swig_built_sources) *~ *.pyc
123
124 # Don't distribute output of swig
125 dist-hook:
126         @for file in $(swig_built_sources); do echo $(RM) $(distdir)/$$file; done
127         @for file in $(swig_built_sources); do $(RM) $(distdir)/$$file; done
128
129 DISTCLEANFILES = \
130         gcell.d