Statistics
| Branch: | Tag: | Revision:

root / Makefile.common @ cda71d95

History | View | Annotate | Download (4 kB)

1 5d69a524 jcorgan
# -*- Makefile -*-
2 5d69a524 jcorgan
#
3 63d05d64 jcorgan
# Copyright 2004,2006,2007 Free Software Foundation, Inc.
4 5d69a524 jcorgan
# 
5 5d69a524 jcorgan
# This file is part of GNU Radio
6 5d69a524 jcorgan
# 
7 5d69a524 jcorgan
# GNU Radio is free software; you can redistribute it and/or modify
8 5d69a524 jcorgan
# it under the terms of the GNU General Public License as published by
9 937b719d eb
# the Free Software Foundation; either version 3, or (at your option)
10 5d69a524 jcorgan
# any later version.
11 5d69a524 jcorgan
# 
12 5d69a524 jcorgan
# GNU Radio is distributed in the hope that it will be useful,
13 5d69a524 jcorgan
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14 5d69a524 jcorgan
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 5d69a524 jcorgan
# GNU General Public License for more details.
16 5d69a524 jcorgan
# 
17 5d69a524 jcorgan
# You should have received a copy of the GNU General Public License
18 5d69a524 jcorgan
# along with GNU Radio; see the file COPYING.  If not, write to
19 86f5c924 eb
# the Free Software Foundation, Inc., 51 Franklin Street,
20 86f5c924 eb
# Boston, MA 02110-1301, USA.
21 5d69a524 jcorgan
# 
22 5d69a524 jcorgan
23 cbe1628f eb
AM_CXXFLAGS = @autoconf_default_CXXFLAGS@
24 cbe1628f eb
25 5d69a524 jcorgan
# includes
26 5d69a524 jcorgan
grincludedir   = $(includedir)/gnuradio
27 5d69a524 jcorgan
28 5d69a524 jcorgan
# swig includes 
29 5d69a524 jcorgan
swigincludedir = $(grincludedir)/swig
30 5d69a524 jcorgan
31 22443488 eb
# Install the gnuradio stuff in the appropriate subdirectory
32 5d69a524 jcorgan
# This usually ends up at:
33 5d69a524 jcorgan
#   ${prefix}/lib/python${python_version}/site-packages/gnuradio
34 5d69a524 jcorgan
35 5d69a524 jcorgan
grpythondir = $(pythondir)/gnuradio
36 5d69a524 jcorgan
grpyexecdir = $(pyexecdir)/gnuradio
37 5d69a524 jcorgan
38 22443488 eb
# Install the non-gnuradio usrp stuff in the appropriate subdirectory
39 22443488 eb
# This usually ends up at:
40 22443488 eb
#   ${prefix}/lib/python${python_version}/site-packages/usrpm
41 22443488 eb
42 22443488 eb
usrppythondir = $(pythondir)/usrpm
43 22443488 eb
usrppyexecdir = $(pyexecdir)/usrpm
44 22443488 eb
45 22443488 eb
46 5d69a524 jcorgan
# swig flags
47 5d69a524 jcorgan
SWIGPYTHONFLAGS = -fvirtual -python -modern
48 5d69a524 jcorgan
49 edb71836 jcorgan
# Where to find gnuradio include files in the current build tree
50 e27ba9ae jcorgan
# top_srcdir for original stuff, top_builddir for generated files
51 951966ca jcorgan
GNURADIO_INCLUDES = -I$(top_srcdir)/gnuradio-core/src/lib/runtime \
52 951966ca jcorgan
		    -I$(top_srcdir)/gnuradio-core/src/lib/general \
53 e27ba9ae jcorgan
		    -I$(top_builddir)/gnuradio-core/src/lib/general \
54 cbe1628f eb
		    -I$(top_srcdir)/gnuradio-core/src/lib/gengen \
55 cbe1628f eb
		    -I$(top_builddir)/gnuradio-core/src/lib/gengen \
56 951966ca jcorgan
		    -I$(top_srcdir)/gnuradio-core/src/lib/filter \
57 e27ba9ae jcorgan
		    -I$(top_builddir)/gnuradio-core/src/lib/filter \
58 e27ba9ae jcorgan
		    -I$(top_srcdir)/gnuradio-core/src/lib/reed-solomon \
