Merged r11123:11148 from jcorgan/np into trunk.
[debian/gnuradio] / gr-qtgui / src / lib / Makefile.am
1 #
2 # Copyright 2008,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 AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) \
25               $(QT_INCLUDES) -I. $(WITH_INCLUDES)
26
27 # Only include these files in the build if qtgui passes configure checks
28 # This is mostly to help make distcheck pass
29 if BUILD_QT
30 QMAKE_SOURCES =                                 \
31         spectrumdisplayform_moc.cc              \
32         FrequencyDisplayPlot_moc.cc             \
33         TimeDomainDisplayPlot_moc.cc            \
34         WaterfallDisplayPlot_moc.cc             \
35         Waterfall3DDisplayPlot_moc.cc           \
36         ConstellationDisplayPlot_moc.cc         \
37         spectrumdisplayform_ui.h
38 endif
39
40 EXTRA_DIST = spectrumdisplayform.ui
41
42 BUILT_SOURCES = $(QMAKE_SOURCES)
43
44 # Build the normal library for C++ apps to link against
45 lib_LTLIBRARIES = libgnuradio-qtgui.la
46
47 # These are the source files that go into the shared library
48 libgnuradio_qtgui_la_SOURCES =  \
49         FrequencyDisplayPlot.cc                 \
50         TimeDomainDisplayPlot.cc                \
51         WaterfallDisplayPlot.cc                 \
52         Waterfall3DDisplayPlot.cc               \
53         waterfallGlobalData.cc                  \
54         ConstellationDisplayPlot.cc             \
55         spectrumdisplayform.cc                  \
56         SpectrumGUIClass.cc                     \
57         spectrumUpdateEvents.cc                 \
58         plot_waterfall.cc                       \
59         $(QMAKE_SOURCES)                        \
60         qtgui_sink_c.cc                         \
61         qtgui_sink_f.cc
62
63 # These headers get installed in ${prefix}/include/gnuradio
64 grinclude_HEADERS =                     \
65         FrequencyDisplayPlot.h          \
66         TimeDomainDisplayPlot.h         \
67         WaterfallDisplayPlot.h          \
68         Waterfall3DDisplayPlot.h        \
69         waterfallGlobalData.h           \
70         ConstellationDisplayPlot.h      \
71         highResTimeFunctions.h          \
72         plot_waterfall.h                \
73         spectrumdisplayform.h           \
74         SpectrumGUIClass.h              \
75         spectrumUpdateEvents.h          \
76         qtgui.h                         \
77         qtgui_sink_c.h                  \
78         qtgui_sink_f.h
79
80 if BUILD_QT
81 %_moc.cc : %.h
82         $(QT_MOC_EXEC) -DQT_SHARED -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB $< -o $@
83
84 %_ui.h : %.ui
85         $(QT_UIC_EXEC) $< -o $@
86 else
87 %_moc.cc : %.h
88         touch $@
89
90 %_ui.h : %.ui
91         touch $@
92 endif
93
94 # magic flags
95 libgnuradio_qtgui_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
96
97 libgnuradio_qtgui_la_LIBADD =           \
98         $(GNURADIO_CORE_LA)     \
99         -lstdc++                \
100         $(QT_LIBS)
101
102 if PYTHON
103 ##############################
104 # SWIG interface and library
105
106 TOP_SWIG_IFILES =               \
107         qtgui.i
108
109 # Install so that they end up available as:
110 #   import gnuradio.qtgui
111 # This ends up at:
112 #   ${prefix}/lib/python${python_version}/site-packages/gnuradio
113 qtgui_pythondir_category =      \
114         gnuradio/qtgui
115
116 # additional libraries for linking with the SWIG-generated library
117 qtgui_la_swig_libadd =          \
118         libgnuradio-qtgui.la
119
120 include $(top_srcdir)/Makefile.swig
121
122 # add some of the variables generated inside the Makefile.swig.gen
123 BUILT_SOURCES +=                \
124         $(swig_built_sources)
125
126 # Do not distribute the output of SWIG
127 no_dist_files = $(swig_built_sources)
128 endif