Rename the (static) library built from stuff in ui/gtk to "libgtkui" in
[metze/wireshark/wip.git] / ui / gtk / Makefile.am
1 # Makefile.am
2 # Automake file for the GTK 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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, 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 = libgtkui.a libgtkui_dirty.a
32
33 CLEANFILES = \
34         libgtkui.a              \
35         libgtkui_dirty.a        \
36         *~
37
38 MAINTAINERCLEANFILES = \
39         $(GENERATED_FILES)      \
40         Makefile.in
41
42 RUNLEX=$(top_srcdir)/tools/runlex.sh
43
44 text_import_scanner_lex.h: text_import_scanner.c
45
46 wireshark-tap-register.c: $(WIRESHARK_TAP_SRC) $(top_srcdir)/tools/make-tapreg-dotc
47         @echo Making wireshark-tap-register.c
48         @$(top_srcdir)/tools/make-tapreg-dotc wireshark-tap-register.c $(srcdir) $(WIRESHARK_TAP_SRC)
49
50 libgtkui_a_SOURCES = \
51         $(WIRESHARK_GTK_SRC) \
52         $(GENERATED_C_FILES) \
53         $(GENERATED_H_FILES) \
54         $(noinst_HEADERS) \
55         $(WIRESHARK_TAP_SRC)
56
57 libgtkui_a_CFLAGS = $(AM_CLEAN_CFLAGS)
58
59 libgtkui_a_DEPENDENCIES =
60
61
62 libgtkui_dirty_a_SOURCES = \
63         $(DIRTY_GENERATED_C_FILES)
64
65 libgtkui_dirty_a_DEPENDENCIES =
66
67 # Common headers
68 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap $(LIBGCRYPT_CFLAGS) $(LIBGNUTLS_CFLAGS) $(PORTAUDIO_INCLUDES)
69
70
71 doxygen:
72 if HAVE_DOXYGEN
73         $(DOXYGEN) doxygen.cfg
74 endif           # HAVE_DOXYGEN
75
76 checkapi: checkapi-base checkapi-todo
77
78 checkapi-base:
79         $(PERL) ../../tools/checkAPIs.pl -g deprecated-gtk \
80         $(WIRESHARK_GTK_SRC) \
81         $(WIRESHARK_TAP_SRC) \
82         capture_if_details_dlg_win32.c
83
84 checkapi-todo:
85         $(PERL) ../../tools/checkAPIs.pl -M -g deprecated-gtk-todo \
86         $(WIRESHARK_GTK_SRC) \
87         $(WIRESHARK_TAP_SRC) \
88         capture_if_details_dlg_win32.c
89
90 expert_indicators.h:
91         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
92         echo >> $@
93         for elevel in chat error none note warn ; do \
94                 gdk-pixbuf-csource --raw --name=expert_$${elevel}_pb_data ../../image/expert_$${elevel}.png >> $@ ;\
95         done
96
97 network_icons.h:
98         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
99         echo >> $@
100         for icon in bluetooth usb wired wireless ; do \
101                 gdk-pixbuf-csource --raw --name=network_$${icon}_pb_data ../../image/toolbar/network_$${icon}_16.png >> $@ ;\
102         done
103
104 remote_icons.h:
105         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
106         echo >> $@
107         for icon in arrow globe sat ; do \
108                 gdk-pixbuf-csource --raw --name=remote_$${icon}_pb_data ../../image/toolbar/remote_$${icon}_16.png >> $@ ;\
109         done
110
111 pipe_icon.h:
112         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
113         echo >> $@
114         gdk-pixbuf-csource --raw --name=pipe_pb_data ../../image/toolbar/pipe_16.png >> $@
115
116 EXTRA_DIST = \
117         $(GENERATOR_FILES)      \
118         airpcap_dlg.c                   \
119         airpcap_gui_utils.c             \
120         capture_if_details_dlg_win32.c  \
121         capture_if_details_dlg_win32.h  \
122         doxygen.cfg.in                  \
123         libgtkui.vcproj                 \
124         main_airpcap_toolbar.c          \
125         Makefile.common                 \
126         Makefile.nmake                  \
127         CMakeLists.txt                  \
128         Makefile_custom.common