Qt Follow window: keep data representation when switching between streams
[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         version_info.c          \
48         extcap.c                \
49         extcap_parser.c
50
51 # corresponding headers
52 SHARK_COMMON_INCLUDES = \
53         cfile.h                 \
54         color.h                 \
55         extcap.h                \
56         extcap_parser.h         \
57         file.h                  \
58         fileset.h               \
59         frame_tvbuff.h          \
60         register.h              \
61         version_info.h          \
62         ws_symbol_export.h
63
64 # wireshark specifics
65 WIRESHARK_COMMON_SRC =  \
66         $(SHARK_COMMON_SRC)     \
67         capture_info.c  \
68         capture_opts.c  \
69         color_filters.c \
70         file.c          \
71         fileset.c       \
72         summary.c
73
74 # corresponding headers
75 WIRESHARK_COMMON_INCLUDES =     \
76         capture_info.h  \
77         capture_opts.h  \
78         color_filters.h \
79         globals.h       \
80         log.h           \
81         summary.h       \
82         sync_pipe.h
83
84 # tshark specifics
85 tshark_SOURCES =        \
86         $(SHARK_COMMON_SRC)     \
87         capture_opts.c          \
88         tshark.c
89
90 # tfshark specifics
91 tfshark_SOURCES =       \
92         $(SHARK_COMMON_SRC)     \
93         tfshark.c
94
95 # rawshark specifics
96 rawshark_SOURCES =      \
97         $(SHARK_COMMON_SRC)     \
98         rawshark.c
99
100 # text2pcap specifics
101 text2pcap_SOURCES = \
102         pcapio.c                \
103         text2pcap.c             \
104         text2pcap-scanner.l     \
105         version_info.c
106
107 text2pcap_INCLUDES = \
108         pcapio.h \
109         text2pcap.h
110
111 # mergecap specifics
112 mergecap_SOURCES = \
113         mergecap.c      \
114         version_info.c
115
116 # editcap specifics
117 editcap_SOURCES = \
118         editcap.c       \
119         version_info.c
120
121 # reordercap specifics
122 reordercap_SOURCES = \
123         reordercap.c    \
124         version_info.c
125
126 # capinfos specifics
127 capinfos_SOURCES = \
128         capinfos.c      \
129         version_info.c
130
131 # captype specifics
132 captype_SOURCES = \
133         captype.c       \
134         version_info.c
135
136 # dftest specifics
137 dftest_SOURCES =        \
138         dftest.c
139
140 # randpkt specifics
141 randpkt_SOURCES = \
142         randpkt.c
143
144 # dumpcap specifics
145 dumpcap_SOURCES =       \
146         capture_opts.c  \
147         capture_stop_conditions.c       \
148         conditions.c    \
149         dumpcap.c       \
150         pcapio.c        \
151         ringbuffer.c    \
152         sync_pipe_write.c       \
153         version_info.c
154
155 # corresponding headers
156 dumpcap_INCLUDES = \
157         capture_stop_conditions.h       \
158         conditions.h    \
159         pcapio.h        \
160         ringbuffer.h
161
162 # this target needed for distribution only
163 noinst_HEADERS =        \
164         $(SHARK_COMMON_INCLUDES) \
165         $(WIRESHARK_COMMON_INCLUDES) \
166         $(dumpcap_INCLUDES)