2 # Common definitions for plugin Makefile.common files
4 # Wireshark - Network traffic analyzer
5 # By Gerald Combs <gerald@wireshark.org>
6 # Copyright 1998 Gerald Combs
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.
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.
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.
23 # Source files are divided up along several axes:
25 # C vs. C++ - this is used on Windows to generated lists of object files
26 # with .c=.obj or .cpp=.obj
28 # Register vs. non-register - register files are scanned for registration
29 # functions, non-register files aren't.
31 # Flex-generated, Lemon-generated, and non-generated:
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;
40 # "make maintainer-clean" on UN*X remove all generated files;
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;
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
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).
58 # All source files to be scanned for registration routines.
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)
69 # All distributed source files.
72 $(FLEX_GENERATED_C_FILES) \
73 $(FLEX_GENERATED_CPP_FILES) \
74 $(NONGENERATED_C_FILES) \
75 $(NONGENERATED_CPP_FILES)
78 # All non-distributed source files.
81 $(LEMON_GENERATED_C_FILES) \
82 $(LEMON_GENERATED_CPP_FILES)
85 # All non-distributed header files.
87 NODIST_HEADER_FILES = \
88 $(LEMON_GENERATED_HEADER_FILES)
91 # All Flex-generated source files.
93 FLEX_GENERATED_SRC_FILES = \
94 $(FLEX_GENERATED_C_FILES) \
95 $(FLEX_GENERATED_CPP_FILES)
98 # All Lemon-generated source files.
100 LEMON_GENERATED_SRC_FILES = \
101 $(LEMON_GENERATED_C_FILES) \
102 $(LEMON_GENERATED_CPP_FILES)
105 # All generated source files.
107 GENERATED_SRC_FILES = \
108 $(FLEX_GENERATED_SRC_FILES) \
109 $(LEMON_GENERATED_SRC_FILES)
112 # All generated header files.
114 GENERATED_HEADER_FILES = \
115 $(FLEX_GENERATED_HEADER_FILES) \
116 $(LEMON_GENERATED_HEADER_FILES)
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.
125 $(NONGENERATED_C_FILES) \
126 $(NONGENERATED_CPP_FILES)
130 $(FLEX_GENERATED_C_FILES) \
131 $(LEMON_GENERATED_C_FILES) \
132 $(NONGENERATED_C_FILES)
136 $(FLEX_GENERATED_CPP_FILES) \
137 $(LEMON_GENERATED_CPP_FILES) \
138 $(NONGENERATED_CPP_FILES)