aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/Makefile.am.inc
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2016-06-21 05:06:23 +0100
committerJoão Valverde <j@v6e.pt>2016-06-30 11:04:17 +0000
commita16d401b25c85ffb7fde6c46b51cb7048112f885 (patch)
tree71ba692edcdb6f2a10ed566e18bcfbbc456cfad1 /plugins/Makefile.am.inc
parentf6c5cf953212248cbc680ef0d9b2f852cbfdb951 (diff)
Remove Makefile.common files
Now that nmake build system has been removed they are not needed anymore. Change-Id: I88075f955bb4349185859c1af4be22e53de5850f Reviewed-on: https://code.wireshark.org/review/16050 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'plugins/Makefile.am.inc')
-rw-r--r--plugins/Makefile.am.inc120
1 files changed, 119 insertions, 1 deletions
diff --git a/plugins/Makefile.am.inc b/plugins/Makefile.am.inc
index 8423121e05..5d905c2840 100644
--- a/plugins/Makefile.am.inc
+++ b/plugins/Makefile.am.inc
@@ -29,6 +29,124 @@ PLUGIN_CFLAGS =
PLUGIN_LDFLAGS = -module -avoid-version
#
+# Source files are divided up along several axes:
+#
+# C vs. C++ - this is used on Windows to generated lists of object files
+# with .c=.obj or .cpp=.obj
+#
+# Register vs. non-register - register files are scanned for registration
+# functions, non-register files aren't.
+#
+# Flex-generated, Lemon-generated, and non-generated:
+#
+# we distribute non-generated files, as they're part of the source,
+# and distribute Flex-generated files, as we don't require that
+# people have Flex installed and don't distribute it ourself and
+# thus can't guarantee that we can run Flex in the build process,
+# but we don't distribute Lemon-generated files, as we distribute
+# Lemon and can run it in the build process;
+#
+# "make maintainer-clean" on UN*X remove all generated files;
+#
+# "make distclean" on UN*X removes Lemon-generated files, as they're
+# not in the distribution, but not Flex-generated files, as they
+# are in the distribution;
+#
+# "make distclean" on Windows removes both Lemon-generated and
+# Flex-generated files, as the Flex-generated files in the
+# distribution were generated by Flex on UN*X, and won't compile
+# on Windows;
+#
+# Flex-generated files can't be built with full warnings
+# turned on, and can't be run through the checkAPI scripts,
+# as they generate code that won't pass (we've tweaked
+# Lemon to generate code that will pass).
+#
+
+#
+# All source files to be scanned for registration routines.
+#
+REGISTER_SRC_FILES = \
+ $(FLEX_GENERATED_REGISTER_C_FILES) \
+ $(FLEX_GENERATED_REGISTER_CPP_FILES) \
+ $(LEMON_GENERATED_REGISTER_C_FILES) \
+ $(LEMON_GENERATED_REGISTER_CPP_FILES) \
+ $(NONGENERATED_REGISTER_C_FILES) \
+ $(NONGENERATED_REGISTER_CPP_FILES)
+
+#
+# All distributed source files.
+#
+SRC_FILES = \
+ $(FLEX_GENERATED_C_FILES) \
+ $(FLEX_GENERATED_CPP_FILES) \
+ $(NONGENERATED_C_FILES) \
+ $(NONGENERATED_CPP_FILES)
+
+#
+# All non-distributed source files.
+#
+NODIST_SRC_FILES = \
+ $(LEMON_GENERATED_C_FILES) \
+ $(LEMON_GENERATED_CPP_FILES)
+
+#
+# All non-distributed header files.
+#
+NODIST_HEADER_FILES = \
+ $(LEMON_GENERATED_HEADER_FILES)
+
+#
+# All Flex-generated source files.
+#
+FLEX_GENERATED_SRC_FILES = \
+ $(FLEX_GENERATED_C_FILES) \
+ $(FLEX_GENERATED_CPP_FILES)
+
+#
+# All Lemon-generated source files.
+#
+LEMON_GENERATED_SRC_FILES = \
+ $(LEMON_GENERATED_C_FILES) \
+ $(LEMON_GENERATED_CPP_FILES)
+
+#
+# All generated source files.
+#
+GENERATED_SRC_FILES = \
+ $(FLEX_GENERATED_SRC_FILES) \
+ $(LEMON_GENERATED_SRC_FILES)
+
+#
+# All generated header files.
+#
+GENERATED_HEADER_FILES = \
+ $(FLEX_GENERATED_HEADER_FILES) \
+ $(LEMON_GENERATED_HEADER_FILES)
+
+#
+# All "clean" source files; they can be compiled with the regular
+# warning options, including -Werror with GCC-compatible compilers,
+# and can be run through checkAPI. Neither Flex-generated nor
+# Lemon-generated files can currently be guaranteed to be clean.
+#
+CLEAN_SRC_FILES = \
+ $(NONGENERATED_C_FILES) \
+ $(NONGENERATED_CPP_FILES)
+
+# C source files
+C_FILES = \
+ $(FLEX_GENERATED_C_FILES) \
+ $(LEMON_GENERATED_C_FILES) \
+ $(NONGENERATED_C_FILES)
+
+# C++ source files
+CPP_FILES = \
+ $(FLEX_GENERATED_CPP_FILES) \
+ $(LEMON_GENERATED_CPP_FILES) \
+ $(NONGENERATED_CPP_FILES)
+
+#
# Build plugin.c, which contains the plugin version[] string, a
# function plugin_register() that calls the register routines for all
# protocols, and a function plugin_reg_handoff() that calls the handoff
@@ -56,7 +174,7 @@ PLUGIN_LDFLAGS = -module -avoid-version
# a plugin.c file for a plugin.
# All subsequent arguments are the files to scan.
#
-plugin.c: $(REGISTER_SRC_FILES) Makefile.common $(top_srcdir)/tools/make-dissector-reg.py
+plugin.c: $(REGISTER_SRC_FILES) $(top_srcdir)/tools/make-dissector-reg.py
@echo Making plugin.c
@$(PYTHON) $(top_srcdir)/tools/make-dissector-reg.py $(srcdir) \
plugin $(REGISTER_SRC_FILES)