2 # Automake file for the Qt interface routines for Wireshark
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License
12 # as published by the Free Software Foundation; either version 2
13 # of the License, or (at your option) any later version.
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 include Makefile.common
25 include ../../Makefile.am.inc
27 if HAVE_WARNINGS_AS_ERRORS
28 AM_CLEAN_CFLAGS = -Werror
31 noinst_LIBRARIES = libqtui.a
35 wireshark-tap-register.c-tmp \
36 wireshark-tap-register-cache.pkl \
40 $(NODIST_GENERATED_FILES)
42 MAINTAINERCLEANFILES = \
44 $(NODIST_GENERATED_FILES) \
48 # Build "wireshark-tap-register.c", which contains a function
49 # "register_all_tap_listeners()"
50 # that calls the register routines for all wireshark tap listeners.
52 # We do this by grepping through sources.
54 # Formatting conventions: The name of the tap_listener_register_*
55 # routines must start in column zero, or must be preceded only by
56 # "void " starting in column zero, and must not be inside #if.
58 # The first argument is the directory in which the source files live.
59 # All subsequent arguments are the files to scan.
61 wireshark-tap-register.c: $(WIRESHARK_QT_TAP_SRC) $(top_srcdir)/tools/make-tapreg-dotc $(top_srcdir)/tools/make-tap-reg.py
62 @if test -n "$(PYTHON)"; then \
63 echo Making wireshark-tap-register.c with python ; \
64 $(PYTHON) $(top_srcdir)/tools/make-tap-reg.py $(srcdir) taps $(WIRESHARK_QT_TAP_SRC); \
66 echo Making wireshark-tap-register.c; \
67 $(top_srcdir)/tools/make-tapreg-dotc wireshark-tap-register.c $(srcdir) $(WIRESHARK_QT_TAP_SRC); \
70 RUNLEX=$(top_srcdir)/tools/runlex.sh
74 $(WIRESHARK_TAP_SRC) \
75 $(GENERATED_C_FILES) \
76 $(GENERATED_CPP_FILES) \
78 $(GENERATED_HEADER_FILES)
80 nodist_libqtui_a_SOURCES = \
81 $(NODIST_GENERATED_C_FILES) \
82 $(NODIST_GENERATED_CPP_FILES) \
83 $(NODIST_GENERATED_HEADER_FILES)
85 libqtui_a_CFLAGS = $(AM_CLEAN_CFLAGS)
87 libqtui_a_DEPENDENCIES =
90 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap $(LIBGCRYPT_CFLAGS) \
91 $(LIBGNUTLS_CFLAGS) $(PIE_CFLAGS)
93 AM_CXXFLAGS = $(AM_CLEAN_CFLAGS)
95 AM_V_MOC = $(am__v_MOC_@AM_V@)
96 am__v_MOC_ = $(am__v_MOC_@AM_DEFAULT_V@)
97 am__v_MOC_0 = @echo " MOC " $@;
99 AM_V_RCC = $(am__v_RCC_@AM_V@)
100 am__v_RCC_ = $(am__v_RCC_@AM_DEFAULT_V@)
101 am__v_RCC_0 = @echo " RCC " $@;
103 AM_V_UIC = $(am__v_UIC_@AM_V@)
104 am__v_UIC_ = $(am__v_UIC_@AM_DEFAULT_V@)
105 am__v_UIC_0 = @echo " UIC " $@;
108 # For building .moc.cpp files from .h files by running moc
109 # and building .rcc.cpp files from .qrc files by running rcc
111 SUFFIXES = .moc.cpp .qrc .rcc.cpp
114 $(AM_V_MOC)$(MOC) -I.. -I../.. -o $@ $<
118 $(AM_V_RCC)rcc -name `basename $< .qrc` -o $@ $<
121 $(AM_V_UIC)$(UIC) $< -o $@
123 # The Qt toolchain uses the naming convention moc_FOO.cpp. Should we do the same?
127 capture_preferences_frame.cpp capture_preferences_frame.h: ui_capture_preferences_frame.h
129 column_preferences_frame.cpp column_preferences_frame.h: ui_column_preferences_frame.h
131 decode_as_dialog.cpp decode_as_dialog.h: ui_decode_as_dialog.h
133 export_object_dialog.cpp export_object_dialog.h: ui_export_object_dialog.h
135 file_set_dialog.cpp file_set_dialog.h: ui_file_set_dialog.h
137 filter_expressions_preferences_frame.cpp filter_expressions_preferences_frame.h: ui_filter_expressions_preferences_frame.h
139 follow_stream_dialog.cpp: ui_follow_stream_dialog.h
141 font_color_preferences_frame.cpp font_color_preferences_frame.h: ui_font_color_preferences_frame.h
143 import_text_dialog.cpp import_text_dialog.h: ui_import_text_dialog.h
145 layout_preferences_frame.cpp layout_preferences_frame.h: ui_layout_preferences_frame.h
147 main_welcome.cpp main_welcome.h: ui_main_welcome.h
149 main_window.cpp main_window_slots.cpp main_window.h: ui_main_window.h
151 main_window_preferences_frame.cpp main_window_preferences_frame.h: ui_main_window_preferences_frame.h
153 module_preferences_scroll_area.cpp module_preferences_scroll_area.h: ui_module_preferences_scroll_area.h
155 packet_comment_dialog.cpp packet_comment_dialog.h: ui_packet_comment_dialog.h
157 packet_format_group_box.cpp packet_format_group_box.h: ui_packet_format_group_box.h
159 packet_range_group_box.cpp packet_range_group_box.h: ui_packet_range_group_box.h
161 preferences_dialog.cpp preferences_dialog.h: ui_preferences_dialog.h
163 print_dialog.cpp print_dialog.h: ui_print_dialog.h
165 profile_dialog.cpp profile_dialog.h: ui_profile_dialog.h
167 search_frame.cpp search_frame.h: ui_search_frame.h
169 sequence_dialog.cpp sequence_dialog.h: ui_sequence_dialog.h
171 splash_overlay.cpp splash_overlay.h: ui_splash_overlay.h
173 stats_tree_dialog.cpp stats_tree_dialog.h: ui_stats_tree_dialog.h
175 summary_dialog.cpp summary_dialog.h: ui_summary_dialog.h
177 tcp_stream_dialog.cpp: ui_tcp_stream_dialog.h
179 time_shift_dialog.cpp time_shift_dialog.h: ui_time_shift_dialog.h
181 uat_dialog.cpp uat_dialog.h: ui_uat_dialog.h
185 $(DOXYGEN) doxygen.cfg
188 checkapi: checkapi-base checkapi-todo
191 $(PERL) ../tools/checkAPIs.pl -g deprecated-gtk -build \
192 $(WIRESHARK_GTK_SRC) \
193 $(WIRESHARK_TAP_SRC) \
194 capture_if_details_dlg_win32.c
197 $(PERL) ../tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \
198 $(WIRESHARK_GTK_SRC) \
199 $(WIRESHARK_TAP_SRC) \
200 capture_if_details_dlg_win32.c
203 echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
205 for elevel in chat error none note warn ; do \
206 gdk-pixbuf-csource --raw --name=expert_$${elevel}_pb_data ../../image/expert_$${elevel}.png >> $@ ;\
210 echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
212 for icon in bluetooth usb wired wireless ; do \
213 gdk-pixbuf-csource --raw --name=network_$${icon}_pb_data ../../image/toolbar/network_$${icon}_16.png >> $@ ;\
217 echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
219 for icon in arrow globe sat ; do \
220 gdk-pixbuf-csource --raw --name=remote_$${icon}_pb_data ../../image/toolbar/remote_$${icon}_16.png >> $@ ;\
236 Makefile_custom.common \
238 display_filter_16.svg \