Add .rc files to the sources to have them included in the build
[metze/wireshark/wip.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 and "nmake maintainer-clean" on
41 #       Windows remove all generated files;
42 #
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;
46 #
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
50 #       on Windows;
51 #
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).
56 #
57
58 #
59 # All source files to be scanned for registration routines.
60 #
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)
68
69 #
70 # All distributed source files.
71 #
72 SRC_FILES = \
73         $(FLEX_GENERATED_C_FILES) \
74         $(FLEX_GENERATED_CPP_FILES) \
75         $(NONGENERATED_C_FILES) \
76         $(NONGENERATED_CPP_FILES)
77
78 #
79 # All non-distributed source files.
80 #
81 NODIST_SRC_FILES = \
82         $(LEMON_GENERATED_C_FILES) \
83         $(LEMON_GENERATED_CPP_FILES)
84
85 #
86 # All non-distributed header files.
87 #
88 NODIST_HEADER_FILES = \
89         $(LEMON_GENERATED_HEADER_FILES)
90
91 #
92 # All Flex-generated source files.
93 #
94 FLEX_GENERATED_SRC_FILES = \
95         $(FLEX_GENERATED_C_FILES) \
96         $(FLEX_GENERATED_CPP_FILES)
97
98 #
99 # All Lemon-generated source files.
100 #
101 LEMON_GENERATED_SRC_FILES = \
102         $(LEMON_GENERATED_C_FILES) \
103         $(LEMON_GENERATED_CPP_FILES)
104
105 #
106 # All generated source files.
107 #
108 GENERATED_SRC_FILES = \
109         $(FLEX_GENERATED_SRC_FILES) \
110         $(LEMON_GENERATED_SRC_FILES)
111
112 #
113 # All generated header files.
114 #
115 GENERATED_HEADER_FILES = \
116         $(FLEX_GENERATED_HEADER_FILES) \
117         $(LEMON_GENERATED_HEADER_FILES) 
118
119 #
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.
124 #
125 CLEAN_SRC_FILES = \
126         $(NONGENERATED_C_FILES) \
127         $(NONGENERATED_CPP_FILES)
128
129 # C source files
130 C_FILES = \
131         $(FLEX_GENERATED_C_FILES) \
132         $(LEMON_GENERATED_C_FILES) \
133         $(NONGENERATED_C_FILES)
134
135 # C++ source files
136 CPP_FILES = \
137         $(FLEX_GENERATED_CPP_FILES) \
138         $(LEMON_GENERATED_CPP_FILES) \
139         $(NONGENERATED_CPP_FILES)