Statistics
| Branch: | Tag: | Revision:

root / volk / Makefile.common @ 942e2685

History | View | Annotate | Download (1.8 kB)

1 23914465 Tom Rondeau
# -*- Makefile -*-
2 23914465 Tom Rondeau
#
3 81c3086b Tom Rondeau
# Copyright 2010,2011 Free Software Foundation, Inc.
4 23914465 Tom Rondeau
# 
5 23914465 Tom Rondeau
# This file is part of GNU Radio
6 23914465 Tom Rondeau
# 
7 23914465 Tom Rondeau
# GNU Radio is free software; you can redistribute it and/or modify
8 23914465 Tom Rondeau
# it under the terms of the GNU General Public License as published by
9 23914465 Tom Rondeau
# the Free Software Foundation; either version 3, or (at your option)
10 23914465 Tom Rondeau
# any later version.
11 23914465 Tom Rondeau
# 
12 23914465 Tom Rondeau
# GNU Radio is distributed in the hope that it will be useful,
13 23914465 Tom Rondeau
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14 23914465 Tom Rondeau
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 23914465 Tom Rondeau
# GNU General Public License for more details.
16 23914465 Tom Rondeau
# 
17 23914465 Tom Rondeau
# You should have received a copy of the GNU General Public License
18 23914465 Tom Rondeau
# along with GNU Radio; see the file COPYING.  If not, write to
19 23914465 Tom Rondeau
# the Free Software Foundation, Inc., 51 Franklin Street,
20 23914465 Tom Rondeau
# Boston, MA 02110-1301, USA.
21 23914465 Tom Rondeau
# 
22 23914465 Tom Rondeau
23 81c3086b Tom Rondeau
if MD_CPU_generic
24 81c3086b Tom Rondeau
    platform_CODE = \
25 81c3086b Tom Rondeau
	$(top_srcdir)/lib/volk_cpu_generic.c
26 81c3086b Tom Rondeau
endif
27 81c3086b Tom Rondeau
28 81c3086b Tom Rondeau
if MD_CPU_x86
29 81c3086b Tom Rondeau
    platform_CODE = \
30 9edf280f Josh Blum
	$(top_srcdir)/lib/volk_cpu_x86.c
31 81c3086b Tom Rondeau
endif
32 81c3086b Tom Rondeau
33 81c3086b Tom Rondeau
if MD_CPU_powerpc
34 81c3086b Tom Rondeau
    platform_CODE = \
35 81c3086b Tom Rondeau
	$(top_srcdir)/lib/volk_cpu_powerpc.c
36 81c3086b Tom Rondeau
endif
37 81c3086b Tom Rondeau
38 81c3086b Tom Rondeau
39 23914465 Tom Rondeau
ourincludedir   = $(includedir)/volk
40 23914465 Tom Rondeau
41 23914465 Tom Rondeau
# swig includes 
42 23914465 Tom Rondeau
ourswigincludedir = $(ourincludedir)/swig
43 23914465 Tom Rondeau
44 23914465 Tom Rondeau
# Install this stuff in the appropriate subdirectory
45 23914465 Tom Rondeau
# This usually ends up at:
46 1186ab98 Tom Rondeau
#   ${prefix}/lib/python${python_version}/site-packages/libvolk
47 23914465 Tom Rondeau
48 23914465 Tom Rondeau
ourpythondir = $(pythondir)/volk
49 23914465 Tom Rondeau
ourpyexecdir = $(pyexecdir)/volk
50 23914465 Tom Rondeau
51 23914465 Tom Rondeau
52 23914465 Tom Rondeau
# swig flags
53 23914465 Tom Rondeau
SWIGPYTHONFLAGS = -fvirtual -python -modern
54 23914465 Tom Rondeau
SWIGGRFLAGS = -I$(GNURADIO_CORE_INCLUDEDIR)/swig -I$(GNURADIO_CORE_INCLUDEDIR)
55 23914465 Tom Rondeau
56 23914465 Tom Rondeau
# standard defins and includes
57 23914465 Tom Rondeau
STD_DEFINES_AND_INCLUDES=-I$(top_srcdir)/include -I$(top_srcdir)/lib  $(GNURADIO_CORE_CPPFLAGS)
58 23914465 Tom Rondeau
59 23914465 Tom Rondeau
# Don't assume that make predefines $(RM), because BSD make does
60 23914465 Tom Rondeau
# not. We define it now in configure.ac using AM_PATH_PROG, but now
61 23914465 Tom Rondeau
# here have to add a -f to be like GNU make.
62 23914465 Tom Rondeau
RM=$(RM_PROG) -f