[aeron] a new-style dissector should return 0 (not -1) to reject a packet
[metze/wireshark/wip.git] / Makefile.common
1 # Makefile.common
2 #     Contains the stuff from Makefile.am and Makefile.nmake that is
3 #     a) common to both files and
4 #     b) portable between both files
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23
24 # "BUILT_SOURCES" are built before any "make all" or "make check" targets.
25 BUILT_HEADER_FILES =    \
26         version.h
27
28 BUILT_C_FILES =
29
30 BUILT_SOURCES = $(BUILT_C_FILES) $(BUILT_HEADER_FILES)
31
32 # Header files generated from source files.
33 GENERATED_HEADER_FILES = \
34         $(BUILT_HEADER_FILES)
35
36 # C source files generated from source files.
37 GENERATED_C_FILES =
38
39 # All the generated files.
40 GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
41
42 # sources common for wireshark, tshark, and rawshark
43 SHARK_COMMON_SRC =      \
44         cfile.c                 \
45         frame_tvbuff.c          \
46         sync_pipe_write.c       \
47         extcap.c                \
48         extcap_parser.c
49
50 # corresponding headers
51 SHARK_COMMON_INCLUDES = \
52         cfile.h                 \
53         color.h                 \
54         extcap.h                \
55         extcap_parser.h         \
56         file.h                  \
57         fileset.h               \
58         frame_tvbuff.h          \
59         register.h              \
60         ws_symbol_export.h
61
62 # wireshark specifics
63 WIRESHARK_COMMON_SRC =  \
64         $(SHARK_COMMON_SRC)     \
65         capture_info.c  \
66         capture_opts.c  \
67         color_filters.c \
68         file.c          \
69         fileset.c       \
70         summary.c
71
72 # corresponding headers
73 WIRESHARK_COMMON_INCLUDES =     \
74         capture_info.h  \
75         capture_opts.h  \
76         color_filters.h \
77         globals.h       \
78         log.h           \
79         summary.h       \
80         sync_pipe.h
81
82 # tshark specifics
83 tshark_SOURCES =        \
84         $(SHARK_COMMON_SRC)     \
85         capture_opts.c          \
86         tshark.c
87
88 # tfshark specifics
89 tfshark_SOURCES =       \
90         $(SHARK_COMMON_SRC)     \
91         tfshark.c
92
93 # rawshark specifics
94 rawshark_SOURCES =      \
95         $(SHARK_COMMON_SRC)     \
96         rawshark.c
97
98 # androiddump specifics
99 androiddump_SOURCES =   \
100         extcap/androiddump.c
101
102 # text2pcap specifics
103 text2pcap_SOURCES = \
104         pcapio.c                \
105         text2pcap.c             \
106         text2pcap-scanner.l
107
108 text2pcap_INCLUDES = \
109         pcapio.h \
110         text2pcap.h
111
112 # mergecap specifics
113 mergecap_SOURCES = \
114         mergecap.c
115
116 # editcap specifics
117 editcap_SOURCES = \
118         editcap.c
119
120 # reordercap specifics
121 reordercap_SOURCES = \
122         reordercap.c
123
124 # capinfos specifics
125 capinfos_SOURCES = \
126         capinfos.c
127
128 # captype specifics
129 captype_SOURCES = \
130         captype.c
131
132 # dftest specifics
133 dftest_SOURCES =        \
134         dftest.c
135
136 # echld specifics
137 echld_test_SOURCES =    \
138         echld_test.c    \
139         capture_opts.c  \
140         capture_stop_conditions.c       \
141         cfile.c         \
142         conditions.c    \
143         pcapio.c        \
144         ringbuffer.c    \
145         sync_pipe_write.c
146
147 # randpkt specifics
148 randpkt_SOURCES = \
149         randpkt.c
150
151 # dumpcap specifics
152 dumpcap_SOURCES =       \
153         capture_opts.c  \
154         capture_stop_conditions.c       \
155         conditions.c    \
156         dumpcap.c       \
157         pcapio.c        \
158         ringbuffer.c    \
159         sync_pipe_write.c
160
161 # corresponding headers
162 dumpcap_INCLUDES = \
163         capture_stop_conditions.h       \
164         conditions.h    \
165         pcapio.h        \
166         ringbuffer.h
167
168 # this target needed for distribution only
169 noinst_HEADERS =        \
170         $(SHARK_COMMON_INCLUDES) \
171         $(WIRESHARK_COMMON_INCLUDES) \
172         $(dumpcap_INCLUDES)