2 # USRP - Universal Software Radio Peripheral
4 # Copyright (C) 2003,2004,2006,2007,2008,2009,2010 Free Software Foundation, Inc.
6 # This program 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 of the License, or
9 # (at your option) any later version.
11 # This program 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.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Boston, MA 02110-1301 USA
21 include $(top_srcdir)/Makefile.common
23 common_INCLUDES = $(USRP_INCLUDES) $(USB_INCLUDES)
25 lib_LTLIBRARIES = libusrp.la
27 libusrp_la_common_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0 $(BOOST_LDFLAGS)
29 libusrp_la_common_LIBADD = \
34 # darwin fusb requires gruel (for threading)
36 AM_CPPFLAGS = $(common_INCLUDES) $(GRUEL_INCLUDES) $(BOOST_CPPFLAGS) $(WITH_INCLUDES)
37 libusrp_la_LIBADD = $(libusrp_la_common_LIBADD) $(GRUEL_LA)
38 libusrp_la_LDFLAGS = $(libusrp_la_common_LDFLAGS) -framework CoreFoundation
40 AM_CPPFLAGS = $(common_INCLUDES) $(BOOST_CPPFLAGS) $(WITH_INCLUDES)
41 libusrp_la_LIBADD = $(libusrp_la_common_LIBADD)
42 libusrp_la_LDFLAGS = $(libusrp_la_common_LDFLAGS)
49 BUILT_SOURCES = $(abs_top_builddir)/usrp/host/include/usrp/usrp_dbid.h
51 BUILT_SOURCES += usrp_dbid.cc \
54 # ----------------------------------------------------------------
55 # FUSB_TECH is set at configure time by way of
56 # usrp/config/usrp_fusb_tech.m4.
57 # It indicates which fast usb strategy we should be building.
58 # We currently implement "generic", "darwin", "win32" and "linux"
63 fusb_sysconfig_generic.cc \
68 fusb_sysconfig_darwin.cc \
71 circular_linked_list.h \
78 fusb_sysconfig_win32.cc \
84 fusb_sysconfig_linux.cc \
89 fusb_sysconfig_ra_wb.cc \
94 fusb_sysconfig_libusb1.cc \
98 # include each <foo>_CODE entry here...
100 EXTRA_libusrp_la_SOURCES = \
108 # work around automake deficiency
109 libusrp_la_common_SOURCES = \
115 usrp_local_sighandler.cc \
116 usrp_prims_common.cc \
118 db_wbxng_adf4350.cc \
119 db_wbxng_adf4350_regs.cc \
136 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(generic_CODE)
140 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(darwin_CODE)
144 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(win32_CODE)
148 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(linux_CODE)
152 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(ra_wb_CODE)
156 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(libusb1_CODE)
166 db_wbxng_adf4350_regs.h \
180 usrppython_PYTHON = \
189 # common way for generating sources from templates when using
190 # BUILT_SOURCES, using parallel build protection.
191 gen_sources = $(BUILT_SOURCES)
192 gen_sources_deps = gen_usrp_dbid.py usrp_dbid.dat
193 par_gen_command = PYTHONPATH=$(top_srcdir)/usrp/src srcdir=$(srcdir) $(PYTHON) $(srcdir)/gen_usrp_dbid.py $(srcdir)/usrp_dbid.dat
194 include $(top_srcdir)/Makefile.par.gen