Updated FSF address in all files. Fixes ticket:51
[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., 51 Franklin Street,
19 # Boston, MA 02110-1301, USA.
20
21
22 include $(top_srcdir)/Makefile.common
23
24 INCLUDES = $(BOOST_CFLAGS) $(CPPUNIT_INCLUDES)
25
26 TESTS = test_pmt
27
28 lib_LTLIBRARIES = libpmt.la libpmt-qa.la
29
30 # ----------------------------------------------------------------
31 # these scripts generate code
32
33 CODE_GENERATOR =                        \
34         generate_unv.py                 \
35         unv_template.h.t                \
36         unv_template.cc.t               \
37         unv_qa_template.cc.t            
38
39 GENERATED_H =                           \
40         pmt_unv_int.h                   \
41         qa_pmt_unv.h                    
42
43 GENERATED_CC =                          \
44         pmt_unv.cc                      \
45         qa_pmt_unv.cc                   
46
47
48 $(GENERATED_H) $(GENERATED_I) $(GENERATED_CC): $(CODE_GENERATOR)
49         PYTHONPATH=$(top_srcdir)/pmt/src/lib srcdir=$(srcdir) $(srcdir)/generate_unv.py
50
51 BUILT_SOURCES = $(GENERATED_H) $(GENERATED_CC)
52
53 # ----------------------------------------------------------------
54
55 EXTRA_DIST =                            \
56         $(CODE_GENERATOR)
57
58
59 # These are the source files that go into the pmt shared library
60 libpmt_la_SOURCES =                     \
61         pmt.cc                          \
62         pmt_unv.cc                      
63
64 # magic flags
65 libpmt_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
66
67 # link the library against the c++ standard library
68 libpmt_la_LIBADD =                      \
69         -lstdc++                        
70
71 include_HEADERS =                       \
72         pmt.h
73
74 noinst_HEADERS =                        \
75         $(GENERATED_H)                  \
76         pmt_int.h                       \
77         qa_pmt.h                        \
78         qa_pmt_prims.h                  
79
80
81 # Build the qa code into its own library
82
83 libpmt_qa_la_SOURCES =                  \
84         qa_pmt.cc                       \
85         qa_pmt_prims.cc                 \
86         qa_pmt_unv.cc                   
87
88 # magic flags
89 libpmt_qa_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
90
91 # link the library against the c++ standard library
92 libpmt_qa_la_LIBADD =                   \
93         libpmt.la                       \
94         $(CPPUNIT_LIBS)                 \
95         -lstdc++                        
96
97
98 noinst_PROGRAMS =                       \
99         test_pmt
100
101
102 LIBPMT   = libpmt.la
103 LIBPMTQA = libpmt-qa.la $(LIBPMT)
104
105 test_pmt_SOURCES = test_pmt.cc
106 test_pmt_LDADD   = $(LIBPMTQA)
107
108
109 CLEANFILES = $(BUILT_SOURCES) *.pyc