summaryrefslogtreecommitdiff
path: root/usrp/host/lib/Makefile.am
blob: c34827c4326f3b195bf494fe2ff633fe86c68c9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#
#  USRP - Universal Software Radio Peripheral
# 
#  Copyright (C) 2003,2004,2006 Free Software Foundation, Inc.
# 
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
# 
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
# 
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 51 Franklin Street, Boston, MA  02110-1301  USA
# 

include $(top_srcdir)/Makefile.common

INCLUDES = $(USRP_INCLUDES)

lib_LTLIBRARIES = libusrp.la


EXTRA_DIST = 				\
	std_paths.h.in			\
	usrp_dbid.dat			


BUILT_SOURCES = 			\
	usrp_dbid.h			\
	usrp_dbid.cc			\
	usrp_dbid.py			


# ----------------------------------------------------------------
# FUSB_TECH is set at configure time by way of
#   usrp/config/usrp_fusb_tech.m4.
#   It indicates which fast usb strategy we should be building.
#   We currently implement "generic", "darwin", "win32" and "linux"


generic_CODE = 				\
	fusb_generic.cc			\
	fusb_sysconfig_generic.cc

darwin_CODE =				\
	fusb_darwin.cc			\
	fusb_sysconfig_darwin.cc 	\
	README_OSX			\
	circular_buffer.h		\
	circular_linked_list.h		\
	darwin_libusb.h			\
	mld_threads.h			

win32_CODE =				\
	fusb_win32.cc			\
	fusb_sysconfig_win32.cc 	

linux_CODE =				\
	fusb_linux.cc			\
	fusb_sysconfig_linux.cc 	


#
# include each <foo>_CODE entry here...
#
EXTRA_libusrp_la_SOURCES =		\
	$(generic_CODE)			\
	$(darwin_CODE)			\
	$(win32_CODE)			\
	$(linux_CODE)			


# work around automake deficiency
libusrp_la_common_SOURCES = 		\
	fusb.cc				\
	md5.c				\
	usrp_basic.cc			\
	usrp_config.cc			\
	usrp_dbid.cc			\
	usrp_local_sighandler.cc	\
	usrp_prims.cc			\
	usrp_standard.cc


if FUSB_TECH_generic
libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(generic_CODE)
endif

if FUSB_TECH_darwin
libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(darwin_CODE)
endif

if FUSB_TECH_win32
libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(win32_CODE)
endif

if FUSB_TECH_linux
libusrp_la_SOURCES = $(libusrp_la_common_SOURCES) $(linux_CODE)
endif


libusrp_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
libusrp_la_LIBADD = $(USB_LIBS) ../misc/libmisc.la

include_HEADERS = 			\
	usrp_basic.h			\
	usrp_bytesex.h			\
	usrp_config.h			\
	usrp_dbid.h			\
	usrp_prims.h			\
	usrp_slots.h			\
	usrp_standard.h			

noinst_HEADERS =			\
	ad9862.h			\
	fusb.h				\
	fusb_darwin.h			\
	fusb_win32.h			\
	fusb_generic.h			\
	fusb_linux.h			\
	md5.h				\
	rate_to_regval.h		\
	usrp_local_sighandler.h		

python_PYTHON =				\
	usrp_dbid.py			

noinst_PYTHON =				\
	gen_usrp_dbid.py

usrp_dbid.py usrp_dbid.h usrp_dbid.cc: gen_usrp_dbid.py usrp_dbid.dat
	PYTHONPATH=$(top_srcdir)/usrp/src srcdir=$(srcdir) $(srcdir)/gen_usrp_dbid.py $(srcdir)/usrp_dbid.dat

MOSTLYCLEANFILES = \
	$(BUILT_SOURCES) *~ *.pyc