Fix parallel compilation (sometimes it failed because of wrong order in lex/yacc)
This commit is contained in:
parent
818e02ef35
commit
c9c068c36c
2
Makefile
2
Makefile
|
@ -44,7 +44,7 @@ loglevels.h:
|
||||||
done; \
|
done; \
|
||||||
echo "};") > include/loglevels.h;
|
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 $<"
|
echo "LEX $<"
|
||||||
flex -i -o$(@:.o=.c) $<
|
flex -i -o$(@:.o=.c) $<
|
||||||
$(CC) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/cfgparse.l/ { print NR }' loglevels.tmp))" -c -o $@ $(@:.o=.c)
|
$(CC) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/cfgparse.l/ { print NR }' loglevels.tmp))" -c -o $@ $(@:.o=.c)
|
||||||
|
|
Loading…
Reference in New Issue