2 # Copyright 2008,2009 Free Software Foundation, Inc.
4 # This file is part of GNU Radio
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)
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.
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.
22 include $(top_srcdir)/Makefile.common
24 # Install this stuff so that it ends up as the gnuradio.qtgui module
25 # This usually ends up at:
26 # ${prefix}/lib/python${python_version}/site-packages/gnuradio/qtgui
28 ourpythondir = $(grpythondir)/qtgui
29 ourlibdir = $(grpyexecdir)/qtgui
31 AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) \
32 $(QT_INCLUDES) -I. $(WITH_INCLUDES)
44 # These files are built by SWIG. The first is the C++ glue.
45 # The second is the python wrapper that loads the shared library
46 # and knows how to call our extensions.
48 # Only include these files in the build if qtgui passes configure checks
49 # This is mostly to help make distcheck pass
52 spectrumdisplayform_moc.cc \
53 FrequencyDisplayPlot_moc.cc \
54 TimeDomainDisplayPlot_moc.cc \
55 WaterfallDisplayPlot_moc.cc \
56 Waterfall3DDisplayPlot_moc.cc \
57 spectrumdisplayform_ui.h
60 EXTRA_DIST = spectrumdisplayform.ui
67 # This gets qtgui.py installed in the right place
71 # Build the library for Python module to link against
72 ourlib_LTLIBRARIES = _qtgui.la
74 # Build the normal library for C++ apps to link against
75 lib_LTLIBRARIES = libqtgui.la
77 # These are the source files that go into the shared library
78 libqtgui_la_SOURCES = \
79 spectrumdisplayform.cc \
80 FrequencyDisplayPlot.cc \
81 TimeDomainDisplayPlot.cc \
82 WaterfallDisplayPlot.cc \
83 Waterfall3DDisplayPlot.cc \
84 waterfallGlobalData.cc \
86 spectrumUpdateEvents.cc \
93 $(libqtgui_la_SOURCES) \
96 # These headers get installed in ${prefix}/include/gnuradio
98 spectrumdisplayform.h \
99 FrequencyDisplayPlot.h \
100 TimeDomainDisplayPlot.h \
101 WaterfallDisplayPlot.h \
102 Waterfall3DDisplayPlot.h \
104 waterfallGlobalData.h \
105 highResTimeFunctions.h \
107 spectrumUpdateEvents.h \
114 $(QT_MOC_EXEC) -DQT_SHARED -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB $< -o $@
117 $(QT_UIC_EXEC) $< -o $@
127 _qtgui_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
128 libqtgui_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
130 # link the library against the c++ standard library
133 $(GNURADIO_CORE_LA) \
138 libqtgui_la_LIBADD = \
139 $(GNURADIO_CORE_LA) \
143 qtgui.cc qtgui.py: $(ALL_IFILES)
144 $(SWIG) $(STD_SWIG_PYTHON_ARGS) -module qtgui \
145 -o qtgui.cc $(LOCAL_IFILES)
147 # These swig headers get installed in ${prefix}/include/gnuradio/swig
148 swiginclude_HEADERS = \
152 MOSTLYCLEANFILES = $(BUILT_SOURCES) *.pyc
154 # Don't distribute output of swig
156 @for file in $(BUILT_SOURCES); do echo $(RM) $(distdir)/$$file; done
157 @for file in $(BUILT_SOURCES); do $(RM) $(distdir)/$$file; done