reverse part of jmayer's last patch to make tethereal build again
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 21 Jul 2004 09:00:56 +0000 (09:00 +0000)
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 21 Jul 2004 09:00:56 +0000 (09:00 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11456 f5534014-38df-0310-8fa8-9805f1628bb7

Makefile.am

index da53843ec4981d191fa51995a0fc8bd2a9c377e5..37d06b30355740b475b14a17403286f8c8f65375 100644 (file)
@@ -311,6 +311,24 @@ SUFFIXES = .sh
        rm -f $@ $@.tmp
        $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
 
+#
+# Build "tethereal-tap-register.c", which contains a function
+# "register_all_tap_listeners()"
+# that calls the register routines for all tehtereal tap listeners.
+#
+# We do this by grepping through sources.
+#
+# Formatting conventions:  The name of the tap_listener_register_*
+# routines must start in column zero, or must be preceded only by
+# "void " starting in column zero, and must not be inside #if.
+#
+# The first argument is the directory in which the source files live.
+# All subsequent arguments are the files to scan.
+#
+tethereal-tap-register.c: $(TETHEREAL_TAP_SRC) $(srcdir)/make-tapreg-dotc
+       @echo Making tethereal-tap-register.c
+       @$(srcdir)/make-tapreg-dotc tethereal-tap-register.c $(srcdir) $(TETHEREAL_TAP_SRC)
 ps.c: print.ps rdps
        ./rdps $(srcdir)/print.ps ps.c