Houston, we have a trunk.
[debian/gnuradio] / pmt / src / lib / Makefile.am
1 #
2 # Copyright 2006 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 2, 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., 59 Temple Place - Suite 330,
19 # Boston, MA 02111-1307, USA.
20
21
22 include $(top_srcdir)/Makefile.common
23
24 TESTS = test_pmt
25
26 lib_LTLIBRARIES = libpmt.la libpmt-qa.la
27
28 # These are the source files that go into the pmt shared library
29 libpmt_la_SOURCES =                     \
30         pmt.cc
31
32 # magic flags
33 libpmt_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
34
35 # link the library against the c++ standard library
36 libpmt_la_LIBADD =                      \
37         -lstdc++                        
38
39 include_HEADERS =                       \
40         pmt.h
41
42 noinst_HEADERS =                        \
43         pmt_int.h                       \
44         qa_pmt.h                        \
45         qa_pmt_prims.h                  
46
47
48 # Build the qa code into its own library
49
50 libpmt_qa_la_SOURCES =                  \
51         qa_pmt.cc                       \
52         qa_pmt_prims.cc                 
53
54 # magic flags
55 libpmt_qa_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
56
57 # link the library against the c++ standard library
58 libpmt_qa_la_LIBADD =                   \
59         $(CPPUNIT_LIBS)                 \
60         -lstdc++                        
61
62
63 noinst_PROGRAMS =                       \
64         test_pmt
65
66
67 LIBPMT   = libpmt.la
68 LIBPMTQA = libpmt-qa.la $(LIBPMT)
69
70 test_pmt_SOURCES = test_pmt.cc
71 test_pmt_LDADD   = $(LIBPMTQA)