Implements ticket:401 and ticket:402.
[debian/gnuradio] / gnuradio-core / src / lib / Makefile.am
1 #
2 # Copyright 2001,2004,2009 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 ## Process this file with automake to produce Makefile.in
25
26 # We've got to build . before swig
27 SUBDIRS = missing runtime filter viterbi general gengen g72x reed-solomon io hier .
28 if PYTHON
29 SUBDIRS += swig
30 endif
31
32 AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(CPPUNIT_INCLUDES) $(WITH_INCLUDES)
33
34 # generate libgnuradio-core.la from the convenience libraries in subdirs
35
36 lib_LTLIBRARIES = libgnuradio-core.la libgnuradio-core-qa.la
37
38 libgnuradio_core_la_SOURCES = bug_work_around_6.cc
39 libgnuradio_core_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
40
41 libgnuradio_core_qa_la_SOURCES = bug_work_around_6.cc
42 libgnuradio_core_qa_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0 \
43                                  $(LIBGNURADIO_CORE_EXTRA_LDFLAGS)
44
45
46 libgnuradio_core_la_LIBADD  =           \
47         filter/libfilter.la             \
48         g72x/libccitt.la                \
49         viterbi/libviterbi.la           \
50         general/libgeneral.la           \
51         gengen/libgengen.la             \
52         io/libio.la                     \
53         missing/libmissing.la           \
54         reed-solomon/librs.la           \
55         runtime/libruntime.la           \
56         hier/libhier.la                 \
57         $(OMNITHREAD_LA)                \
58         $(GRUEL_LA)                     \
59         $(FFTW3F_LIBS)                  \
60         $(GSL_LIBS)                     \
61         $(CBLAS_LIBS)                   
62
63 libgnuradio_core_qa_la_LIBADD  =        \
64         filter/libfilter-qa.la          \
65         general/libgeneral-qa.la        \
66         runtime/libruntime-qa.la        \
67         libgnuradio-core.la             \
68         $(CPPUNIT_LIBS)                 
69
70 bin_PROGRAMS = gnuradio
71 gnuradio_SOURCES = gnuradio.cc
72 gnuradio_LDADD = libgnuradio-core.la $(BOOST_PROGRAM_OPTIONS_LIB)