home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib6 / v_08_07 / 8n07060c < prev    next >
Encoding:
Text File  |  1995-11-01  |  367 b   |  14 lines

  1.  
  2.         .l.c:
  3.                 lex $(LFLAGS) $*.l
  4.                 cat lex.hdr > $*.lex.c
  5.                 grep -v "^#.*line" lex.yy.c |\
  6.                   sed -e 's/yylex/$*_lex/'\
  7.                       -e 's/yytext/$*_text/'\
  8.                       -e 's/yywrap/$*_wrap/'\
  9.                       >> $*.lex.c
  10.                 rm lex.yy.c
  11.  
  12.         Listing 6
  13.  
  14.