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.
This commit is contained in:
Andrew Johnson
2011-09-01 11:46:54 -05:00
parent dbaa045afc
commit 098f7ce850

View File

@@ -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