Not all the lex/yacc (flex/bison) targets were using a consistent syntax. This patch fixes that and explicitly serializes the *.c/*.cc and *.h build. Not doing this was causing problem when using make -j. The issue appears to be that if two targets are specified for a rule (e.g. file.cc file.h: file.y) make does not realize they are both built by the same call so the rule is executed twice. Once for the .cc target and once for the .h target. This is not a problem for a serial build. To work around this only use the .c/.cc file in the main target and then make the .h file depend on the .c/.cc file as a sub-target. |
||
|---|---|---|
| .. | ||
| Makefile.in | ||
| cflexor.lex | ||
| cfparse.y | ||
| cfparse_misc.h | ||
| globals.h | ||
| iverilog.man.in | ||
| main.c | ||
| substit.c | ||