howto: make versioned libraries
[debian/gnuradio] / gr-howto-write-a-block / lib / Makefile.am
1 #
2 # Copyright 2004,2005,2006,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 # list of programs run by "make check" and "make distcheck"
25 TESTS = test_all
26
27 # ----------------------------------------------------------------
28 # howto C++ library: libgnuradio-howto.so
29 # ----------------------------------------------------------------
30
31 # C/C++ headers get installed in ${prefix}/include/$(modname)
32 modinclude_HEADERS = \
33         howto_square_ff.h \
34         howto_square2_ff.h
35
36 lib_LTLIBRARIES = libgnuradio-howto.la
37
38 libgnuradio_howto_la_SOURCES = \
39         howto_square_ff.cc \
40         howto_square2_ff.cc
41
42 libgnuradio_howto_la_LIBADD = \
43         $(GNURADIO_CORE_LA)
44
45 libgnuradio_howto_la_LDFLAGS = $(NO_UNDEFINED) $(LTVERSIONFLAGS)
46
47 # ----------------------------------------------------------------
48 # howto C++ QA library: libgnuradio-howto-qa.so (not installed)
49 # ----------------------------------------------------------------
50
51 noinst_LTLIBRARIES = libgnuradio-howto-qa.la
52
53 libgnuradio_howto_qa_la_SOURCES = \
54         qa_howto.cc \
55         qa_howto_square_ff.cc \
56         qa_howto_square2_ff.cc
57
58 libgnuradio_howto_qa_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
59
60 libgnuradio_howto_qa_la_LIBADD = \
61         libgnuradio-howto.la \
62         $(CPPUNIT_LIBS)
63
64 # ----------------------------------------------------------------
65 # headers that don't get installed
66 # ----------------------------------------------------------------
67 noinst_HEADERS = \
68         qa_howto.h \
69         qa_howto_square_ff.h \
70         qa_howto_square2_ff.h
71
72 # ----------------------------------------------------------------
73 # test program
74 # ----------------------------------------------------------------
75 noinst_PROGRAMS = \
76         test_all
77
78 test_all_SOURCES = test_all.cc
79 test_all_LDADD   = libgnuradio-howto-qa.la