2 # Common definitions for plugin Makefile.common files
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
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.
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.
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.
25 # Source files are divided up along several axes:
27 # C vs. C++ - this is used on Windows to generated lists of object files
28 # with .c=.obj or .cpp=.obj
30 # Register vs. non-register - register files are scanned for registration
31 # functions, non-register files aren't.
33 # Flex-generated, Lemon-generated, and non-generated:
35 # we distribute non-generated files, as they're part of the source,
36 # and distribute Flex-generated files, as we don't require that
37 # people have Flex installed and don't distribute it ourself and
38 # thus can't guarantee that we can run Flex in the build process,
39 # but we don't distribute Lemon-generated files, as we distribute
40 # Lemon and can run it in the build process;
42 # "make maintainer-clean" on UN*X and "nmake maintainer-clean" on
43 # Windows remove all generated files;
45 # "make distclean" on UN*X removes Lemon-generated files, as they're
46 # not in the distribution, but not Flex-generated files, as they
47 # are in the distribution;
49 # "make distclean" on Windows removes both Lemon-generated and
50 # Flex-generated files, as the Flex-generated files in the
51 # distribution were generated by Flex on UN*X, and won't compile
54 # Flex-generated files can't be built with full warnings
55 # turned on, and can't be run through the checkAPI scripts,
56 # as they generate code that won't pass (we've tweaked
57 # Lemon to generate code that will pass).
61 # All source files to be scanned for registration routines.
63 REGISTER_SRC_FILES = \
64 $(FLEX_GENERATED_REGISTER_C_FILES) \
65 $(FLEX_GENERATED_REGISTER_CPP_FILES) \
66 $(LEMON_GENERATED_REGISTER_C_FILES) \
67 $(LEMON_GENERATED_REGISTER_CPP_FILES) \
68 $(NONGENERATED_REGISTER_C_FILES) \
69 $(NONGENERATED_REGISTER_CPP_FILES)
72 # All distributed source files.
75 $(FLEX_GENERATED_C_FILES) \
76 $(FLEX_GENERATED_CPP_FILES) \
77 $(NONGENERATED_C_FILES) \
78 $(NONGENERATED_CPP_FILES)
81 # All non-distributed source files.
84 $(LEMON_GENERATED_C_FILES) \
85 $(LEMON_GENERATED_CPP_FILES)
88 # All non-distributed header files.
90 NODIST_HEADER_FILES = \
91 $(LEMON_GENERATED_HEADER_FILES)
94 # All Flex-generated source files.
96 FLEX_GENERATED_SRC_FILES = \
97 $(FLEX_GENERATED_C_FILES) \
98 $(FLEX_GENERATED_CPP_FILES)
101 # All Lemon-generated source files.
103 LEMON_GENERATED_SRC_FILES = \
104 $(LEMON_GENERATED_C_FILES) \
105 $(LEMON_GENERATED_CPP_FILES)
108 # All generated source files.
110 GENERATED_SRC_FILES = \
111 $(FLEX_GENERATED_SRC_FILES) \
112 $(LEMON_GENERATED_SRC_FILES)
115 # All generated header files.
117 GENERATED_HEADER_FILES = \
118 $(FLEX_GENERATED_HEADER_FILES) \
119 $(LEMON_GENERATED_HEADER_FILES)
122 # All "clean" source files; they can be compiled with the regular
123 # warning options, including -Werror with GCC-compatible compilers,
124 # and can be run through checkAPI. Neither Flex-generated nor
125 # Lemon-generated files can currently be guaranteed to be clean.
128 $(NONGENERATED_C_FILES) \
129 $(NONGENERATED_CPP_FILES)
133 $(FLEX_GENERATED_C_FILES) \
134 $(LEMON_GENERATED_C_FILES) \
135 $(NONGENERATED_C_FILES)
139 $(FLEX_GENERATED_CPP_FILES) \
140 $(LEMON_GENERATED_CPP_FILES) \
141 $(NONGENERATED_CPP_FILES)