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