Fix parallel compilation (sometimes it failed because of wrong order in lex/yacc)

next
Michael Stapelberg 2010-03-02 12:56:45 +01:00
parent 818e02ef35
commit c9c068c36c
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ loglevels.h:
done; \
echo "};") > include/loglevels.h;
src/cfgparse.yy.o: src/cfgparse.l ${HEADERS}
src/cfgparse.yy.o: src/cfgparse.l src/cfgparse.y.o ${HEADERS}
echo "LEX $<"
flex -i -o$(@:.o=.c) $<
$(CC) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/cfgparse.l/ { print NR }' loglevels.tmp))" -c -o $@ $(@:.o=.c)