ICMP(v4): Remove proto_tree_add_text
[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 # text2pcap specifics
99 text2pcap_SOURCES = \
100         pcapio.c                \
101         text2pcap.c             \
102         text2pcap-scanner.l
103
104 text2pcap_INCLUDES = \
105         pcapio.h \
106         text2pcap.h
107
108 # mergecap specifics
109 mergecap_SOURCES = \
110         mergecap.c
111
112 # editcap specifics
113 editcap_SOURCES = \
114         editcap.c
115
116 # reordercap specifics
117 reordercap_SOURCES = \
118         reordercap.c
119
120 # capinfos specifics
121 capinfos_SOURCES = \
122         capinfos.c
123
124 # captype specifics
125 captype_SOURCES = \
126         captype.c
127
128 # dftest specifics
129 dftest_SOURCES =        \
130         dftest.c
131
132 # echld specifics
133 echld_test_SOURCES =    \
134         echld_test.c    \
135         capture_opts.c  \
136         capture_stop_conditions.c       \
137         cfile.c         \
138         conditions.c    \
139         pcapio.c        \
140         ringbuffer.c    \
141         sync_pipe_write.c
142
143 # randpkt specifics
144 randpkt_SOURCES = \
145         randpkt.c
146
147 # dumpcap specifics
148 dumpcap_SOURCES =       \
149         capture_opts.c  \
150         capture_stop_conditions.c       \
151         conditions.c    \
152         dumpcap.c       \
153         pcapio.c        \
154         ringbuffer.c    \
155         sync_pipe_write.c
156
157 # corresponding headers
158 dumpcap_INCLUDES = \
159         capture_stop_conditions.h       \
160         conditions.h    \
161         pcapio.h        \
162         ringbuffer.h
163
164 # this target needed for distribution only
165 noinst_HEADERS =        \
166         $(SHARK_COMMON_INCLUDES) \
167         $(WIRESHARK_COMMON_INCLUDES) \
168         $(dumpcap_INCLUDES)