Updated license from GPL version 2 or later to GPL version 3 or later.
[debian/gnuradio] / usrp / host / lib / legacy / Makefile.am
1 #
2 #  USRP - Universal Software Radio Peripheral
3
4 #  Copyright (C) 2003,2004,2006,2007 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 INCLUDES = $(USRP_INCLUDES)
24
25 lib_LTLIBRARIES = libusrp.la
26
27 libusrp_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
28
29 libusrp_la_LIBADD =                     \
30         $(USB_LIBS)                     \
31         ../../misc/libmisc.la           
32
33 EXTRA_DIST =                            \
34         std_paths.h.in                  \
35         usrp_dbid.dat                   
36
37
38 BUILT_SOURCES =                         \
39         usrp_dbid.h                     \
40         usrp_dbid.cc                    \
41         usrp_dbid.py                    
42
43
44 # ----------------------------------------------------------------
45 # FUSB_TECH is set at configure time by way of
46 #   usrp/config/usrp_fusb_tech.m4.
47 #   It indicates which fast usb strategy we should be building.
48 #   We currently implement "generic", "darwin", "win32" and "linux"
49
50
51 generic_CODE =                          \
52         fusb_generic.cc                 \
53         fusb_sysconfig_generic.cc
54
55 darwin_CODE =                           \
56         fusb_darwin.cc                  \
57         fusb_sysconfig_darwin.cc        \
58         README_OSX                      \
59         circular_buffer.h               \
60         circular_linked_list.h          \
61         darwin_libusb.h                 \
62         mld_threads.h                   
63
64 win32_CODE =                            \
65         fusb_win32.cc                   \
66         fusb_sysconfig_win32.cc         
67
68 linux_CODE =                            \
69         fusb_linux.cc                   \
70         fusb_sysconfig_linux.cc         
71
72 ra_wb_CODE =                            \
73         fusb_ra_wb.cc                   \
74         fusb_sysconfig_ra_wb.cc
75
76
77 #
78 # include each <foo>_CODE entry here...
79 #
80 EXTRA_libusrp_la_SOURCES =              \
81         $(generic_CODE)                 \
82         $(darwin_CODE)                  \
83         $(win32_CODE)                   \
84         $(linux_CODE)                   \
85         $(ra_wb_CODE)
86
87
88 # work around automake deficiency
89 libusrp_la_common_SOURCES =             \
90         fusb.cc                         \
91         md5.c                           \
92         usrp_basic.cc                   \
93         usrp_config.cc                  \
94         usrp_dbid.cc                    \
95         usrp_local_sighandler.cc        \
96         usrp_prims.cc                   \
97         usrp_standard.cc
98
99
100 if FUSB_TECH_generic
101 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(generic_CODE)
102 endif
103
104 if FUSB_TECH_darwin
105 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(darwin_CODE)
106 endif
107
108 if FUSB_TECH_win32
109 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(win32_CODE)
110 endif
111
112 if FUSB_TECH_linux
113 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(linux_CODE)
114 endif
115
116 if FUSB_TECH_ra_wb
117 libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(ra_wb_CODE)
118 endif
119
120 include_HEADERS =                       \
121         usrp_basic.h                    \
122         usrp_bytesex.h                  \
123         usrp_config.h                   \
124         usrp_dbid.h                     \
125         usrp_prims.h                    \
126         usrp_slots.h                    \
127         usrp_standard.h                 
128
129 noinst_HEADERS =                        \
130         ad9862.h                        \
131         fusb.h                          \
132         fusb_darwin.h                   \
133         fusb_win32.h                    \
134         fusb_generic.h                  \
135         fusb_linux.h                    \
136         fusb_ra_wb.h                    \
137         md5.h                           \
138         rate_to_regval.h                \
139         usrp_local_sighandler.h         
140
141 usrppython_PYTHON =                     \
142         usrp_dbid.py                    
143
144 noinst_PYTHON =                         \
145         gen_usrp_dbid.py                \
146         check_data.py                   \
147         dump_data.py
148
149 usrp_dbid.py usrp_dbid.h usrp_dbid.cc: gen_usrp_dbid.py usrp_dbid.dat
150         PYTHONPATH=$(top_srcdir)/usrp/src srcdir=$(srcdir) $(PYTHON) $(srcdir)/gen_usrp_dbid.py $(srcdir)/usrp_dbid.dat
151
152 MOSTLYCLEANFILES = \
153         $(BUILT_SOURCES) *~ *.pyc