tcpdump/libpcap: correctly declare dependency between lex/yacc

* Previously, debugging jam, it would output a warning along the
  lines of 'warning: using independent target ... grammar.c'. To
  fix the dependency, it needs to be declared from object file
  to the generated source file.
* With the correct dependency (scanner.o on grammar.c), this
  warning is eliminated, and the dependency graph shown is now
  correct
* This should address #4091
This commit is contained in:
Jessica Hamilton
2014-10-21 12:57:20 +00:00
parent 2ee31eefd5
commit 724f1f573e
+3 -2
View File
@@ -27,5 +27,6 @@ StaticLibrary libpcap.a :
version.c
;
# scanner.l includes the generated grammar.h
Includes [ FGristFiles scanner.l ] : [ FGristFiles grammar.h ] ;
# scanner.l includes the generated grammar.h, but we need to
# declare the dependency from .o to .c
Depends [ FGristFiles scanner.o ] : [ FGristFiles grammar.c ] ;