21 lines
618 B
Text
21 lines
618 B
Text
|
Newer bison includes the defines file in the parser so the name must match.
|
||
|
|
||
|
Index: src/json/Makefile
|
||
|
--- src/json/Makefile.orig
|
||
|
+++ src/json/Makefile
|
||
|
@@ -15,12 +15,8 @@ all: json$(LIBEXT)
|
||
|
json$(LIBEXT): $(OBJ)
|
||
|
$(LINKLIB)
|
||
|
|
||
|
-json_y.tab.cpp: parser.y
|
||
|
- $(YACC) $(YFLAGS) $$flags -pyyjson -d parser.y -o $@
|
||
|
-
|
||
|
-json_y.tab.h: json_y.tab.cpp
|
||
|
- if [ -e json_y.tab.hpp ] ; then mv json_y.tab.hpp $@ ; else \
|
||
|
- mv json_y.tab.cpp.h $@ ; fi
|
||
|
+json_y.tab.cpp json_y.tab.h: parser.y
|
||
|
+ $(YACC) $(YFLAGS) $$flags -pyyjson --defines=json_y.tab.h parser.y -o $@
|
||
|
|
||
|
json_lex.yy.cpp: scanner.l
|
||
|
$(LEX) -Pyyjson -o$@ scanner.l
|