bug fix, ./configure && make dist was broken, hardwire flex

This commit is contained in:
rlar 2010-09-30 20:21:57 +00:00
parent f127c5cfb2
commit 7816052481
4 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,13 @@
2010-09-30 Robert Larice
* src/xspice/cmpp/Makefile.am ,
* src/xspice/cmpp/ifs_lex.l ,
* src/xspice/cmpp/mod_lex.l :
always use flex instead of an arbitrary lex,
use flex specific %options, to clean up the Makefile
don't write the lexer via stdout, to improve gcc warning readability
this works around a bug as well, which caused erronous lexer c files
to be included in the distribution tar ball
============================ Rework-22 ==================================
2010-09-26 Holger Vogt
* .cvsignore: m4 entry removed

View File

@ -6,7 +6,7 @@ EXTRA_DIST = ifs_lex.l mod_lex.l ifs_yacc.h mod_yacc.h
MAINTAINERCLEANFILES = Makefile.in
LEX = @LEX@ -t
LEX = flex
BISON = bison
bin_PROGRAMS = cmpp
@ -17,11 +17,11 @@ cmpp_SOURCES = cmpp.h main.c pp_ifs.c pp_lst.c pp_mod.c read_ifs.c util.c \
mod_lex.o : mod_yacc.h
mod_lex.c : mod_lex.l
$(LEX) -Pmod_yy $< > $@
$(LEX) -o $@ $<
ifs_lex.o : ifs_yacc.h
ifs_lex.c : ifs_lex.l
$(LEX) -i -Pifs_yy $< > $@
$(LEX) -o $@ $<
ifs_yacc.c ifs_yacc.h : ifs_yacc.y
$(BISON) $(BISONFLAGS) -d -o ifs_yacc.c $<

View File

@ -1,3 +1,5 @@
%option case-insensitive
%option prefix="ifs_yy"
%option yylineno
%option noyywrap
%{ /* $Id$ */

View File

@ -1,3 +1,4 @@
%option prefix="mod_yy"
%option yylineno
%option noyywrap
%{ /* $Id$ */