Makes the correct substitutions in lex and yacc generated files.
Fixing includes in dot c files
This commit is contained in:
parent
d30221729f
commit
089965c728
|
@ -3,6 +3,6 @@ libMel_a_SOURCES = time.c driver.c parser_y.y parser_l.l
|
|||
CLEANFILES = parser_y.c parser_y.h parser_l.c
|
||||
|
||||
parser_y.c parser_y.h : $(srcdir)/parser_y.y
|
||||
$(YACC) -d $(YFLAGS) $(srcdir)/parser_y.y && sed -e "s/yy/mvl_y_/g" -e "s/YY/MVL_Y_/g" y.tab.c > parser_y.c && sed -e "s/yy/mvl_y_/g" -e "s/YY/MVL_Y_/g" y.tab.h > parser_y.h
|
||||
$(YACC) -d $(YFLAGS) $(srcdir)/parser_y.y && sed -e "s/yy/edif/g" -e "s/YY/EDIF/g" y.tab.c > parser_y.c && sed -e "s/yy/edif/g" -e "s/YY/EDIF/g" y.tab.h > parser_y.h
|
||||
parser_l.c : $(srcdir)/parser_l.l parser_y.h
|
||||
$(LEX) -t $(srcdir)/parser_l.l | sed -e "s/yy/mvl_y_/g" -e "s/YY/MVL_Y_/g" > parser_l.c
|
||||
$(LEX) -t $(srcdir)/parser_l.l | sed -e "s/yy/edif/g" -e "s/YY/EDIF/g" > parser_l.c
|
||||
|
|
|
@ -21,14 +21,19 @@
|
|||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* @(#) MBK TO EDIF Driver */
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/*version 1.0 : Implemented by Fred Petrot */
|
||||
/*version 1.1 : Extended by Mokhtar Hirech (January, 92) */
|
||||
/*version 1.2 : Extended by Olivier BEAURIN (September, 93) */
|
||||
/*version 1.2 : Extended by Olivier BEAURIN (November, 93) */
|
||||
/*------------------------------------------------------------------------------*/
|
||||
/* $Log: driver.c,v $
|
||||
/* Revision 1.2 2002/03/14 12:36:30 fred
|
||||
/* Makes the correct substitutions in lex and yacc generated files.
|
||||
/* Fixing includes in dot c files
|
||||
/* ---------------------------------------------------------------------*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -23,6 +23,11 @@
|
|||
|
||||
/*
|
||||
* gives time the format edif wants
|
||||
* $Log: time.c,v $
|
||||
* Revision 1.2 2002/03/14 12:36:30 fred
|
||||
* Makes the correct substitutions in lex and yacc generated files.
|
||||
* Fixing includes in dot c files
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
Loading…
Reference in New Issue