Add a HACK patch for building a patched kerberos library
[metze/wireshark/wip.git] / plugins / Makefile.common.inc
1 #
2 # Common definitions for plugin Makefile.common files
3 #
4 # $Id$
5 #
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
9 #
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.
14 #
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.
19 #
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.
23
24 #
25 # Source files are divided up along several axes:
26 #
27 # C vs. C++ - this is used on Windows to generated lists of object files
28 # with .c=.obj or .cpp=.obj
29 #
30 # Register vs. non-register - register files are scanned for registration
31 # functions, non-register files aren't.
32 #
33 # Flex-generated, Lemon-generated, and non-generated:
34 #
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;
41 #
42 #       "make maintainer-clean" on UN*X and "nmake maintainer-clean" on
43 #       Windows remove all generated files;
44 #
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;
48 #
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
52 #       on Windows;
53 #
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).
58 #
59
60 #
61 # All source files to be scanned for registration routines.
62 #
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)
70
71 #
72 # All distributed source files.
73 #
74 SRC_FILES = \
75         $(FLEX_GENERATED_C_FILES) \
76         $(FLEX_GENERATED_CPP_FILES) \
77         $(NONGENERATED_C_FILES) \
78         $(NONGENERATED_CPP_FILES)
79
80 #
81 # All non-distributed source files.
82 #
83 NODIST_SRC_FILES = \
84         $(LEMON_GENERATED_C_FILES) \
85         $(LEMON_GENERATED_CPP_FILES)
86
87 #
88 # All non-distributed header files.
89 #
90 NODIST_HEADER_FILES = \
91         $(LEMON_GENERATED_HEADER_FILES)
92
93 #
94 # All Flex-generated source files.
95 #
96 FLEX_GENERATED_SRC_FILES = \
97         $(FLEX_GENERATED_C_FILES) \
98         $(FLEX_GENERATED_CPP_FILES)
99
100 #
101 # All Lemon-generated source files.
102 #
103 LEMON_GENERATED_SRC_FILES = \
104         $(LEMON_GENERATED_C_FILES) \
105         $(LEMON_GENERATED_CPP_FILES)
106
107 #
108 # All generated source files.
109 #
110 GENERATED_SRC_FILES = \
111         $(FLEX_GENERATED_SRC_FILES) \
112         $(LEMON_GENERATED_SRC_FILES)
113
114 #
115 # All generated header files.
116 #
117 GENERATED_HEADER_FILES = \
118         $(FLEX_GENERATED_HEADER_FILES) \
119         $(LEMON_GENERATED_HEADER_FILES) 
120
121 #
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.
126 #
127 CLEAN_SRC_FILES = \
128         $(NONGENERATED_C_FILES) \
129         $(NONGENERATED_CPP_FILES)
130
131 # C source files
132 C_FILES = \
133         $(FLEX_GENERATED_C_FILES) \
134         $(LEMON_GENERATED_C_FILES) \
135         $(NONGENERATED_C_FILES)
136
137 # C++ source files
138 CPP_FILES = \
139         $(FLEX_GENERATED_CPP_FILES) \
140         $(LEMON_GENERATED_CPP_FILES) \
141         $(NONGENERATED_CPP_FILES)