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

« back to all changes in this revision

Viewing changes to usrp/host/lib/legacy/Makefile.am

  • Committer: Package Import Robot
  • Author(s): A. Maitland Bottoms
  • Date: 2012-02-26 21:26:16 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120226212616-vsfkbi1158xshdql
Tags: 3.5.1-1
* new upstream version, re-packaged from scratch with modern tools
    closes: #642716, #645332, #394849, #616832, #590048, #642580,
    #647018, #557050, #559640, #631863
* CMake build

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
#  USRP - Universal Software Radio Peripheral
3
 
4
 
#  Copyright (C) 2003,2004,2006,2007,2008,2009 Free Software Foundation, Inc.
5
 
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.
10
 
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.
15
 
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
19
 
20
 
 
21
 
include $(top_srcdir)/Makefile.common
22
 
 
23
 
common_INCLUDES = $(USRP_INCLUDES)
24
 
 
25
 
lib_LTLIBRARIES = libusrp.la
26
 
 
27
 
libusrp_la_common_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0 $(BOOST_LDFLAGS)
28
 
 
29
 
libusrp_la_common_LIBADD =              \
30
 
        $(USB_LIBS)                     \
31
 
        $(BOOST_THREAD_LIB)             \
32
 
        ../../misc/libmisc.la
33
 
 
34
 
# darwin fusb requires omnithreads
35
 
if FUSB_TECH_darwin
36
 
AM_CPPFLAGS = $(common_INCLUDES) $(OMNITHREAD_INCLUDES) $(BOOST_CPPFLAGS) $(WITH_INCLUDES)
37
 
libusrp_la_LIBADD = $(libusrp_la_common_LIBADD) $(OMNITHREAD_LA)
38
 
libusrp_la_LDFLAGS = $(libusrp_la_common_LDFLAGS) -framework CoreFoundation
39
 
else
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)
43
 
endif
44
 
 
45
 
EXTRA_DIST =                            \
46
 
        std_paths.h.in                  \
47
 
        usrp_dbid.dat                   
48
 
 
49
 
BUILT_SOURCES =                         \
50
 
        usrp_dbid.h                     \
51
 
        usrp_dbid.cc                    \
52
 
        usrp_dbid.py                    
53
 
 
54
 
 
55
 
# ----------------------------------------------------------------
56
 
# FUSB_TECH is set at configure time by way of
57
 
#   usrp/config/usrp_fusb_tech.m4.
58
 
#   It indicates which fast usb strategy we should be building.
59
 
#   We currently implement "generic", "darwin", "win32" and "linux"
60
 
 
61
 
 
62
 
generic_CODE =                          \
63
 
        fusb_generic.cc                 \
64
 
        fusb_sysconfig_generic.cc
65
 
 
66
 
darwin_CODE =                           \
67
 
        fusb_darwin.cc                  \
68
 
        fusb_sysconfig_darwin.cc        \
69
 
        README_OSX                      \
70
 
        circular_buffer.h               \
71
 
        circular_linked_list.h          \
72
 
        darwin_libusb.h                 \
73
 
        mld_threads.h                   
74
 
 
75
 
win32_CODE =                            \
76
 
        fusb_win32.cc                   \
77
 
        fusb_sysconfig_win32.cc         
78
 
 
79
 
linux_CODE =                            \
80
 
        fusb_linux.cc                   \
81
 
        fusb_sysconfig_linux.cc         
82
 
 
83
 
ra_wb_CODE =                            \
84
 
        fusb_ra_wb.cc                   \
85
 
        fusb_sysconfig_ra_wb.cc
86
 
 
87
 
 
88
 
#
89
 
# include each <foo>_CODE entry here...
90
 
#
91
 
EXTRA_libusrp_la_SOURCES =              \
92
 
        $(generic_CODE)                 \
93
 
        $(darwin_CODE)                  \
94
 
        $(win32_CODE)                   \
95
 
        $(linux_CODE)                   \
96
 
        $(ra_wb_CODE)
97
 
 
98
 
 
99
 