59 951966ca jcorgan
		    -I$(top_srcdir)/gnuradio-core/src/lib/io \
60 951966ca jcorgan
		    -I$(top_srcdir)/gnuradio-core/src/lib/g72x \
61 951966ca jcorgan
		    -I$(top_srcdir)/gnuradio-core/src/lib/swig \
62 e27ba9ae jcorgan
		    -I$(top_builddir)/gnuradio-core/src/lib/swig \
63 951966ca jcorgan
	            $(FFTW3F_CFLAGS)
64 951966ca jcorgan
65 63d05d64 jcorgan
# How to link in the top-level omnithreads library from inside the tree
66 e10941aa jcorgan
OMNITHREAD_INCLUDES = -I$(top_srcdir)/omnithread
67 63d05d64 jcorgan
OMNITHREAD_LA = $(top_builddir)/omnithread/libgromnithread.la
68 e27ba9ae jcorgan
69 63d05d64 jcorgan
# How to link in GNU Radio core library from inside the tree
70 63d05d64 jcorgan
GNURADIO_CORE_LA = $(top_builddir)/gnuradio-core/src/lib/libgnuradio-core.la
71 951966ca jcorgan
72 e27ba9ae jcorgan
# This is a dependency for many swig operations
73 e27ba9ae jcorgan
GNURADIO_I = $(top_srcdir)/gnuradio-core/src/lib/swig/gnuradio.i
74 951966ca jcorgan
75 63d05d64 jcorgan
# How to link in the USRP library from inside the tree
76 0bf2128a eb
USRP_INCLUDES = -I$(top_srcdir)/usrp/host/lib/legacy \
77 791d3919 eb
		-I$(top_srcdir)/usrp/firmware/include
78 73b85d78 eb
USRP_LA = $(top_builddir)/usrp/host/lib/legacy/libusrp.la
79 73b85d78 eb
80 73b85d78 eb
# How to link in usrp-inband library from inside the tree
81 73b85d78 eb
USRP_INBAND_INCLUDES = 	-I$(top_srcdir)/usrp/host/lib/inband 
82 73b85d78 eb
USRP_INBAND_LA = $(top_builddir)/usrp/host/lib/inband/libusrp_inband.la
83 951966ca jcorgan
84 63d05d64 jcorgan
# How to link the PMT library from inside the tree
85 dee26d1c eb
PMT_INCLUDES = -I$(top_srcdir)/pmt/src/lib
86 63d05d64 jcorgan
PMT_LA = $(top_builddir)/pmt/src/lib/libpmt.la
87 dee26d1c eb
88 0bf2128a eb
# How to link the mblock library from inside the tree
89 0bf2128a eb
MBLOCK_INCLUDES = -I$(top_srcdir)/mblock/src/lib
90 0bf2128a eb
MBLOCK_LA = $(top_builddir)/mblock/src/lib/libmblock.la
91 0bf2128a eb
92 5a113d87 jcorgan
# This used to be set in configure.ac but is now defined here for all 
93 5a113d87 jcorgan
# Makefiles when this fragment is included.
94 6ff1faed eb
STD_DEFINES_AND_INCLUDES=$(DEFINES) $(OMNITHREAD_INCLUDES) $(GNURADIO_INCLUDES) $(BOOST_CFLAGS)
95 c7aab5e1 jcorgan
96 c7aab5e1 jcorgan
# Fix for BSD make not defining $(RM).  We define it now in configure.ac
97 c7aab5e1 jcorgan
# using AM_PATH_PROG, but now here have to add a -f to be like GNU make
98 c7aab5e1 jcorgan
RM=$(RM_PROG) -f
99 0bf2128a eb
100 0bf2128a eb
RUN_GUILE = GUILE_LOAD_PATH="@abs_top_srcdir@/pmt/src/scheme:@abs_top_srcdir@/mblock/src/scheme" @GUILE@ -e main -s
101 0bf2128a eb
COMPILE_MBH = $(RUN_GUILE) $(top_srcdir)/mblock/src/scheme/gnuradio/compile-mbh.scm
102 54d6b928 jcorgan
103 54d6b928 jcorgan
# Base directory for example applications
104 54d6b928 jcorgan
exampledir = $(datadir)/gnuradio/examples