Statistics
| Branch: | Tag: | Revision:

root / usrp / host / swig / Makefile.am @ 776da31e

History | View | Annotate | Download (2 kB)

1
#
2
# Copyright 2001,2003,2004,2006,2007,2008 Free Software Foundation, Inc.
3
# 
4
# This file is part of GNU Radio
5
# 
6
# GNU Radio is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 3, or (at your option)
9
# any later version.
10
# 
11
# GNU Radio is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
# GNU General Public License for more details.
15
# 
16
# You should have received a copy of the GNU General Public License
17
# along with GNU Radio; see the file COPYING.  If not, write to
18
# the Free Software Foundation, Inc., 51 Franklin Street,
19
# Boston, MA 02110-1301, USA.
20
# 
21
22
include $(top_srcdir)/Makefile.common
23
24
ourpythondir = $(usrppythondir)
25
ourlibdir    = $(usrppyexecdir)
26
27
28
AM_CPPFLAGS = $(USRP_INCLUDES) 		\
29
	   $(PYTHON_CPPFLAGS) 		\
30
	   -I$(srcdir)			\
31
	   $(WITH_INCLUDES)
32
33
LOCAL_IFILES =				\
34
	prims.i
35
36
37
ALL_IFILES =				\
38
	$(LOCAL_IFILES)			
39
40
41
EXTRA_DIST = 				\
42
	$(LOCAL_IFILES)
43
44
45
BUILT_SOURCES =				\
46
	prims.cc			\
47
	usrp_prims.py
48
49
50
ourpython_PYTHON = 			\
51
	__init__.py			\
52
	usrp_fpga_regs.py		\
53
	usrp_prims.py			
54
55
56
SWIGPYTHONARGS = $(SWIGPYTHONFLAGS) $(AM_CPPFLAGS) $(WITH_SWIG_INCLUDES) \
57
	$(WITH_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  = $(USRP_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