Browse Source

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

pre-master-46
rlar 16 years ago
parent
commit
7816052481
  1. 10
      ChangeLog
  2. 6
      src/xspice/cmpp/Makefile.am
  3. 2
      src/xspice/cmpp/ifs_lex.l
  4. 1
      src/xspice/cmpp/mod_lex.l

10
ChangeLog

@ -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

6
src/xspice/cmpp/Makefile.am

@ -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 $<

2
src/xspice/cmpp/ifs_lex.l

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

1
src/xspice/cmpp/mod_lex.l

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

Loading…
Cancel
Save