Add -Werror for gcc to a few more directories and fix a few warnings
[obnox/wireshark/wip.git] / epan / wslua / Makefile.am
1 # Makefile.am
2 #
3 # $Id$
4 #
5 # Wireshark - Network traffic analyzer
6 # By Gerald Combs <gerald@wireshark.org>
7 # Copyright 1998 Gerald Combs
8
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License
11 # as published by the Free Software Foundation; either version 2
12 # of the License, or (at your option) any later version.
13
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 # GNU General Public License for more details.
18
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 #
23
24 if USING_GCC
25 AM_CFLAGS = -Werror
26 endif
27
28 INCLUDES = -I$(top_srcdir) @LUA_INCLUDES@
29
30 noinst_LTLIBRARIES = libwslua.la
31
32 wslua_modules =         \
33         wslua_tvb.c \
34         wslua_proto.c \
35         wslua_tree.c \
36         wslua_pinfo.c \
37         wslua_listener.c \
38         wslua_gui.c \
39         wslua_util.c \
40         wslua_field.c \
41         wslua_dumper.c
42
43 libwslua_la_SOURCES = \
44         $(wslua_modules) \
45         taps_wslua.c \
46         register_wslua.c \
47         init_wslua.c \
48         wslua.h
49
50 libwslua_la_LIBADD = @LUA_LIBS@
51
52 BUILT_SOURCES = \
53         taps_wslua.c \
54         register_wslua.c \
55         declare_wslua.h
56
57 dist_pkgdata_DATA = \
58         init.lua \
59         console.lua \
60         dtd_gen.lua
61
62 CLEANFILES = \
63         *~
64
65 DISTCLEANFILES = \
66         $(BUILT_SOURCES) \
67         taps.txt \
68         wslua_register.h
69
70 MAINTAINERCLEANFILES = \
71         Makefile.in     \
72         register_wslua.c \
73         declare_wslua.h \
74         init.lua
75
76 EXTRA_DIST = \
77         declare_wslua.h \
78         register_wslua.c \
79         taps \
80         make-reg.pl \
81         template-init.lua \
82         make-init-lua.pl \
83         make-taps.pl \
84         Makefile.nmake
85
86 taps_used = \
87         ../dissectors/packet-http.h \
88         ../dissectors/packet-ip.h \
89         ../dissectors/packet-udp.h \
90         ../dissectors/packet-h225.h
91
92 taps: $(taps_used)
93         touch taps
94
95 taps_wslua.c: make-taps.pl taps
96         $(PERL) $(srcdir)/make-taps.pl taps taps_wslua.c taps.txt
97
98 taps.txt: taps_wslua.c
99         
100 wslua.h: declare_wslua.h
101
102 register_wslua.c: declare_wslua.h
103
104 declare_wslua.h: make-reg.pl $(wslua_modules) taps_wslua.c
105         $(PERL) $(srcdir)/make-reg.pl $(wslua_modules);
106
107 dummy:
108         touch dummy
109
110 init.lua: template-init.lua make-init-lua.pl ../ftypes/ftypes.h ../../wiretap/wtap.h  ../proto.h ../../stat_menu.h
111         $(PERL) $(srcdir)/make-init-lua.pl template-init.lua > init.lua