Imported Upstream version 3.0.3
[debian/gnuradio] / Makefile.common
1 # -*- Makefile -*-
2 #
3 # Copyright 2004,2006,2007 Free Software Foundation, Inc.
4
5 # This file is part of GNU Radio
6
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 2, or (at your option)
10 # any later version.
11
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.
16
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.
21
22
23 # includes
24 grincludedir   = $(includedir)/gnuradio
25
26 # swig includes 
27 swigincludedir = $(grincludedir)/swig
28
29 # Install this stuff in the appropriate subdirectory
30 # This usually ends up at:
31 #   ${prefix}/lib/python${python_version}/site-packages/gnuradio
32
33 grpythondir = $(pythondir)/gnuradio
34 grpyexecdir = $(pyexecdir)/gnuradio
35
36 # swig flags
37 SWIGPYTHONFLAGS = -fvirtual -python -modern
38
39 # Where to find gnuradio include files in the current build tree
40 # top_srcdir for original stuff, top_builddir for generated files
41 GNURADIO_INCLUDES = -I$(top_srcdir)/gnuradio-core/src/lib/runtime \
42                     -I$(top_srcdir)/gnuradio-core/src/lib/general \
43                     -I$(top_builddir)/gnuradio-core/src/lib/general \
44                     -I$(top_srcdir)/gnuradio-core/src/lib/filter \
45                     -I$(top_builddir)/gnuradio-core/src/lib/filter \
46                     -I$(top_srcdir)/gnuradio-core/src/lib/reed-solomon \
47                     -I$(top_srcdir)/gnuradio-core/src/lib/io \
48                     -I$(top_srcdir)/gnuradio-core/src/lib/g72x \
49                     -I$(top_srcdir)/gnuradio-core/src/lib/omnithread \
50                     -I$(top_srcdir)/gnuradio-core/src/lib/swig \
51                     -I$(top_builddir)/gnuradio-core/src/lib/swig \
52                     $(FFTW3F_CFLAGS)
53
54 # How to link in GNU Radio core library from inside the tree
55 GNURADIO_CORE_LA = $(top_builddir)/gnuradio-core/src/lib/libgnuradio-core.la
56
57 # This is a dependency for many swig operations
58 GNURADIO_I = $(top_srcdir)/gnuradio-core/src/lib/swig/gnuradio.i
59
60 # How to link in the USRP library from inside the tree
61 USRP_INCLUDES = -I$(top_srcdir)/usrp/host/lib \
62                 -I$(top_srcdir)/usrp/firmware/include
63 USRP_LA = $(top_builddir)/usrp/host/lib/libusrp.la
64
65 # This used to be set in configure.ac but is now defined here for all 
66 # Makefiles when this fragment is included.
67 STD_DEFINES_AND_INCLUDES=$(DEFINES) $(GNURADIO_INCLUDES) $(BOOST_CFLAGS)
68
69 # Fix for BSD make not defining $(RM).  We define it now in configure.ac
70 # using AM_PATH_PROG, but now here have to add a -f to be like GNU make
71 RM=$(RM_PROG) -f