2
# Copyright 2001,2003,2004,2006 Free Software Foundation, Inc.
2
# Copyright 2001,2003,2004,2006,2007,2008,2009 Free Software Foundation, Inc.
4
4
# This file is part of GNU Radio
22
22
include $(top_srcdir)/Makefile.common
24
# This usually ends up at:
25
# ${prefix}/lib/python${python_version}/site-packages/usrp_prims
27
ourpythondir = $(pythondir)
28
ourlibdir = $(pyexecdir)
30
INCLUDES = $(USRP_INCLUDES) \
57
SWIGPYTHONARGS = $(SWIGPYTHONFLAGS) $(INCLUDES)
60
ourlib_LTLIBRARIES = \
63
_usrp_prims_la_SOURCES = \
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
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
78
prims.cc usrp_prims.py *~ *.pyc
80
# Don't distribute output of swig
82
@for file in $(BUILT_SOURCES); do echo $(RM) $(distdir)/$$file; done
83
@for file in $(BUILT_SOURCES); do $(RM) $(distdir)/$$file; done
30
#################################
31
# SWIG interface and library
36
# Install so that they end up available as:
37
# import usrpm.usrp_prims
39
# ${prefix}/lib/python${python_version}/site-packages/usrpm
40
usrp_prims_pythondir_category = \
43
# additional arguments to the SWIG command
44
usrp_prims_swig_args = \
47
# additional libraries for linking with the SWIG-generated library
48
usrp_prims_la_swig_libadd = \
51
# additional Python files to be installed along with the SWIG-generated one
56
include $(top_srcdir)/Makefile.swig
58
# add some of the variables generated inside the Makefile.swig.gen
59
BUILT_SOURCES = $(swig_built_sources)
61
# Do not distribute the output of SWIG
62
no_dist_files = $(swig_built_sources)