name change
[obnox/wireshark/wip.git] / epan / dfilter / Makefile.am
1 # Makefile.am
2 #
3 # $Id$
4 #
5 # Wireshark - Network traffic analyzer
6 # By Gerald Combs <gerald@zing.org>
7 # Copyright 2001 Gerald Combs
8 #
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 noinst_LTLIBRARIES = libdfilter.la
25
26 CLEANFILES = \
27         libdfilter.a            \
28         libdfilter.la           \
29         *~
30
31 DISTCLEANFILES = \
32         grammar.out     \
33         grammar.c       \
34         grammar.h
35
36 MAINTAINERCLEANFILES = \
37         Makefile.in     \
38         grammar.c       \
39         grammar.h       \
40         grammar.out     \
41         scanner.c
42
43 INCLUDES = -I$(srcdir)/../.. -I$(srcdir)/.. -I$(srcdir)/$(LEMON)
44
45 libdfilter_la_SOURCES = \
46         dfilter.c               \
47         dfilter.h               \
48         dfilter-int.h           \
49         dfunctions.c    \
50         dfunctions.h    \
51         dfvm.c                  \
52         dfvm.h                  \
53         drange.c                \
54         drange.h                \
55         gencode.c               \
56         gencode.h               \
57         glib-util.c             \
58         glib-util.h             \
59         grammar.c               \
60         grammar.h               \
61         scanner.c               \
62         semcheck.c              \
63         semcheck.h              \
64         sttype-function.c       \
65         sttype-function.h       \
66         sttype-integer.c        \
67         sttype-pointer.c        \
68         sttype-range.c          \
69         sttype-range.h          \
70         sttype-string.c         \
71         sttype-test.c           \
72         sttype-test.h           \
73         syntax-tree.c           \
74         syntax-tree.h
75
76 EXTRA_DIST = \
77         grammar.lemon           \
78         scanner.l               \
79         Makefile.nmake          
80
81 scanner.c : scanner.l
82         $(LEX) -Pdf_ -oscanner.c $(srcdir)/scanner.l
83
84 scanner.o : scanner.c grammar.h
85
86 LEMON=../../tools/lemon
87
88 grammar.h : grammar.c 
89 grammar.c : grammar.lemon $(LEMON)/lemon
90         $(LEMON)/lemon t=$(srcdir)/$(LEMON)/lempar.c $(srcdir)/grammar.lemon || \
91                 (rm -f grammar.c grammar.h ; false)
92