diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-03-26 10:48:38 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-03-26 10:48:38 +0000 |
commit | ed3ecc443b2bca8fbe139045764c55dd24a53e81 (patch) | |
tree | a9362912509dd7ad03887c481d8d83253c840660 /plugins | |
parent | be4b443f107a7f1bef30db1b04b3fd3d36db7cdc (diff) |
Add rules to build xml_lexer.c, and to remove it with "make distclean",
modeled after the rules in epan/dfilter/Makefile.nmake.
svn path=/trunk/; revision=13919
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/xml/Makefile.nmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/xml/Makefile.nmake b/plugins/xml/Makefile.nmake index a6cac3d87b..9d910c5909 100644 --- a/plugins/xml/Makefile.nmake +++ b/plugins/xml/Makefile.nmake @@ -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 |