Merged r10071:10164 from features/cppdb-test into trunk. Implements the fully native...
[debian/gnuradio] / usrp / host / lib / legacy / Makefile.am
1 #
2 #  USRP - Universal Software Radio Peripheral
3
4 #  Copyright (C) 2003,2004,2006,2007,2008 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
28
29 libusrp_la_common_LIBADD =              \
30         $(USB_LIBS)                     \
31         ../../misc/libmisc.la
32
33 # darwin fusb requires omnithreads
34 if FUSB_TECH_darwin
35 AM_CPPFLAGS = $(common_INCLUDES) $(OMNITHREAD_INCLUDES) $(BOOST_CPPFLAGS) $(WITH_INCLUDES)
36 libusrp_la_LIBADD = $(libusrp_la_common_LIBADD) $(OMNITHREAD_LA)
37 libusrp_la_LDFLAGS = $(libusrp_la_common_LDFLAGS) -framework CoreFoundation
38 else
39 AM_CPPFLAGS = $(common_INCLUDES) $(BOOST_CPPFLAGS) $(WITH_INCLUDES)
40 libusrp_la_LIBADD = $(libusrp_la_common_LIBADD)
41 libusrp_la_LDFLAGS = $(libusrp_la_common_LDFLAGS)
42 endif
43
44 EXTRA_DIST =                            \
45         std_paths.h.in                  \
46         usrp_dbid.dat                   
47
48 BUILT_SOURCES =                         \
49         usrp_dbid.h                     \
50         usrp_dbid.cc                    \
51         usrp_dbid.py                    
52
53
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"
59
60
61 generic_CODE =                          \
62         fusb_generic.cc                 \
63         fusb_sysconfig_generic.cc
64
65 darwin_CODE =                           \
66         fusb_darwin.cc                  \
67         fusb_sysconfig_darwin.cc        \
68         README_OSX                      \
69         circular_buffer.h               \
70         circular_linked_list.h          \
71         darwin_libusb.h                 \
72         mld_threads.h                   
73
74 win32_CODE =                            \
75         fusb_win32.cc                   \
76         fusb_sysconfig_win32.cc         
77
78 linux_CODE =                            \
79         fusb_linux.cc                   \
80         fusb_sysconfig_linux.cc         
81
82 ra_wb_CODE =                            \
83         fusb_ra_wb.cc                   \
84         fusb_sysconfig_ra_wb.cc
85
86
87 #
88 # include each <foo>_CODE entry here...
89 #
90 EXTRA_libusrp_la_SOURCES =              \
91         $(generic_CODE)                 \
92         $(darwin_CODE)                  \
93         $(win32_CODE)                   \
94         $(linux_CODE)                   \
95         $(ra_wb_CODE)
96
97
98 # work around automake deficiency
99 libusrp_la_common_SOURCES =             \
100         fusb.cc                         \
101         md5.c                           \
102         usrp_basic.cc                   \
103         usrp_config.cc                  \
104         usrp_dbid.cc                    \
105         usrp_local_sighandler.cc        \
106         usrp_prims.cc                   \
107         usrp_standard.cc                \
108         db_boards.cc                    \
109         db_base.cc                      \
110         db_basic.cc                     \
111         db_tv_rx.cc                     \
112         db_flexrf.cc                    \
113         db_flexrf_mimo.cc               \
114         db_dbs_rx.cc                    \
115         db_xcvr2450.cc                  \
116         db_dtt754.cc                    \
117         db_dtt768.cc                    \
118         db_util.cc
119
120 #       db_wbx.cc
121
122
123 if FUSB_TECH_generic
124 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(generic_CODE)
125 endif
126
127 if FUSB_TECH_darwin
128 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(darwin_CODE)
129 endif
130
131 if FUSB_TECH_win32
132 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(win32_CODE)
133 endif
134
135 if FUSB_TECH_linux
136 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(linux_CODE)
137 endif
138
139 if FUSB_TECH_ra_wb
140 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(ra_wb_CODE)
141 endif
142
143 include_HEADERS =                       \
144         db_base.h                       \
145         usrp_basic.h                    \
146         usrp_bytesex.h                  \
147         usrp_config.h                   \
148         usrp_dbid.h                     \
149         usrp_prims.h                    \
150         usrp_slots.h                    \
151         usrp_standard.h                 \
152         usrp_subdev_spec.h              \
153         usrp_tune_result.h              
154
155 noinst_HEADERS =                        \
156         ad9862.h                        \
157         db_base_impl.h                  \
158         db_basic.h                      \
159         db_boards.h                     \
160         db_dbs_rx.h                     \
161         db_dtt754.h                     \
162         db_dtt768.h                     \
163         db_flexrf.h                     \
164         db_flexrf_mimo.h                \
165         db_tv_rx.h                      \
166         db_util.h                       \
167         db_wbx.h                        \
168         db_xcvr2450.h                   \
169         fusb.h                          \
170         fusb_darwin.h                   \
171         fusb_generic.h                  \
172         fusb_linux.h                    \
173         fusb_ra_wb.h                    \
174         fusb_win32.h                    \
175         md5.h                           \
176         rate_to_regval.h                \
177         usrp_local_sighandler.h         
178
179 usrppython_PYTHON =                     \
180         usrp_dbid.py                    
181
182 noinst_PYTHON =                         \
183         gen_usrp_dbid.py                \
184         check_data.py                   \
185         dump_data.py
186
187 usrp_dbid.py usrp_dbid.h usrp_dbid.cc: gen_usrp_dbid.py usrp_dbid.dat
188         PYTHONPATH=$(top_srcdir)/usrp/src srcdir=$(srcdir) $(PYTHON) $(srcdir)/gen_usrp_dbid.py $(srcdir)/usrp_dbid.dat
189
190 swiginclude_HEADERS = db_base.i
191
192 MOSTLYCLEANFILES = \
193         $(BUILT_SOURCES) *~ *.pyc