Make C++ shared libraries versioned
[debian/gnuradio] / usrp2 / host / lib / Makefile.am
1 #
2 # Copyright 2007,2008,2010 Free Software Foundation, Inc.
3 #
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 #
17
18 include $(top_srcdir)/Makefile.common
19
20 AM_CPPFLAGS = \
21     $(USRP2_INCLUDES) \
22     $(BOOST_CPPFLAGS) \
23     $(STD_DEFINES_AND_INCLUDES) \
24     $(CPPUNIT_INCLUDES) \
25     $(GRUEL_INCLUDES) 
26
27 bin_PROGRAMS = usrp2_socket_opener
28 usrp2_socket_opener_SOURCES = usrp2_socket_opener.cc
29
30 lib_LTLIBRARIES = \
31         libusrp2.la
32
33 libusrp2_la_LDFLAGS = $(LTVERSIONFLAGS)
34
35 libusrp2_la_SOURCES = \
36         control.cc \
37         copiers.cc \
38         copy_handler.cc \
39         data_handler.cc \
40         eth_buffer.cc \
41         ethernet.cc \
42         find.cc \
43         open_usrp2_socket.cc \
44         pktfilter.cc \
45         ring.cc \
46         rx_nop_handler.cc \
47         rx_sample_handler.cc \
48         strtod_si.c \
49         usrp2.cc \
50         usrp2_impl.cc
51
52 libusrp2_la_LIBADD = \
53         $(GRUEL_LA) \
54         $(BOOST_LDFLAGS) $(BOOST_THREAD_LIB)
55
56 # Private headers not needed for above the API development
57 noinst_HEADERS = \
58         control.h \
59         eth_buffer.h \
60         eth_common.h \
61         ethernet.h \
62         open_usrp2_socket.h \
63         pktfilter.h \
64         ring.h \
65         usrp2_bytesex.h \
66         usrp2_impl.h