summaryrefslogtreecommitdiff
path: root/usrp/host/lib/inband/Makefile.am
blob: 017c5c48980babe0a4f9734007fc40719eaa4f26 (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
#
# Copyright 2007 Free Software Foundation, Inc.
# 
# This file is part of GNU Radio
# 
# GNU Radio 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 3, or (at your option)
# any later version.
# 
# GNU Radio 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, Fifth Floor, Boston, MA 02110-1301 USA.
#

include $(top_srcdir)/Makefile.common

INCLUDES = 	\
	$(DEFINES) $(OMNITHREAD_INCLUDES) $(PMT_INCLUDES) $(MBLOCK_INCLUDES) \
	$(USRP_INCLUDES) $(BOOST_CFLAGS) $(CPPUNIT_INCLUDES)

TESTS = test_inband

EXTRA_DIST =				\
	usrp_server.mbh			

lib_LTLIBRARIES = 			\
	libusrp_inband.la		\
	libusrp_inband-qa.la			


# ------------------------------------------------------------------------
# Build the inband library

BUILT_SOURCES =				\
	usrp_server_mbh.cc

usrp_server_mbh.cc : usrp_server.mbh
	$(COMPILE_MBH) $(srcdir)/usrp_server.mbh usrp_server_mbh.cc

libusrp_inband_la_SOURCES =		\
	$(BUILT_SOURCES)		\
	usrp_server.cc

libusrp_inband_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0

libusrp_inband_la_LIBADD =		\
	$(MBLOCK_LA)			\
	-lstdc++


include_HEADERS =			\
	usrp_server.h			

noinst_HEADERS =      			\
	qa_inband.h			\
	qa_inband_packet_prims.h	\
	qa_inband_usrp_server.h		\
	usrp_inband_usb_packet.h	


# ------------------------------------------------------------------------
# Build the qa code in its own library

libusrp_inband_qa_la_SOURCES =   	\
	qa_inband.cc			\
	qa_inband_packet_prims.cc	\
	qa_inband_usrp_server.cc	

# magic flags
libusrp_inband_qa_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version

# link against c++ standard library
libusrp_inband_qa_la_LIBADD =    	\
	libusrp_inband.la		\
	$(CPPUNIT_LIBS)			\
	-lstdc++

# ------------------------------------------------------------------------

noinst_PROGRAMS =			\
	test_inband

test_inband_SOURCES = test_inband.cc
test_inband_LDADD   = libusrp_inband-qa.la


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