root / Makefile.common @ 6f50256f
History | View | Annotate | Download (4.2 kB)
| 1 | # -*- Makefile -*- |
|---|---|
| 2 | # |
| 3 | # Copyright 2004,2006,2007,2008,2009 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_CFLAGS = @autoconf_default_CFLAGS@ @lf_CFLAGS@ |
| 24 | AM_CXXFLAGS = @autoconf_default_CXXFLAGS@ @lf_CXXFLAGS@ |
| 25 | |
| 26 | # includes |
| 27 | grincludedir = $(includedir)/gnuradio |
| 28 | |
| 29 | if PYTHON |
| 30 | # swig includes |
| 31 | swigincludedir = $(grincludedir)/swig |
| 32 | |
| 33 | # Install the gnuradio stuff in the appropriate subdirectory |
| 34 | # This usually ends up at: |
| 35 | # ${prefix}/lib/python${python_version}/site-packages/gnuradio
|
| 36 | |
| 37 | grpythondir = $(pythondir)/gnuradio |
| 38 | grpyexecdir = $(pyexecdir)/gnuradio |
| 39 | |
| 40 | # Install the non-gnuradio usrp stuff in the appropriate subdirectory |
| 41 | # This usually ends up at: |
| 42 | # ${prefix}/lib/python${python_version}/site-packages/usrpm
|
| 43 | |
| 44 | usrppythondir = $(pythondir)/usrpm |
| 45 | usrppyexecdir = $(pyexecdir)/usrpm |
| 46 | endif |
| 47 | |
| 48 | # gcell includes |
| 49 | gcellincludedir = $(includedir)/gcell |
| 50 | gcellspuincludedir = $(includedir)/gcell/spu |
| 51 | |
| 52 | # Cell spu libs |
| 53 | libspudir = $(libdir)spu |
| 54 | |
| 55 | # This used to be set in configure.ac but is now defined here for all |
| 56 | # Makefiles when this fragment is included. |
| 57 | STD_DEFINES_AND_INCLUDES = $(DEFINES) $(BOOST_CPPFLAGS) \ |
| 58 | $(OMNITHREAD_INCLUDES) $(GNURADIO_INCLUDES) $(GRUEL_INCLUDES) |
| 59 | |
| 60 | # when including for compilation from pre-installed libraries and such, |
| 61 | # need to make sure those are put last on the compile command |
| 62 | WITH_INCLUDES = @with_INCLUDES@ |
| 63 | WITH_SWIG_INCLUDES = @with_SWIG_INCLUDES@ |
| 64 | |
| 65 | # How to link in the top-level omnithreads library from inside the tree |
| 66 | OMNITHREAD_INCLUDES = @omnithread_INCLUDES@ |
| 67 | OMNITHREAD_LA = @omnithread_LA@ |
| 68 | |
| 69 | # Where to find gnuradio include files in the current build tree |
| 70 | # top_srcdir for original stuff, top_builddir for generated files |
| 71 | GNURADIO_INCLUDES = @gnuradio_core_INCLUDES@ |
| 72 | |
| 73 | # How to link in GNU Radio core library from inside the tree |
| 74 | GNURADIO_CORE_LA = @gnuradio_core_LA@ |
| 75 | |
| 76 | # How to link in the USRP library from inside the tree |
| 77 | GRUEL_INCLUDES = @gruel_INCLUDES@ |
| 78 | GRUEL_LA = @gruel_LA@ |
| 79 | |
| 80 | # How to link in the USRP library from inside the tree |
| 81 | USRP_INCLUDES = @usrp_INCLUDES@ |
| 82 | USRP_LA = @usrp_LA@ |
| 83 | |
| 84 | # How to link the PMT library from inside the tree |
| 85 | PMT_INCLUDES = @pmt_INCLUDES@ |
| 86 | PMT_LA = @pmt_LA@ |
| 87 | |
| 88 | # How to link the mblock library from inside the tree |
| 89 | MBLOCK_INCLUDES = @mblock_INCLUDES@ |
| 90 | MBLOCK_LA = @mblock_LA@ |
| 91 | |
| 92 | # How to link the gcell library from inside the tree (the PPU part) |
| 93 | GCELL_INCLUDES = @gcell_INCLUDES@ |
| 94 | GCELL_LA = @gcell_LA@ |
| 95 | |
| 96 | # How to link the gcell library from inside the tree (the SPU part) |
| 97 | GCELL_SPU_INCLUDES = @gcell_spu_INCLUDES@ |
| 98 | GCELL_SPU_LA = @gcell_spu_LA@ |
| 99 | |
| 100 | # libtool aware wrapper for ppu-embedspu |
| 101 | GCELL_EMBEDSPU_LIBTOOL = @abs_top_srcdir@/gcell/lib/runtime/gcell-embedspu-libtool |
| 102 | |
| 103 | # Fix for BSD make not defining $(RM). We define it now in configure.ac |
| 104 | # using AM_PATH_PROG, but now here have to add a -f to be like GNU make |
| 105 | RM=$(RM_PROG) -f |
| 106 | |
| 107 | RUN_GUILE = GUILE_LOAD_PATH="@abs_top_srcdir@/gruel/src/scheme:@abs_top_srcdir@/mblock/src/scheme" @GUILE@ -e main -s |
| 108 | COMPILE_MBH = $(RUN_GUILE) $(top_srcdir)/mblock/src/scheme/gnuradio/compile-mbh.scm |
| 109 | |
| 110 | # Base directory for example applications |
| 111 | exampledir = $(datadir)/gnuradio/examples |
| 112 | |
| 113 | # Base directory for documentation (docdir undefined in autoconf < 1.60) |
| 114 | docdir ?= $(datadir)/doc/$(PACKAGE) |
| 115 | gr_docdir = $(docdir)-$(VERSION) |
| 116 | |
| 117 | # System configuration files |
| 118 | gr_prefsdir = $(GR_PREFSDIR) |
| 119 | |
| 120 | # Other common defines; use "+=" to add to these |
| 121 | STAMPS = |
| 122 | MOSTLYCLEANFILES = $(BUILT_SOURCES) $(STAMPS) *.pyc *.pyo *~ *.tmp *.loT |
| 123 | |
| 124 | # Don't distribute the files defined in the variable 'no_dist_files' |
| 125 | dist-hook: |
| 126 | @for file in $(no_dist_files); do \ |
| 127 | echo $(RM) $(distdir)/$$file; \ |
| 128 | $(RM) $(distdir)/$$file; \ |
| 129 | done; |