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