Imported Upstream version 3.2.2
[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 # Build the normal library for C++ apps to link against
43 lib_LTLIBRARIES = libgnuradio-qtgui.la
44
45 # These are the source files that go into the shared library
46 libgnuradio_qtgui_la_SOURCES =  \
47         FrequencyDisplayPlot.cc                 \
48         TimeDomainDisplayPlot.cc                \
49         WaterfallDisplayPlot.cc                 \
50         Waterfall3DDisplayPlot.cc               \
51         waterfallGlobalData.cc                  \
52         ConstellationDisplayPlot.cc             \
53         spectrumdisplayform.cc                  \
54         SpectrumGUIClass.cc                     \
55         spectrumUpdateEvents.cc                 \
56         plot_waterfall.cc                       \
57         $(QMAKE_SOURCES)                        \
58         qtgui_sink_c.cc                         \
59         qtgui_sink_f.cc
60
61 # These headers get installed in ${prefix}/include/gnuradio
62 grinclude_HEADERS =                     \
63         FrequencyDisplayPlot.h          \
64         TimeDomainDisplayPlot.h         \
65         WaterfallDisplayPlot.h          \
66         Waterfall3DDisplayPlot.h        \
67         waterfallGlobalData.h           \
68         ConstellationDisplayPlot.h      \
69         highResTimeFunctions.h          \
70         plot_waterfall.h                \
71         spectrumdisplayform.h           \
72         SpectrumGUIClass.h              \
73         spectrumUpdateEvents.h          \
74         qtgui.h                         \
75         qtgui_sink_c.h                  \
76         qtgui_sink_f.h
77
78 if BUILD_QT
79 %_moc.cc : %.h
80         $(QT_MOC_EXEC) -DQT_SHARED -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB $< -o $@
81
82 %_ui.h : %.ui
83         $(QT_UIC_EXEC) $< -o $@
84 else
85 %_moc.cc : %.h
86         touch $@
87
88 %_ui.h : %.ui
89         touch $@
90 endif
91
92 # magic flags
93 libgnuradio_qtgui_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
94
95 libgnuradio_qtgui_la_LIBADD =           \
96         $(GNURADIO_CORE_LA)     \
97         -lstdc++                \
98         $(QT_LIBS)
99
100 ##############################
101 # SWIG interface and library
102
103 TOP_SWIG_IFILES =               \
104         qtgui.i
105
106 # Install so that they end up available as:
107 #   import gnuradio.qtgui
108 # This ends up at:
109 #   ${prefix}/lib/python${python_version}/site-packages/gnuradio
110 qtgui_pythondir_category =      \
111         gnuradio/qtgui
112
113 # additional libraries for linking with the SWIG-generated library
114 qtgui_la_swig_libadd =          \
115         libgnuradio-qtgui.la
116
117 include $(top_srcdir)/Makefile.swig
118
119 # add some of the variables generated inside the Makefile.swig.gen
120 BUILT_SOURCES =                 \
121         $(QMAKE_SOURCES)        \
122         $(swig_built_sources)
123
124 # Do not distribute the output of SWIG
125 no_dist_files = $(swig_built_sources)