Fixed 0.6.0 packaging problems.
[obnox/wireshark/wip.git] / wiretap / Makefile.am
1 bin_PROGRAMS = wiretap filterc
2 noinst_LIBRARIES = @LIBWIRETAP_A@
3
4 EXTRA_LIBRARIES = libwiretap.a
5
6 EXTRA_DIST = \
7         rt-grammar-skel.y       \
8         rt-scanner-skel.l       \
9         ct-grammar.y            \
10         ct-scanner.l            \
11         filter-eth              \
12         filter-tr
13
14 CLEANFILES = \
15         libwiretap.a            \
16         filterc                 \
17         *~                      \
18         ct-grammar.c            \
19         ct-scanner.c            \
20         ct-grammar.h            \
21         rt-grammar.c            \
22         rt-grammar.y            \
23         rt-scanner.c            \
24         rt-scanner.l            \
25         rt-grammar.h
26
27 libwiretap_a_SOURCES = \
28         bpf.h                   \
29         bpf.c                   \
30         bpf-engine.c            \
31         bpf-engine.h            \
32         buffer.c                \
33         buffer.h                \
34         config.h                \
35         file.c                  \
36         iptrace.c               \
37         iptrace.h               \
38         lanalyzer.c             \
39         lanalyzer.h             \
40         libpcap.c               \
41         libpcap.h               \
42         netmon.c                \
43         netmon.h                \
44         netxray.c               \
45         netxray.h               \
46         ngsniffer.c             \
47         ngsniffer.h             \
48         rt-compile.h            \
49         rt-compile.c            \
50         rt-global.h             \
51         rt-grammar.h            \
52         rt-grammar.y            \
53         rt-scanner.l            \
54         snoop.c                 \
55         snoop.h                 \
56         wtap.c                  \
57         wtap.h
58
59
60 filterc_SOURCES = \
61         ct-compile.c            \
62         ct-compile.h            \
63         ct-grammar.h            \
64         ct-grammar.y            \
65         ct-scanner.l            \
66         ct-main.c               \
67         glib-new.h              \
68         glib-new.c
69
70 #BUILT_SOURCES = \
71 #       rt-grammar.h            \
72 #       rt-grammar.y            \
73 #       rt-scanner.l
74
75 FILTERS = \
76         filter-eth              \
77         filter-tr
78
79 YFLAGS=-d -p wtap_
80 LFLAGS=-i -Pwtap_
81
82 #ct-tokdefs.h ct-grammar.c : ct-grammar.y
83 #       @rm -f $@ ct-tokdefs.h
84 #       $(CT_YACC) -d $<
85 #       mv y.tab.c ct-grammar.c
86 #       mv y.tab.h ct-tokdefs.h
87
88 ct-scanner.c : ct-scanner.l
89         @rm -f $@
90         $(LEX) $(LFLAGS) -t $< > $@
91
92 rt-scanner.l : rt-scanner-skel.l filterc $(FILTERS)
93         cat $(FILTERS) | ./filterc > /dev/null
94
95 rt-scanner.c : rt-scanner.l rt-grammar.c
96         @rm -f $@
97         $(LEX) $(LFLAGS) -t $< > $@
98
99 rt-grammar.y : rt-grammar-skel.y filterc $(FILTERS)
100         cat $(FILTERS) | ./filterc > /dev/null
101
102 #rt-tokdefs.h rt-grammar.c : rt-grammar.y
103 #       @rm -f $@ rt-tokdefs.h
104 #       $(RT_YACC) -d $<
105 #       mv y.tab.c rt-grammar.c
106 #       mv y.tab.h rt-tokdefs.h
107
108 wiretap_SOURCES = \
109         wiretap.c               \
110         glib-new.c
111
112 wiretap_LDADD = libwiretap.a