Merged r4632:4645 on jcorgan/linking into trunk. Cleans up linking issues with libto...
[debian/gnuradio] / gr-qtgui / src / lib / Makefile.am
1 #
2 # Copyright 2004,2005 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 = $(STD_DEFINES_AND_INCLUDES)  \
25            $(QT_CFLAGS)                 \
26            $(QWT_CFLAGS) 
27
28 # This rule lets GNU create any moc_*.cc files from the equivalent *.h
29 moc_%.cc: %.h
30         moc $< -o $@
31
32 # Generate the .h and .cc files from the .ui file
33 %.h: %.ui
34         uic $< -o $@
35
36 %.cc: %.ui
37         uic -impl $*.h $< -o $@
38
39 include_HEADERS =
40         fftdisplay.h                    \
41         fftdisplaysink.h
42
43 noinst_PROGRAMS =                       \
44         qt_examples     
45
46 BUILT_SOURCES =                         \
47         moc_fftdisplay.cc
48
49 nodist_qt_examples_SOURCES =            \
50         $(BUILT_SOURCES)
51         
52 qt_examples_SOURCES =                   \
53         fftdisplay.cc                   \
54         qt_examples.cc
55
56 qt_examples_LDADD = $(QWT_LIBS)         \
57                     $(QT_LIBS)          \
58                     $(GNURADIO_CORE_LA)
59
60
61 qt_examples_LDFLAGS = $(QT_CFLAGS)      \
62                       $(QWT_CFLAGS)
63
64 MOSTLYCLEANFILES =                      \
65         *~ $(BUILT_SOURCES)