Create a libui (static) library in the ui directory, which contains the
[metze/wireshark/wip.git] / ui / Makefile.am
1 # Makefile.am
2 # Automake file for the common-to-all-toolkits user interface routines
3 # for Wireshark
4 #
5 # $Id$
6 #
7 # Wireshark - Network traffic analyzer
8 # By Gerald Combs <gerald@wireshark.org>
9 # Copyright 1998 Gerald Combs
10 #
11 # This program is free software; you can redistribute it and/or
12 # modify it under the terms of the GNU General Public License
13 # as published by the Free Software Foundation; either version 2
14 # of the License, or (at your option) any later version.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 # GNU General Public License for more details.
20 #
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24
25 include Makefile.common
26 include ../Makefile.am.inc
27
28 if HAVE_WARNINGS_AS_ERRORS
29 AM_CLEAN_CFLAGS = -Werror
30 endif
31
32 noinst_LIBRARIES = libui.a
33
34 CLEANFILES = \
35         libui.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 libui_a_SOURCES = \
51         $(WIRESHARK_UI_SRC) \
52         $(GENERATED_C_FILES) \
53         $(GENERATED_H_FILES) \
54         $(noinst_HEADERS) \
55         $(WIRESHARK_TAP_SRC)
56
57 libui_a_CFLAGS = $(AM_CLEAN_CFLAGS)
58
59 libui_a_DEPENDENCIES =
60
61 # Common headers
62 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap $(LIBGCRYPT_CFLAGS) $(LIBGNUTLS_CFLAGS) $(PORTAUDIO_INCLUDES)
63
64
65 doxygen:
66 if HAVE_DOXYGEN
67         $(DOXYGEN) doxygen.cfg
68 endif           # HAVE_DOXYGEN
69
70 checkapi: checkapi-base checkapi-todo
71
72 checkapi-base:
73         $(PERL) ../tools/checkAPIs.pl -g deprecated-gtk \
74         $(WIRESHARK_UI_SRC) \
75         $(WIRESHARK_TAP_SRC) \
76         capture_if_details_dlg_win32.c
77
78 checkapi-todo:
79         $(PERL) ../tools/checkAPIs.pl -M -g deprecated-gtk-todo \
80         $(WIRESHARK_UI_SRC) \
81         $(WIRESHARK_TAP_SRC) \
82         capture_if_details_dlg_win32.c
83
84 expert_indicators.h:
85         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
86         echo >> $@
87         for elevel in chat error none note warn ; do \
88                 gdk-pixbuf-csource --raw --name=expert_$${elevel}_pb_data ../image/expert_$${elevel}.png >> $@ ;\
89         done
90
91 network_icons.h:
92         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
93         echo >> $@
94         for icon in bluetooth usb wired wireless ; do \
95                 gdk-pixbuf-csource --raw --name=network_$${icon}_pb_data ../image/toolbar/network_$${icon}_16.png >> $@ ;\
96         done
97
98 remote_icons.h:
99         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
100         echo >> $@
101         for icon in arrow globe sat ; do \
102                 gdk-pixbuf-csource --raw --name=remote_$${icon}_pb_data ../image/toolbar/remote_$${icon}_16.png >> $@ ;\
103         done
104
105 pipe_icon.h:
106         echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
107         echo >> $@
108         gdk-pixbuf-csource --raw --name=pipe_pb_data ../image/toolbar/pipe_16.png >> $@
109
110 EXTRA_DIST = \
111         $(GENERATOR_FILES)      \
112         Makefile.common                 \
113         Makefile.nmake