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 and "nmake maintainer-clean" on
41 # Windows remove all generated files;
43 # "make distclean" on UN*X removes Lemon-generated files, as they're
44 # not in the distribution, but not Flex-generated files, as they
45 # are in the distribution;
47 # "make distclean" on Windows removes both Lemon-generated and
48 # Flex-generated files, as the Flex-generated files in the
49 # distribution were generated by Flex on UN*X, and won't compile
52 # Flex-generated files can't be built with full warnings
53 # turned on, and can't be run through the checkAPI scripts,
54 # as they generate code that won't pass (we've tweaked
55 # Lemon to generate code that will pass).
59 # All source files to be scanned for registration routines.
61 REGISTER_SRC_FILES = \
62 $(FLEX_GENERATED_REGISTER_C_FILES) \
63 $(FLEX_GENERATED_REGISTER_CPP_FILES) \
64 $(LEMON_GENERATED_REGISTER_C_FILES) \
65 $(LEMON_GENERATED_REGISTER_CPP_FILES) \
66 $(NONGENERATED_REGISTER_C_FILES) \
67 $(NONGENERATED_REGISTER_CPP_FILES)
70 # All distributed source files.
73 $(FLEX_GENERATED_C_FILES) \
74 $(FLEX_GENERATED_CPP_FILES) \
75 $(NONGENERATED_C_FILES) \
76 $(NONGENERATED_CPP_FILES)
79 # All non-distributed source files.
82 $(LEMON_GENERATED_C_FILES) \
83 $(LEMON_GENERATED_CPP_FILES)
86 # All non-distributed header files.
88 NODIST_HEADER_FILES = \
89 $(LEMON_GENERATED_HEADER_FILES)
92 # All Flex-generated source files.
94 FLEX_GENERATED_SRC_FILES = \
95 $(FLEX_GENERATED_C_FILES) \
96 $(FLEX_GENERATED_CPP_FILES)
99 # All Lemon-generated source files.
101 LEMON_GENERATED_SRC_FILES = \
102 $(LEMON_GENERATED_C_FILES) \
103 $(LEMON_GENERATED_CPP_FILES)
106 # All generated source files.
108 GENERATED_SRC_FILES = \
109 $(FLEX_GENERATED_SRC_FILES) \
110 $(LEMON_GENERATED_SRC_FILES)
113 # All generated header files.
115 GENERATED_HEADER_FILES = \
116 $(FLEX_GENERATED_HEADER_FILES) \
117 $(LEMON_GENERATED_HEADER_FILES)
120 # All "clean" source files; they can be compiled with the regular
121 # warning options, including -Werror with GCC-compatible compilers,
122 # and can be run through checkAPI. Neither Flex-generated nor
123 # Lemon-generated files can currently be guaranteed to be clean.
126 $(NONGENERATED_C_FILES) \
127 $(NONGENERATED_CPP_FILES)
131 $(FLEX_GENERATED_C_FILES) \
132 $(LEMON_GENERATED_C_FILES) \
133 $(NONGENERATED_C_FILES)
137 $(FLEX_GENERATED_CPP_FILES) \
138 $(LEMON_GENERATED_CPP_FILES) \
139 $(NONGENERATED_CPP_FILES)