makefile: parser/lexer also depend on header files
This commit is contained in:
parent
79a4e30488
commit
01297af20a
4
Makefile
4
Makefile
|
@ -44,12 +44,12 @@ loglevels.h:
|
||||||
done; \
|
done; \
|
||||||
echo "};") > include/loglevels.h;
|
echo "};") > include/loglevels.h;
|
||||||
|
|
||||||
src/cfgparse.yy.o: src/cfgparse.l
|
src/cfgparse.yy.o: src/cfgparse.l ${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)
|
||||||
|
|
||||||
src/cfgparse.y.o: src/cfgparse.y
|
src/cfgparse.y.o: src/cfgparse.y ${HEADERS}
|
||||||
echo "YACC $<"
|
echo "YACC $<"
|
||||||
bison --debug --verbose -b $(basename $< .y) -d $<
|
bison --debug --verbose -b $(basename $< .y) -d $<
|
||||||
$(CC) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/cfgparse.y/ { print NR }' loglevels.tmp))" -c -o $@ $(<:.y=.tab.c)
|
$(CC) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/cfgparse.y/ { print NR }' loglevels.tmp))" -c -o $@ $(<:.y=.tab.c)
|
||||||
|
|
Loading…
Reference in New Issue