gnuradio-core: fix missing linker flags for boost_program_options
[debian/gnuradio] / Makefile.common
1 # -*- Makefile -*-
2 #
3 # Copyright 2004,2006,2007,2008,2009,2010 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 # Sets ABI version in SONAME and appends -LIBVER to filename
27 LTVERSIONFLAGS = -version-info 0:0:0 -release $(LIBVER)
28
29 # includes
30 grincludedir = $(includedir)/gnuradio
31
32 if PYTHON
33 # swig includes
34 swigincludedir = $(grincludedir)/swig
35
36 # Install the gnuradio stuff in the appropriate subdirectory
37 # This usually ends up at:
38 #   ${prefix}/lib/python${python_version}/site-packages/gnuradio
39
40 grpythondir = $(pythondir)/gnuradio
41 grpyexecdir = $(pyexecdir)/gnuradio
42
43 # Install the non-gnuradio usrp stuff in the appropriate subdirectory
44 # This usually ends up at:
45 #   ${prefix}/lib/python${python_version}/site-packages/usrpm
46
47 usrppythondir = $(pythondir)/usrpm
48 usrppyexecdir = $(pyexecdir)/usrpm
49 endif
50
51 # gcell includes
52 gcellincludedir = $(includedir)/gcell
53 gcellspuincludedir = $(includedir)/gcell/spu
54
55 # Cell spu libs
56 libspudir = $(libdir)spu
57
58 # This used to be set in configure.ac but is now defined here for all 
59 # Makefiles when this fragment is included.
60 STD_DEFINES_AND_INCLUDES = $(DEFINES) $(BOOST_CPPFLAGS) \
61         $(GNURADIO_INCLUDES) $(GRUEL_INCLUDES)
62
63 # when including for compilation from pre-installed libraries and such,
64 # need to make sure those are put last on the compile command
65 WITH_INCLUDES = @with_INCLUDES@
66 WITH_SWIG_INCLUDES = @with_SWIG_INCLUDES@
67
68 # Where to find gnuradio include files in the current build tree
69 # top_srcdir for original stuff, top_builddir for generated files
70 GNURADIO_INCLUDES = @gnuradio_core_INCLUDES@
71
72 # How to link in GNU Radio core library from inside the tree
73 GNURADIO_CORE_LA = @gnuradio_core_LA@
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 the gcell library from inside the tree (the PPU part)
84 GCELL_INCLUDES = @gcell_INCLUDES@
85 GCELL_LA = @gcell_LA@
86
87 # How to link the gcell library from inside the tree (the SPU part)
88 GCELL_SPU_INCLUDES = @gcell_spu_INCLUDES@
89 GCELL_SPU_LA = @gcell_spu_LA@
90
91 # libtool aware wrapper for ppu-embedspu
92 GCELL_EMBEDSPU_LIBTOOL = @abs_top_srcdir@/gcell/lib/runtime/gcell-embedspu-libtool
93
94 # Fix for BSD make not defining $(RM).  We define it now in configure.ac
95 # using AM_PATH_PROG, but now here have to add a -f to be like GNU make
96 RM=$(RM_PROG) -f
97
98 RUN_GUILE = GUILE_LOAD_PATH="@abs_top_srcdir@/gruel/src/scheme" @GUILE@ -e main -s
99
100 # Base directory for example applications
101 exampledir = $(datadir)/gnuradio/examples
102
103 # Base directory for documentation (docdir undefined in autoconf < 1.60)
104 docdir ?= $(datadir)/doc/$(PACKAGE)
105 gr_docdir = $(docdir)-$(DOCVER)
106
107 # System configuration files
108 gr_prefsdir = $(GR_PREFSDIR)
109
110 # Data directory for grc block wrappers
111 grc_blocksdir = $(pkgdatadir)/grc/blocks
112
113 # Other common defines; use "+=" to add to these
114 STAMPS =
115 MOSTLYCLEANFILES = $(BUILT_SOURCES) $(STAMPS) *.pyc *.pyo *~ *.tmp *.loT
116
117 # Don't distribute the files defined in the variable 'no_dist_files'
118 dist-hook:
119         @for file in $(no_dist_files); do \
120                 echo $(RM) $(distdir)/$$file; \
121                 $(RM) $(distdir)/$$file; \
122         done;