Add an initial "Decode As" dialog. Currently read-only.
[metze/wireshark/wip.git] / ui / qt / Makefile.am
1 # Makefile.am
2 # Automake file for the Qt interface routines for Wireshark
3 #
4 # $Id$
5 #
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
9 #
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.
14 #
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.
19 #
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.
23
24 include Makefile.common
25 include ../../Makefile.am.inc
26
27 if HAVE_WARNINGS_AS_ERRORS
28 AM_CLEAN_CFLAGS = -Werror
29 endif
30
31 noinst_LIBRARIES = libqtui.a
32
33 CLEANFILES = \
34         libqtui.a               \
35         wireshark-tap-register.c-tmp            \
36         wireshark-tap-register-cache.pkl        \
37         *~
38
39 DISTCLEANFILES = \
40         $(NODIST_GENERATED_FILES)
41
42 MAINTAINERCLEANFILES = \
43         $(GENERATED_FILES)              \
44         $(NODIST_GENERATED_FILES)       \
45         Makefile.in
46
47 #
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.
51 #
52 # We do this by grepping through sources.
53 #
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.
57 #
58 # The first argument is the directory in which the source files live.
59 # All subsequent arguments are the files to scan.
60 #
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); \
65         else \
66                 echo Making wireshark-tap-register.c; \
67                 $(top_srcdir)/tools/make-tapreg-dotc wireshark-tap-register.c $(srcdir) $(WIRESHARK_QT_TAP_SRC); \
68         fi
69
70 RUNLEX=$(top_srcdir)/tools/runlex.sh
71
72 libqtui_a_SOURCES = \
73         $(WIRESHARK_QT_SRC) \
74         $(WIRESHARK_TAP_SRC) \
75         $(GENERATED_C_FILES) \
76         $(GENERATED_CPP_FILES) \
77         $(noinst_HEADERS) \
78         $(GENERATED_HEADER_FILES)
79
80 nodist_libqtui_a_SOURCES = \
81         $(NODIST_GENERATED_C_FILES) \
82         $(NODIST_GENERATED_CPP_FILES) \
83         $(NODIST_GENERATED_HEADER_FILES)
84
85 libqtui_a_CFLAGS = $(AM_CLEAN_CFLAGS)
86
87 libqtui_a_DEPENDENCIES =
88
89 # Common headers
90 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap $(LIBGCRYPT_CFLAGS) \
91         $(LIBGNUTLS_CFLAGS) $(PIE_CFLAGS)
92
93 AM_CXXFLAGS = $(AM_CLEAN_CFLAGS)
94
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     " $@;
98
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     " $@;
102
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     " $@;
106
107 #
108 # For building .moc.cpp files from .h files by running moc
109 # and building .rcc.cpp files from .qrc files by running rcc
110 #
111 SUFFIXES = .moc.cpp .qrc .rcc.cpp
112
113 .h.moc.cpp:
114         $(AM_V_MOC)$(MOC) -I.. -I../.. -o $@ $<
115
116 .qrc.rcc.cpp:
117         $(MKDIR_P) $(@D)
118         $(AM_V_RCC)rcc -name `basename $< .qrc` -o $@ $<
119
120 ui_%.h: %.ui
121         $(AM_V_UIC)$(UIC) $< -o $@
122
123 # The Qt toolchain uses the naming convention moc_FOO.cpp. Should we do the same?
124 #moc_%.cpp: %.h
125 #       $(MOC) $< -o $@
126
127 capture_preferences_frame.cpp capture_preferences_frame.h: ui_capture_preferences_frame.h
128
129 column_preferences_frame.cpp column_preferences_frame.h: ui_column_preferences_frame.h
130
131 decode_as_dialog.cpp decode_as_dialog.h: ui_decode_as_dialog.h
132
133 export_object_dialog.cpp export_object_dialog.h: ui_export_object_dialog.h
134
135 file_set_dialog.cpp file_set_dialog.h: ui_file_set_dialog.h
136
137 filter_expressions_preferences_frame.cpp filter_expressions_preferences_frame.h: ui_filter_expressions_preferences_frame.h
138
139 follow_stream_dialog.cpp: ui_follow_stream_dialog.h
140
141 font_color_preferences_frame.cpp font_color_preferences_frame.h: ui_font_color_preferences_frame.h
142
143 import_text_dialog.cpp import_text_dialog.h: ui_import_text_dialog.h
144
145 layout_preferences_frame.cpp layout_preferences_frame.h: ui_layout_preferences_frame.h
146
147 main_welcome.cpp main_welcome.h: ui_main_welcome.h
148
149 main_window.cpp main_window_slots.cpp main_window.h: ui_main_window.h
150
151 main_window_preferences_frame.cpp main_window_preferences_frame.h: ui_main_window_preferences_frame.h
152
153 module_preferences_scroll_area.cpp module_preferences_scroll_area.h: ui_module_preferences_scroll_area.h
154
155 packet_comment_dialog.cpp packet_comment_dialog.h: ui_packet_comment_dialog.h
156
157 packet_format_group_box.cpp packet_format_group_box.h: ui_packet_format_group_box.h
158
159 packet_range_group_box.cpp packet_range_group_box.h: ui_packet_range_group_box.h
160
161 preferences_dialog.cpp preferences_dialog.h: ui_preferences_dialog.h
162
163 print_dialog.cpp print_dialog.h: ui_print_dialog.h
164
165 profile_dialog.cpp profile_dialog.h: ui_profile_dialog.h
166
167 search_frame.cpp search_frame.h: ui_search_frame.h
168
169 sequence_dialog.cpp sequence_dialog.h: ui_sequence_dialog.h
170
171 splash_overlay.cpp splash_overlay.h: ui_splash_overlay.h
172
173 stats_tree_dialog.cpp stats_tree_dialog.h: ui_stats_tree_dialog.h
174
175 summary_dialog.cpp summary_dialog.h: ui_summary_dialog.h
176
177 tcp_stream_dialog.cpp: ui_tcp_stream_dialog.h
178
179 time_shift_dialog.cpp time_shift_dialog.h: ui_time_shift_dialog.h
180
181 uat_dialog.cpp uat_dialog.h: ui_uat_dialog.h
182
183 doxygen:
184 if HAVE_DOXYGEN
185         $(DOXYGEN) doxygen.cfg
186 endif           # HAVE_DOXYGEN
187
188 checkapi: checkapi-base checkapi-todo
189
190 checkapi-base:
191         $(PERL) ../tools/checkAPIs.pl -g deprecated-gtk -build \
192         $(WIRESHARK_GTK_SRC) \
193         $(WIRESHARK_TAP_SRC) \
194         capture_if_details_dlg_win32.c
195
196 checkapi-todo:
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
201
202 expert_indicators.h:
203         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
204         echo >> $@
205         for elevel in chat error none note warn ; do \
206                 gdk-pixbuf-csource --raw --name=expert_$${elevel}_pb_data ../../image/expert_$${elevel}.png >> $@ ;\
207         done
208
209 network_icons.h:
210         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
211         echo >> $@
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 >> $@ ;\
214         done
215
216 remote_icons.h:
217         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
218         echo >> $@
219         for icon in arrow globe sat ; do \
220                 gdk-pixbuf-csource --raw --name=remote_$${icon}_pb_data ../../image/toolbar/remote_$${icon}_16.png >> $@ ;\
221         done
222
223 # XXX to be created
224 #       libqtui.vcproj
225 #       Makefile.nmake
226 EXTRA_DIST = \
227         $(GENERATOR_FILES)              \
228         $(UI_FILES)                     \
229         $(QRC_FILES)                    \
230         $(TS_FILES)                     \
231         $(QM_FILES)                     \
232         CMakeLists.txt                  \
233         doxygen.cfg.in                  \
234         main.cpp                        \
235         Makefile.common                 \
236         Makefile_custom.common          \
237         QtShark.pro                     \
238         display_filter_16.svg           \
239         gpl-template.txt