Problem:
I have a project that I am migrating from Solaris / Lex / Yacc to Linux / Flex / Bison + Autotools. I am facing the following problem, and I am wondering if anyone knows how to get around it. For this purpose (only the necessary details are included):
bin_PROGRAMS=my_prog
my_prog_YFLAGS=-d
my_prog_SOURCES=\
main.cpp \
parser.ypp \
scanner.lpp
Automake generates the following source files from lpp and ypp:
- scanner.lpp -> scanner.cpp (according to Automake manual)
- parser.ypp - > my_prog -parser.cpp and my_prog -parser.h (why?)
Attempted Solution:
bison -b -o . , automake, -, (parser.tab.c) script. , , automake , .
- -, ?