f806a56cb5077d8b7367705a72fd173e6521f29e
[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         *~
36
37 DISTCLEANFILES = \
38         $(GENERATED_NODIST_FILES)
39
40 MAINTAINERCLEANFILES = \
41         $(GENERATED_FILES)              \
42         $(GENERATED_NODIST_FILES)       \
43         Makefile.in
44
45 RUNLEX=$(top_srcdir)/tools/runlex.sh
46
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)
54
55 nodist_libqtui_a_SOURCES = \
56         $(GENERATED_NODIST_C_FILES) \
57         $(GENERATED_NODIST_CPP_FILES) \
58         $(GENERATED_NODIST_HEADER_FILES)
59
60 libqtui_a_CFLAGS = $(AM_CLEAN_CFLAGS)
61
62 libqtui_a_DEPENDENCIES =
63
64 # Common headers
65 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap $(LIBGCRYPT_CFLAGS) $(LIBGNUTLS_CFLAGS) $(PORTAUDIO_INCLUDES)
66
67 #
68 # For building .moc.cpp files from .h files by running moc
69 # and building .rcc.cpp files from .qrc files by running rcc
70 #
71 SUFFIXES = .moc.cpp .qrc .rcc.cpp
72
73 .h.moc.cpp:
74         moc -o $@ $<
75
76 .qrc.rcc.cpp:
77         rcc -name `basename $< .qrc` -o $@ $<
78
79 export_object_dialog.h: ui_export_object_dialog.h
80
81 ui_export_object_dialog.h: export_object_dialog.ui
82         uic $< -o $@
83
84 file_set_dialog.h: ui_file_set_dialog.h
85
86 ui_file_set_dialog.h: file_set_dialog.ui
87         uic $< -o $@
88
89 import_text_dialog.h: ui_import_text_dialog.h
90
91 ui_import_text_dialog.h: import_text_dialog.ui
92         uic $< -o $@
93
94 main_welcome.h: ui_main_welcome.h
95
96 ui_main_welcome.h: main_welcome.ui
97         uic $< -o $@
98
99 main_window.h: ui_main_window.h
100
101 ui_main_window.h: main_window.ui
102         uic $< -o $@
103
104 packet_format_group_box.h: ui_packet_format_group_box.h
105
106 ui_packet_format_group_box.h: packet_format_group_box.ui
107         uic $< -o $@
108
109 packet_range_group_box.h: ui_packet_range_group_box.h
110
111 ui_packet_range_group_box.h: packet_range_group_box.ui
112         uic $< -o $@
113
114 print_dialog.h: ui_print_dialog.h
115
116 ui_print_dialog.h: print_dialog.ui
117         uic $< -o $@
118
119 splash_overlay.h: ui_splash_overlay.h
120
121 ui_splash_overlay.h: splash_overlay.ui
122         uic $< -o $@
123
124 doxygen:
125 if HAVE_DOXYGEN
126         $(DOXYGEN) doxygen.cfg
127 endif           # HAVE_DOXYGEN
128
129 checkapi: checkapi-base checkapi-todo
130
131 checkapi-base:
132         $(PERL) ../tools/checkAPIs.pl -g deprecated-gtk -build \
133         $(WIRESHARK_GTK_SRC) \
134         $(WIRESHARK_TAP_SRC) \
135         capture_if_details_dlg_win32.c
136
137 checkapi-todo:
138         $(PERL) ../tools/checkAPIs.pl -M -g deprecated-gtk-todo -build \
139         $(WIRESHARK_GTK_SRC) \
140         $(WIRESHARK_TAP_SRC) \
141         capture_if_details_dlg_win32.c
142
143 expert_indicators.h:
144         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
145         echo >> $@
146         for elevel in chat error none note warn ; do \
147                 gdk-pixbuf-csource --raw --name=expert_$${elevel}_pb_data ../../image/expert_$${elevel}.png >> $@ ;\
148         done
149
150 network_icons.h:
151         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
152         echo >> $@
153         for icon in bluetooth usb wired wireless ; do \
154                 gdk-pixbuf-csource --raw --name=network_$${icon}_pb_data ../../image/toolbar/network_$${icon}_16.png >> $@ ;\
155         done
156
157 remote_icons.h:
158         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
159         echo >> $@
160         for icon in arrow globe sat ; do \
161                 gdk-pixbuf-csource --raw --name=remote_$${icon}_pb_data ../../image/toolbar/remote_$${icon}_16.png >> $@ ;\
162         done
163
164 # XXX to be created
165 #       libqtui.vcproj
166 #       Makefile.nmake
167 EXTRA_DIST = \
168         $(GENERATOR_FILES)              \
169         $(QRC_FILES)                    \
170         $(TS_FILES)                     \
171         $(QM_FILES)                     \
172         CMakeLists.txt                  \
173         doxygen.cfg.in                  \
174         export_object_dialog.ui         \
175         file_set_dialog.ui              \
176         import_text_dialog.ui           \
177         main.cpp                        \
178         Makefile.common                 \
179         Makefile_custom.common          \
180         main_welcome.ui                 \
181         main_window.ui                  \
182         packet_format_group_box.ui      \
183         packet_range_group_box.ui       \
184         print_dialog.ui                 \
185         QtShark.pro                     \
186         splash_overlay.ui               \
187         display_filter_16.svg           \
188         gpl-template.txt