SDP: Fix warnings [-Wcast-qual]
[gd/wireshark/.git] / plugins / Makefile.common.inc
1 #
2 # Common definitions for plugin Makefile.common files
3 #
4 # Wireshark - Network traffic analyzer
5 # By Gerald Combs <gerald@wireshark.org>
6 # Copyright 1998 Gerald Combs
7 #
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21
22 #
23 # Source files are divided up along several axes:
24 #
25 # C vs. C++ - this is used on Windows to generated lists of object files
26 # with .c=.obj or .cpp=.obj
27 #
28 # Register vs. non-register - register files are scanned for registration
29 # functions, non-register files aren't.
30 #
31 # Flex-generated, Lemon-generated, and non-generated:
32 #
33 #       we distribute non-generated files, as they're part of the source,
34 #       and distribute Flex-generated files, as we don't require that
35 #       people have Flex installed and don't distribute it ourself and
36 #       thus can't guarantee that we can run Flex in the build process,
37 #       but we don't distribute Lemon-generated files, as we distribute
38 #       Lemon and can run it in the build process;
39 #
40 #       "make maintainer-clean" on UN*X remove all generated files;
41 #
42 #       "make distclean" on UN*X removes Lemon-generated files, as they're
43 #       not in the distribution, but not Flex-generated files, as they
44 #       are in the distribution;
45 #
46 #       "make distclean" on Windows removes both Lemon-generated and
47 #       Flex-generated files, as the Flex-generated files in the
48 #       distribution were generated by Flex on UN*X, and won't compile
49 #       on Windows;
50 #
51 #       Flex-generated files can't be built with full warnings
52 #       turned on, and can't be run through the checkAPI scripts,
53 #       as they generate code that won't pass (we've tweaked
54 #       Lemon to generate code that will pass).
55 #
56
57 #
58 # All source files to be scanned for registration routines.
59 #
60 REGISTER_SRC_FILES = \
61         $(FLEX_GENERATED_REGISTER_C_FILES) \
62         $(FLEX_GENERATED_REGISTER_CPP_FILES) \
63         $(LEMON_GENERATED_REGISTER_C_FILES) \
64         $(LEMON_GENERATED_REGISTER_CPP_FILES) \
65         $(NONGENERATED_REGISTER_C_FILES) \
66         $(NONGENERATED_REGISTER_CPP_FILES)
67
68 #
69 # All distributed source files.
70 #
71 SRC_FILES = \
72         $(FLEX_GENERATED_C_FILES) \
73         $(FLEX_GENERATED_CPP_FILES) \
74         $(NONGENERATED_C_FILES) \
75         $(NONGENERATED_CPP_FILES)
76
77 #
78 # All non-distributed source files.
79 #
80 NODIST_SRC_FILES = \
81         $(LEMON_GENERATED_C_FILES) \
82         $(LEMON_GENERATED_CPP_FILES)
83
84 #
85 # All non-distributed header files.
86 #
87 NODIST_HEADER_FILES = \
88         $(LEMON_GENERATED_HEADER_FILES)
89
90 #
91 # All Flex-generated source files.
92 #
93 FLEX_GENERATED_SRC_FILES = \
94         $(FLEX_GENERATED_C_FILES) \
95         $(FLEX_GENERATED_CPP_FILES)
96
97 #
98 # All Lemon-generated source files.
99 #
100 LEMON_GENERATED_SRC_FILES = \
101         $(LEMON_GENERATED_C_FILES) \
102         $(LEMON_GENERATED_CPP_FILES)
103
104 #
105 # All generated source files.
106 #
107 GENERATED_SRC_FILES = \
108         $(FLEX_GENERATED_SRC_FILES) \
109         $(LEMON_GENERATED_SRC_FILES)
110
111 #
112 # All generated header files.
113 #
114 GENERATED_HEADER_FILES = \
115         $(FLEX_GENERATED_HEADER_FILES) \
116         $(LEMON_GENERATED_HEADER_FILES) 
117
118 #
119 # All "clean" source files; they can be compiled with the regular
120 # warning options, including -Werror with GCC-compatible compilers,
121 # and can be run through checkAPI.  Neither Flex-generated nor
122 # Lemon-generated files can currently be guaranteed to be clean.
123 #
124 CLEAN_SRC_FILES = \
125         $(NONGENERATED_C_FILES) \
126         $(NONGENERATED_CPP_FILES)
127
128 # C source files
129 C_FILES = \
130         $(FLEX_GENERATED_C_FILES) \
131         $(LEMON_GENERATED_C_FILES) \
132         $(NONGENERATED_C_FILES)
133
134 # C++ source files
135 CPP_FILES = \
136         $(FLEX_GENERATED_CPP_FILES) \
137         $(LEMON_GENERATED_CPP_FILES) \
138         $(NONGENERATED_CPP_FILES)