# work around automake deficiency
100
 
libusrp_la_common_SOURCES =             \
101
 
        fusb.cc                         \
102
 
        md5.c                           \
103
 
        usrp_basic.cc                   \
104
 
        usrp_config.cc                  \
105
 
        usrp_dbid.cc                    \
106
 
        usrp_local_sighandler.cc        \
107
 
        usrp_prims.cc                   \
108
 
        usrp_standard.cc                \
109
 
        db_boards.cc                    \
110
 
        db_base.cc                      \
111
 
        db_basic.cc                     \
112
 
        db_tv_rx.cc                     \
113
 
        db_flexrf.cc                    \
114
 
        db_flexrf_mimo.cc               \
115
 
        db_dbs_rx.cc                    \
116
 
        db_xcvr2450.cc                  \
117
 
        db_dtt754.cc                    \
118
 
        db_dtt768.cc                    \
119
 
        db_util.cc
120
 
 
121
 
#       db_wbx.cc
122
 
 
123
 
 
124
 
if FUSB_TECH_generic
125
 
libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(generic_CODE)
126
 
endif
127
 
 
128
 
if FUSB_TECH_darwin
129
 
libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(darwin_CODE)
130
 
endif
131
 
 
132
 
if FUSB_TECH_win32
133
 
libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(win32_CODE)
134
 
endif
135
 
 
136
 
if FUSB_TECH_linux
137
 
libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(linux_CODE)
138
 
endif
139
 
 
140
 
if FUSB_TECH_ra_wb
141
 
libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(ra_wb_CODE)
142
 
endif
143
 
 
144
 
include_HEADERS =                       \
145
 
        db_base.h                       \
146
 
        db_basic.h                      \
147
 
        db_dbs_rx.h                     \
148
 
        db_dtt754.h                     \
149
 
        db_dtt768.h                     \
150
 
        db_flexrf.h                     \
151
 
        db_flexrf_mimo.h                \
152
 
        db_tv_rx.h                      \
153
 
        db_util.h                       \
154
 
        db_xcvr2450.h                   \
155
 
        usrp_basic.h                    \
156
 
        usrp_bytesex.h                  \
157
 
        usrp_config.h                   \
158
 
        usrp_dbid.h                     \
159
 
        usrp_prims.h                    \
160
 
        usrp_slots.h                    \
161
 
        usrp_standard.h                 \
162
 
        usrp_subdev_spec.h              \
163
 
        usrp_tune_result.h              
164
 
 
165
 
noinst_HEADERS =                        \
166
 
        ad9862.h                        \
167
 
        db_base_impl.h                  \
168
 
        db_boards.h                     \
169
 
        db_wbx.h                        \
170
 
        fusb.h                          \
171
 
        fusb_darwin.h                   \
172
 
        fusb_generic.h                  \
173
 
        fusb_linux.h                    \
174
 
        fusb_ra_wb.h                    \
175
 
        fusb_win32.h                    \
176
 
        md5.h                           \
177
 
        rate_to_regval.h                \
178
 
        usrp_local_sighandler.h         
179
 
 
180
 
usrppython_PYTHON =                     \
181
 
        usrp_dbid.py                    
182
 
 
183
 
noinst_PYTHON =                         \
184
 
        gen_usrp_dbid.py                \
185
 
        check_data.py                   \
186
 
        dump_data.py
187
 
 
188
 
swiginclude_HEADERS = db_base.i
189
 
 
190
 
# common way for generating sources from templates when using
191
 
# BUILT_SOURCES, using parallel build protection.
192
 
gen_sources = $(BUILT_SOURCES)
193
 
gen_sources_deps = gen_usrp_dbid.py usrp_dbid.dat
194
 
par_gen_command = PYTHONPATH=$(top_srcdir)/usrp/src srcdir=$(srcdir) $(PYTHON) $(srcdir)/gen_usrp_dbid.py $(srcdir)/usrp_dbid.dat
195
 
include $(top_srcdir)/Makefile.par.gen