root / Makefile.common @ b48de00c
History | View | Annotate | Download (3.9 kB)
| 1 | # -*- Makefile -*- |
|---|---|
| 2 | # |
| 3 | # Copyright 2004,2006,2007,2008 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 3, 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 | AM_CXXFLAGS = @autoconf_default_CXXFLAGS@ |
| 24 | |
| 25 | # includes |
| 26 | grincludedir = $(includedir)/gnuradio |
| 27 | |
| 28 | # swig includes |
| 29 | swigincludedir = $(grincludedir)/swig |
| 30 | |
| 31 | # Install the gnuradio stuff in the appropriate subdirectory |
| 32 | # This usually ends up at: |
| 33 | # ${prefix}/lib/python${python_version}/site-packages/gnuradio
|
| 34 | |
| 35 | grpythondir = $(pythondir)/gnuradio |
| 36 | grpyexecdir = $(pyexecdir)/gnuradio |
| 37 | |
| 38 | # Install the non-gnuradio usrp stuff in the appropriate subdirectory |
| 39 | # This usually ends up at: |
| 40 | # ${prefix}/lib/python${python_version}/site-packages/usrpm
|
| 41 | |
| 42 | usrppythondir = $(pythondir)/usrpm |
| 43 | usrppyexecdir = $(pyexecdir)/usrpm |
| 44 | |
| 45 | # gcell includes |
| 46 | gcellincludedir = $(includedir)/gcell |
| 47 | gcellspuincludedir = $(includedir)/gcell/spu |
| 48 | |
| 49 | # Cell spu libs |
| 50 | libspudir = $(libdir)spu |
| 51 | |
| 52 | |
| 53 | # when including for compilation from pre-installed libraries and such, |
| 54 | # need to make sure those are put last on the compile command |
| 55 | WITH_INCLUDES = @with_INCLUDES@ |
| 56 | WITH_SWIG_INCLUDES = @with_SWIG_INCLUDES@ |
| 57 | |
| 58 | # swig flags |
| 59 | SWIGPYTHONFLAGS = -fvirtual -python -modern |
| 60 | |
| 61 | # How to link in the top-level omnithreads library from inside the tree |
| 62 | OMNITHREAD_INCLUDES = @omnithread_INCLUDES@ |
| 63 | OMNITHREAD_LA = @omnithread_LA@ |
| 64 | |
| 65 | # Where to find gnuradio include files in the current build tree |
| 66 | # top_srcdir for original stuff, top_builddir for generated files |
| 67 | GNURADIO_INCLUDES = @gnuradio_core_INCLUDES@ |
| 68 | |
| 69 | # How to link in GNU Radio core library from inside the tree |
| 70 | GNURADIO_CORE_LA = @gnuradio_core_LA@ |
| 71 | |
| 72 | # This is a dependency for many swig operations |
| 73 | GNURADIO_I = @gnuradio_core_I@ |
| 74 | |
| 75 | # How to link in the USRP library from inside the tree |
| 76 | GRUEL_INCLUDES = @gruel_INCLUDES@ |
| 77 | GRUEL_LA = @gruel_LA@ |
| 78 | |
| 79 | # How to link in the USRP library from inside the tree |
| 80 | USRP_INCLUDES = @usrp_INCLUDES@ |
| 81 | USRP_LA = @usrp_LA@ |
| 82 | |
| 83 | # How to link in usrp-inband library from inside the tree |
| 84 | USRP_INBAND_INCLUDES = @usrp_inband_INCLUDES@ |
| 85 | USRP_INBAND_LA = @usrp_inband_LA@ |
| 86 | |
| 87 | # How to link the PMT library from inside the tree |
| 88 | PMT_INCLUDES = @pmt_INCLUDES@ |
| 89 | PMT_LA = @pmt_LA@ |
| 90 | |
| 91 | # How to link the mblock library from inside the tree |
| 92 | MBLOCK_INCLUDES = @mblock_INCLUDES@ |
| 93 | MBLOCK_LA = @mblock_LA@ |
| 94 | |
| 95 | # How to link the gcell library from inside the tree (the PPU part) |
| 96 | GCELL_INCLUDES = @gcell_INCLUDES@ |
| 97 | GCELL_LA = @gcell_LA@ |
| 98 | |
| 99 | # How to link the gcell library from inside the tree (the SPU part) |
| 100 | GCELL_SPU_INCLUDES = @gcell_spu_INCLUDES@ |
| 101 | GCELL_SPU_LA = @gcell_spu_LA@ |
| 102 | |
| 103 | # libtool aware wrapper for ppu-embedspu |
| 104 | GCELL_EMBEDSPU_LIBTOOL = @abs_top_srcdir@/gcell/src/lib/runtime/gcell-embedspu-libtool |
| 105 | |
| 106 | # This used to be set in configure.ac but is now defined here for all |
| 107 | # Makefiles when this fragment is included. |
| 108 | STD_DEFINES_AND_INCLUDES=$(DEFINES) $(OMNITHREAD_INCLUDES) $(GNURADIO_INCLUDES) $(BOOST_CFLAGS) |
| 109 | |
| 110 | # Fix for BSD make not defining $(RM). We define it now in configure.ac |
| 111 | # using AM_PATH_PROG, but now here have to add a -f to be like GNU make |
| 112 | RM=$(RM_PROG) -f |
| 113 | |
| 114 | RUN_GUILE = GUILE_LOAD_PATH="@abs_top_srcdir@/pmt/src/scheme:@abs_top_srcdir@/mblock/src/scheme" @GUILE@ -e main -s |
| 115 | COMPILE_MBH = $(RUN_GUILE) $(top_srcdir)/mblock/src/scheme/gnuradio/compile-mbh.scm |
| 116 | |
| 117 | # Base directory for example applications |
| 118 | exampledir = $(datadir)/gnuradio/examples |