extcap: Fix make distcheck
[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         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 # sources common for wireshark, tshark, and rawshark
44 SHARK_COMMON_SRC =      \
45         cfile.c                 \
46         frame_tvbuff.c          \
47         sync_pipe_write.c       \
48         extcap.c                \
49         extcap_parser.c
50
51 # corresponding headers
52 SHARK_COMMON_INCLUDES = \
53         cfile.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         file.c          \
68         fileset.c       \
69         filter_files.c \
70         summary.c
71
72 # corresponding headers
73 WIRESHARK_COMMON_INCLUDES =     \
74         capture_info.h  \
75         capture_opts.h  \
76         filter_files.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         filter_files.c          \
87         tshark.c
88
89 # tfshark specifics
90 tfshark_SOURCES =       \
91         $(SHARK_COMMON_SRC)     \
92         tfshark.c
93
94 # rawshark specifics
95 rawshark_SOURCES =      \
96         $(SHARK_COMMON_SRC)     \
97         rawshark.c
98
99 # text2pcap specifics
100 text2pcap_SOURCES = \
101         pcapio.c                \
102         text2pcap.c             \
103         text2pcap-scanner.l
104
105 text2pcap_INCLUDES = \
106         pcapio.h \
107         text2pcap.h
108
109 # mergecap specifics
110 mergecap_SOURCES = \
111         mergecap.c
112
113 # editcap specifics
114 editcap_SOURCES = \
115         editcap.c
116
117 # reordercap specifics
118 reordercap_SOURCES = \
119         reordercap.c
120
121 # capinfos specifics
122 capinfos_SOURCES = \
123         capinfos.c
124
125 # captype specifics
126 captype_SOURCES = \
127         captype.c
128
129 # dftest specifics
130 dftest_SOURCES =        \
131         dftest.c
132
133 # echld specifics
134 echld_test_SOURCES =    \
135         echld_test.c    \
136         capture_opts.c  \
137         capture_stop_conditions.c       \
138         cfile.c         \
139         conditions.c    \
140         pcapio.c        \
141         ringbuffer.c    \
142         sync_pipe_write.c
143
144 # randpkt specifics
145 randpkt_SOURCES = \
146         randpkt.c
147
148 # dumpcap specifics
149 dumpcap_SOURCES =       \
150         capture_opts.c  \
151         capture_stop_conditions.c       \
152         conditions.c    \
153         dumpcap.c       \
154         filter_files.c  \
155         pcapio.c        \
156         ringbuffer.c    \
157         sync_pipe_write.c
158
159 # corresponding headers
160 dumpcap_INCLUDES = \
161         capture_stop_conditions.h       \
162         conditions.h    \
163         pcapio.h        \
164         ringbuffer.h
165
166 # this target needed for distribution only
167 noinst_HEADERS =        \
168         $(SHARK_COMMON_INCLUDES) \
169         $(WIRESHARK_COMMON_INCLUDES) \
170         $(dumpcap_INCLUDES)