HACK: 1. try to match RowsetProperties
[wireshark-wip.git] / ui / qt / Makefile.am
blob142b297e91e25dcc376e56fd78f1d68975d8b08f
1 # Makefile.am
2 # Automake file for the Qt interface routines for Wireshark
4 # $Id$
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
29 endif
31 noinst_LIBRARIES = libqtui.a
33 CLEANFILES = \
34         libqtui.a               \
35         *~
37 DISTCLEANFILES = \
38         $(NODIST_GENERATED_FILES)
40 MAINTAINERCLEANFILES = \
41         $(GENERATED_FILES)              \
42         $(NODIST_GENERATED_FILES)       \
43         Makefile.in
45 RUNLEX=$(top_srcdir)/tools/runlex.sh
47 libqtui_a_SOURCES = \
48         $(WIRESHARK_QT_SRC) \
49         $(WIRESHARK_TAP_SRC) \
50         $(GENERATED_C_FILES) \
51         $(GENERATED_CPP_FILES) \
52         $(noinst_HEADERS) \
53         $(GENERATED_HEADER_FILES)
55 nodist_libqtui_a_SOURCES = \
56         $(NODIST_GENERATED_C_FILES) \
57         $(NODIST_GENERATED_CPP_FILES) \
58         $(NODIST_GENERATED_HEADER_FILES)
60 libqtui_a_CFLAGS = $(AM_CLEAN_CFLAGS)
62 libqtui_a_DEPENDENCIES =
64 # Common headers
65 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap $(LIBGCRYPT_CFLAGS) \
66         $(LIBGNUTLS_CFLAGS) $(PIE_CFLAGS)
68 AM_CXXFLAGS = $(AM_CLEAN_CFLAGS)
70 AM_V_MOC = $(am__v_MOC_@AM_V@)
71 am__v_MOC_ = $(am__v_MOC_@AM_DEFAULT_V@)
72 am__v_MOC_0 = @echo "  MOC     " $@;
74 AM_V_RCC = $(am__v_RCC_@AM_V@)
75 am__v_RCC_ = $(am__v_RCC_@AM_DEFAULT_V@)
76 am__v_RCC_0 = @echo "  RCC     " $@;
78 AM_V_UIC = $(am__v_UIC_@AM_V@)
79 am__v_UIC_ = $(am__v_UIC_@AM_DEFAULT_V@)
80 am__v_UIC_0 = @echo "  UIC     " $@;
83 # For building .moc.cpp files from .h files by running moc
84 # and building .rcc.cpp files from .qrc files by running rcc
86 SUFFIXES = .moc.cpp .qrc .rcc.cpp
88 .h.moc.cpp:
89         $(AM_V_MOC)$(MOC) -I.. -I../.. -o $@ $<
91 .qrc.rcc.cpp:
92         $(MKDIR_P) $(@D)
93         $(AM_V_RCC)rcc -name `basename $< .qrc` -o $@ $<
95 ui_%.h: %.ui
96         $(AM_V_UIC)$(UIC) $< -o $@
98 # The Qt toolchain uses the naming convention moc_FOO.cpp. Should we do the same?
99 #moc_%.cpp: %.h
100 #       $(MOC) $< -o $@
102 capture_preferences_frame.cpp capture_preferences_frame.h: ui_capture_preferences_frame.h
104 column_preferences_frame.cpp column_preferences_frame.h: ui_column_preferences_frame.h
106 export_object_dialog.cpp export_object_dialog.h: ui_export_object_dialog.h
108 file_set_dialog.cpp file_set_dialog.h: ui_file_set_dialog.h
110 filter_expressions_preferences_frame.cpp filter_expressions_preferences_frame.h: ui_filter_expressions_preferences_frame.h
112 follow_stream_dialog.cpp: ui_follow_stream_dialog.h
114 font_color_preferences_frame.cpp font_color_preferences_frame.h: ui_font_color_preferences_frame.h
116 import_text_dialog.cpp import_text_dialog.h: ui_import_text_dialog.h
118 layout_preferences_frame.cpp layout_preferences_frame.h: ui_layout_preferences_frame.h
120 main_welcome.cpp main_welcome.h: ui_main_welcome.h
122 main_window.cpp main_window_slots.cpp main_window.h: ui_main_window.h
124 main_window_preferences_frame.cpp main_window_preferences_frame.h: ui_main_window_preferences_frame.h
126 module_preferences_scroll_area.cpp module_preferences_scroll_area.h: ui_module_preferences_scroll_area.h
128 packet_comment_dialog.cpp packet_comment_dialog.h: ui_packet_comment_dialog.h
130 packet_format_group_box.cpp packet_format_group_box.h: ui_packet_format_group_box.h
132 packet_range_group_box.cpp packet_range_group_box.h: ui_packet_range_group_box.h
134 preferences_dialog.cpp preferences_dialog.h: ui_preferences_dialog.h
136 print_dialog.cpp print_dialog.h: ui_print_dialog.h
138 profile_dialog.cpp profile_dialog.h: ui_profile_dialog.h
140 search_frame.cpp search_frame.h: ui_search_frame.h
142 sequence_dialog.cpp sequence_dialog.h: ui_sequence_dialog.h
144 splash_overlay.cpp splash_overlay.h: ui_splash_overlay.h
146 summary_dialog.cpp summary_dialog.h: ui_summary_dialog.h
148 tcp_stream_dialog.cpp: ui_tcp_stream_dialog.h
150 time_shift_dialog.cpp time_shift_dialog.h: ui_time_shift_dialog.h
152 uat_dialog.cpp uat_dialog.h: ui_uat_dialog.h
154 doxygen:
155 if HAVE_DOXYGEN
156         $(DOXYGEN) doxygen.cfg
157 endif           # HAVE_DOXYGEN
159 checkapi: checkapi-base checkapi-todo
161 checkapi-base:
162         $(PERL) ../tools/checkAPIs.pl -g deprecated-gtk -build \
163         $(WIRESHARK_GTK_SRC) \
164         $(WIRESHARK_TAP_SRC) \
165         capture_if_details_dlg_win32.c
167 checkapi-todo:
168         $(PERL) ../tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \
169         $(WIRESHARK_GTK_SRC) \
170         $(WIRESHARK_TAP_SRC) \
171         capture_if_details_dlg_win32.c
173 expert_indicators.h:
174         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
175         echo >> $@
176         for elevel in chat error none note warn ; do \
177                 gdk-pixbuf-csource --raw --name=expert_$${elevel}_pb_data ../../image/expert_$${elevel}.png >> $@ ;\
178         done
180 network_icons.h:
181         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
182         echo >> $@
183         for icon in bluetooth usb wired wireless ; do \
184                 gdk-pixbuf-csource --raw --name=network_$${icon}_pb_data ../../image/toolbar/network_$${icon}_16.png >> $@ ;\
185         done
187 remote_icons.h:
188         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
189         echo >> $@
190         for icon in arrow globe sat ; do \
191                 gdk-pixbuf-csource --raw --name=remote_$${icon}_pb_data ../../image/toolbar/remote_$${icon}_16.png >> $@ ;\
192         done
194 # XXX to be created
195 #       libqtui.vcproj
196 #       Makefile.nmake
197 EXTRA_DIST = \
198         $(GENERATOR_FILES)              \
199         $(UI_FILES)                     \
200         $(QRC_FILES)                    \
201         $(TS_FILES)                     \
202         $(QM_FILES)                     \
203         CMakeLists.txt                  \
204         doxygen.cfg.in                  \
205         main.cpp                        \
206         Makefile.common                 \
207         Makefile_custom.common          \
208         QtShark.pro                     \
209         display_filter_16.svg           \
210         gpl-template.txt