~ubuntu-branches/ubuntu/trusty/gnuradio/trusty

« back to all changes in this revision

Viewing changes to usrp/host/swig/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Kamal Mostafa
  • Date: 2010-03-13 07:46:01 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100313074601-zjsa893a87bozyh7
Tags: 3.2.2.dfsg-1ubuntu1
* Fix build for Ubuntu lucid (LP: #260406)
  - add binary package dep for libusrp0, libusrp2-0: adduser
  - debian/rules clean: remove pre-built Qt moc files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
 
# Copyright 2001,2003,2004,2006 Free Software Foundation, Inc.
 
2
# Copyright 2001,2003,2004,2006,2007,2008,2009 Free Software Foundation, Inc.
3
3
4
4
# This file is part of GNU Radio
5
5
21
21
 
22
22
include $(top_srcdir)/Makefile.common
23
23
 
24
 
# This usually ends up at:
25
 
#   ${prefix}/lib/python${python_version}/site-packages/usrp_prims
26
 
 
27
 
ourpythondir = $(pythondir)
28
 
ourlibdir    = $(pyexecdir)
29
 
 
30
 
INCLUDES = $(USRP_INCLUDES)             \
31
 
           $(PYTHON_CPPFLAGS)           \
32
 
           -I$(srcdir)
33
 
 
34
 
LOCAL_IFILES =                          \
35
 
        prims.i
36
 
 
37
 
 
38
 
ALL_IFILES =                            \
39
 
        $(LOCAL_IFILES)                 
40
 
 
41
 
 
42
 
EXTRA_DIST =                            \
43
 
        $(LOCAL_IFILES)
44
 
 
45
 
 
46
 
BUILT_SOURCES =                         \
47
 
        prims.cc                        \
48
 
        usrp_prims.py
49
 
 
50
 
 
51
 
ourpython_PYTHON =                      \
52
 
        __init__.py                     \
53
 
        usrp_fpga_regs.py               \
54
 
        usrp_prims.py                   
55
 
 
56
 
 
57
 
SWIGPYTHONARGS = $(SWIGPYTHONFLAGS) $(INCLUDES)
58
 
 
59
 
 
60
 
ourlib_LTLIBRARIES =                    \
61
 
        _usrp_prims.la
62
 
 
63
 
_usrp_prims_la_SOURCES =                \
64
 
        prims.cc                
65
 
 
66
 
 
67
 
noinst_HEADERS =
68
 
 
69
 
_usrp_prims_la_LIBADD  = $(top_builddir)/usrp/host/lib/libusrp.la -lstdc++ $(PYTHON_LDFLAGS)
70
 
_usrp_prims_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
71
 
 
72
 
 
73
 
prims.cc usrp_prims.py : prims.i ../../firmware/include/fpga_regs_common.h ../../firmware/include/fpga_regs_standard.h
74
 
        $(SWIG) $(SWIGPYTHONARGS) -module usrp_prims -o prims.cc prims.i
75
 
 
76
 
 
77
 
MOSTLYCLEANFILES = \
78
 
        prims.cc usrp_prims.py *~ *.pyc
79
 
 
80
 
# Don't distribute output of swig
81
 
dist-hook:
82
 
        @for file in $(BUILT_SOURCES); do echo $(RM) $(distdir)/$$file; done
83
 
        @for file in $(BUILT_SOURCES); do $(RM) $(distdir)/$$file; done
84
 
 
 
24
AM_CPPFLAGS =                   \
 
25
        $(USRP_INCLUDES)        \
 
26
        $(PYTHON_CPPFLAGS)      \
 
27
        -I$(srcdir)             \
 
28
        $(WITH_INCLUDES)
 
29
 
 
30
#################################
 
31
# SWIG interface and library
 
32
 
 
33
TOP_SWIG_IFILES =               \
 
34
        usrp_prims.i
 
35
 
 
36
# Install so that they end up available as:
 
37
#   import usrpm.usrp_prims
 
38
# This ends up at:
 
39
#   ${prefix}/lib/python${python_version}/site-packages/usrpm
 
40
usrp_prims_pythondir_category = \
 
41
        usrpm
 
42
 
 
43
# additional arguments to the SWIG command
 
44
usrp_prims_swig_args =          \
 
45
        $(USRP_INCLUDES)
 
46
 
 
47
# additional libraries for linking with the SWIG-generated library
 
48
usrp_prims_la_swig_libadd =     \
 
49
        $(USRP_LA)
 
50
 
 
51
# additional Python files to be installed along with the SWIG-generated one
 
52
usrp_prims_python =             \
 
53
        __init__.py             \
 
54
        usrp_fpga_regs.py
 
55
 
 
56
include $(top_srcdir)/Makefile.swig
 
57
 
 
58
# add some of the variables generated inside the Makefile.swig.gen
 
59
BUILT_SOURCES = $(swig_built_sources)
 
60
 
 
61
# Do not distribute the output of SWIG
 
62
no_dist_files = $(swig_built_sources)