Add rules to build xml_lexer.c, and to remove it with "make distclean",
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 26 Mar 2005 10:48:38 +0000 (10:48 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 26 Mar 2005 10:48:38 +0000 (10:48 +0000)
modeled after the rules in epan/dfilter/Makefile.nmake.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13919 f5534014-38df-0310-8fa8-9805f1628bb7

plugins/xml/Makefile.nmake

index a6cac3d87be26fc1be8771a6fbcbbd8d40780b5a..9d910c590992b2a762a8a51af7fb5a02e2e8e1a3 100644 (file)
@@ -27,9 +27,20 @@ xml.dll xml.exp xml.lib : $(OBJECTS) $(LINK_PLUGIN_WITH)
 
 !ENDIF
 
+xml_lexer.c : xml_lexer.l
+       $(LEX) -oxml_lexer.c xml_lexer.l
+
 clean:
        rm -f $(OBJECTS) xml.dll xml.exp xml.lib *.pdb
 
+#
+# We remove the generated files with "distclean" because one of them,
+# "xml_lexer.c", needs different #includes for UN*X and Windows
+# (UN*X versions of Flex make it include <unistd.h>, but that's a
+# UN*X-only header), so if you're going to build from source, you need
+# to build "xml_lexer.c" from "xml_lexer.l" with Flex.
+#
 distclean: clean
+       rm -f xml_lexer.c
 
 maintainer-clean: distclean