Fix "disable this protocol by default".
[jlayton/wireshark.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         text2pcap-scanner_lex.h \
35         $(BUILT_HEADER_FILES)
36
37 # C source files generated from source files.
38 GENERATED_C_FILES =
39
40 # All the generated files.
41 GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
42
43 EXTCAP_COMMON_SRC = \
44         extcap.c                \
45         extcap_parser.c
46
47 EXTCAP_COMMON_INCLUDES = \
48         extcap.h                \
49         extcap_parser.h
50
51 # sources common for wireshark, tshark, and rawshark
52 SHARK_COMMON_SRC =      \
53         cfile.c                 \
54         frame_tvbuff.c          \
55         sync_pipe_write.c
56
57 # corresponding headers
58 SHARK_COMMON_INCLUDES = \
59         cfile.h                 \
60         file.h                  \
61         fileset.h               \
62         frame_tvbuff.h          \
63         register.h              \
64         ws_symbol_export.h
65
66 # wireshark specifics
67 WIRESHARK_COMMON_SRC =  \
68         $(SHARK_COMMON_SRC)     \
69         capture_info.c  \
70         capture_opts.c  \
71         file.c          \
72         fileset.c       \
73         filter_files.c \
74         summary.c       \
75         ws_version_info.c
76
77 # corresponding headers
78 WIRESHARK_COMMON_INCLUDES =     \
79         capture_info.h  \
80         capture_opts.h  \
81         filter_files.h \
82         globals.h       \
83         log.h           \
84         summary.h       \
85         sync_pipe.h
86
87 # tshark specifics
88 tshark_SOURCES =        \
89         $(SHARK_COMMON_SRC)     \
90         capture_opts.c          \
91         filter_files.c          \
92         tshark.c                \
93         ws_version_info.c
94
95 # tfshark specifics
96 tfshark_SOURCES =       \
97         $(SHARK_COMMON_SRC)     \
98         tfshark.c               \
99         ws_version_info.c
100
101 # rawshark specifics
102 rawshark_SOURCES =      \
103         $(SHARK_COMMON_SRC)     \
104         rawshark.c              \
105         ws_version_info.c
106
107 # text2pcap specifics
108 text2pcap_SOURCES = \
109         text2pcap.c             \
110         text2pcap-scanner.l     \
111         ws_version_info.c
112
113 text2pcap_INCLUDES = \
114         text2pcap.h
115
116 # mergecap specifics
117 mergecap_SOURCES = \
118         mergecap.c      \
119         ws_version_info.c
120
121 # editcap specifics
122 editcap_SOURCES = \
123         editcap.c       \
124         ws_version_info.c
125
126 # reordercap specifics
127 reordercap_SOURCES = \
128         reordercap.c    \
129         ws_version_info.c
130
131 # capinfos specifics
132 capinfos_SOURCES = \
133         capinfos.c      \
134         ws_version_info.c
135
136 # captype specifics
137 captype_SOURCES = \
138         captype.c       \
139         ws_version_info.c
140
141 # dftest specifics
142 dftest_SOURCES =        \
143         dftest.c
144
145 # echld specifics
146 echld_test_SOURCES =    \
147         echld_test.c    \
148         capture_opts.c  \
149         capture_stop_conditions.c       \
150         cfile.c         \
151         conditions.c    \
152         ringbuffer.c    \
153         sync_pipe_write.c
154
155 # randpkt specifics
156 randpkt_SOURCES = \
157         randpkt.c       \
158         ws_version_info.c
159
160 # dumpcap specifics
161 dumpcap_SOURCES =       \
162         capture_opts.c  \
163         capture_stop_conditions.c       \
164         conditions.c    \
165         dumpcap.c       \
166         filter_files.c  \
167         ringbuffer.c    \
168         sync_pipe_write.c       \
169         ws_version_info.c
170
171 # corresponding headers
172 dumpcap_INCLUDES = \
173         capture_stop_conditions.h       \
174         conditions.h    \
175         ringbuffer.h
176
177 # this target needed for distribution only
178 noinst_HEADERS =        \
179         $(SHARK_COMMON_INCLUDES) \
180         $(EXTCAP_COMMON_INCLUDES) \
181         $(WIRESHARK_COMMON_INCLUDES) \
182         $(dumpcap_INCLUDES) \
183         ws_diag_control.h       \
184         ws_version_info.h