Linking in C++ mode

2002-11-09 Thread John Levon
We have a C program which links to a C++ library, and we need to tell automake to do the link in C++ mode to avoid undefined references to the C++ standard library. How can we do it ? The Makefile.am looks as follows : ---snip--- dist_sources = oprofiled.c opd_stats.c opd_kernel.c opd_image.c o

Re: LEX & YACC support

2002-11-09 Thread Alexandros Karypidis
Just a clarification. I am asking if there is a "smart" way to do this with Makefile.am, with "smart" meaning something which does not "manually" do this. For example, evidently the dumbest way would be: INCLUDES = $(all_includes) bin_PROGRAMS = mysh wfssh_SOURCES = mysh.h mysh.c parser.y scan

LEX & YACC support

2002-11-09 Thread Alexandros Karypidis
Hi all, I am unsatisfied with the "Makefile.am" I have built, due to the fact that whenever I change my bison file to add a %token, I have to run make TWICE to get a correct build. This is because the header file with token declarations which is generated when yacc is run, also affects the lex