From 098f7ce8501a02a36befaf271c3bbe38d474aa05 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Thu, 1 Sep 2011 11:46:54 -0500 Subject: [PATCH] Update FLEX rules. Use the '-t' option to flex to generate a unique output filename. Needed for parallel builds when multiple lexers are built in the same object directory. --- configure/RULES_BUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure/RULES_BUILD b/configure/RULES_BUILD index 5e1f4ce1f..9636d6e47 100644 --- a/configure/RULES_BUILD +++ b/configure/RULES_BUILD @@ -237,10 +237,10 @@ YACCOPT ?= $($*_YACCOPT) %.h : %.c %.y %.c: %.l - @$(RM) lex.yy.c - $(LEX) $(LEXOPT) $< + @$(RM) $*.yy.c + $(LEX) $(LEXOPT) -t $< > $*.yy.c @$(RM) $@ - $(MV) lex.yy.c $@ + $(MV) $*.yy.c $@ # WIN95/NT source browser ifdef BAF