Make C++ shared libraries versioned
[debian/gnuradio] / gruel / src / lib / Makefile.am
1 #
2 # Copyright 2008,2009,2010 Free Software Foundation, Inc.
3
4 # This file is part of GNU Radio
5
6 # GNU Radio 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, or (at your option)
9 # any later version.
10
11 # GNU Radio 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 GNU Radio; see the file COPYING.  If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street,
19 # Boston, MA 02110-1301, USA.
20
21
22 include $(top_srcdir)/Makefile.common
23
24 SUBDIRS = pmt msg
25
26 AM_CPPFLAGS = $(DEFINES) $(BOOST_CPPFLAGS) $(CPPUNIT_INCLUDES) $(GRUEL_INCLUDES) $(WITH_INCLUDES)
27
28
29 TESTS = test_gruel
30
31 noinst_PROGRAMS = test_gruel
32
33
34 lib_LTLIBRARIES = libgruel.la
35
36 # magic flags
37 libgruel_la_LDFLAGS = $(NO_UNDEFINED) $(BOOST_LDFLAGS) $(LTVERSIONFLAGS)
38
39 # ----------------------------------------------------------------
40
41 PMT_LIB = pmt/libpmt.la
42 MSG_LIB = msg/libmsg.la
43
44 # These are the source files that go into the gruel shared library
45 libgruel_la_SOURCES =                   \
46         realtime.cc                     \
47         sys_pri.cc                      \
48         thread.cc                       \
49         thread_body_wrapper.cc          \
50         thread_group.cc
51
52 libgruel_la_LIBADD =                    \
53         $(BOOST_THREAD_LIB)             \
54         $(PMT_LIB)                      \
55         $(MSG_LIB)                      \
56         -lstdc++
57
58
59 # ----------------------------------------------------------------
60
61 test_gruel_SOURCES = test_gruel.cc
62 test_gruel_LDADD   = pmt/libpmt-qa.la libgruel.la
63