home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_200 / 290_01 / flex.mak < prev    next >
Text File  |  1990-05-14  |  3KB  |  95 lines

  1. #
  2. #    file:        flex.mak
  3. #    purpose:    Make for flex
  4. #    environment:    OS/2 1.2 EE, IBM C/2
  5. #
  6. flex.exe: parse.obj scan.obj flex.lnk
  7. flex.exe: ccl.obj dfa.obj ecs.obj
  8. flex.exe: main.obj misc.obj nfa.obj
  9. flex.exe: sym.obj tblcmp.obj yylex.obj
  10.  link @flex.lnk
  11.  
  12. ccl.obj: flexdef.h ccl.h misc.h
  13. ccl.obj: ccl.c
  14.  cl -c -AL -DLINT_ARGS -W3 -G2 ccl.c
  15.  
  16. dfa.obj: flexdef.h dfa.h misc.h ecs.h
  17. dfa.obj: dfa.c
  18.  cl -c -AL -DLINT_ARGS -W3 -G2 dfa.c
  19.  
  20. ecs.obj: flexdef.h ecs.h
  21. ecs.obj: ecs.c
  22.  cl -c -AL -DLINT_ARGS -W3 -G2 ecs.c
  23.  
  24. main.obj: flexdef.h main.h misc.h nfa.h tblcmp.h ecs.h
  25. main.obj: main.c
  26.  cl -c -AL -DLINT_ARGS -W3 -G2 main.c
  27.  
  28. misc.obj: flexdef.h main.h misc.h main.h parse.h
  29. misc.obj: misc.c
  30.  cl -c -AL -DLINT_ARGS -W3 -G2 misc.c
  31.  
  32. nfa.obj: flexdef.h nfa.h misc.h ecs.h
  33. nfa.obj: nfa.c
  34.  cl -c -AL -DLINT_ARGS -W3 -G2 nfa.c
  35.  
  36. parse.obj: flexdef.h ecs.h nfa.h sym.h ccl.h misc.h
  37. parse.obj: parse.c
  38.  cl -c -AL -DLINT_ARGS -W3 -G2 parse.c
  39.  
  40. scan.obj: skeleton.h misc.h main.h sym.h flexdef.h parse.h sym.h
  41. scan.obj: scan.c
  42.  cl -c -AL -DLINT_ARGS -W3 -G2 scan.c
  43.  
  44. sym.obj: flexdef.h sym.h parse.h misc.h nfa.h
  45. sym.obj: sym.c
  46.  cl -c -AL -DLINT_ARGS -W3 -G2 sym.c
  47.  
  48. tblcmp.obj: flexdef.h main.h misc.h tblcmp.h dfa.h nfa.h ecs.h
  49. tblcmp.obj: tblcmp.c
  50.  cl -c -AL -DLINT_ARGS -W3 -G2 tblcmp.c
  51.  
  52. yylex.obj: flexdef.h parse.h
  53. yylex.obj: yylex.c
  54.  cl -c -AL -DLINT_ARGS -W3 -G2 yylex.c
  55.  
  56. #
  57. #    1989.12.31 - Roberto Artigas Jr
  58. #    -------------------------------
  59. #    P.O. Box 281415
  60. #    Memphis, TN 38168-1415
  61. #    home: 901 - 373 - 4738
  62. #    work: 910 - 762 - 6092
  63. #    -------------------------------
  64. #    The fact that neither of 'parse.y' or 'scan.l' had
  65. #    been run through their respective translations
  66. #    for a while has been corrected. HOWEVER, If you are
  67. #    tempted to fully regenerate all of FLEX, make sure
  68. #    that you HAVE a fully functional set of backups
  69. #    somewhere. If you do maintenance on either of these
  70. #    files and YOU mess it up (WITHOUT a BACKUP) you
  71. #    may put yourself in a bind. I know most of the
  72. #    individuals out in CUG land are carefull. But even
  73. #    GOD (According to GEORGE BURNS) has made mistakes.
  74. #
  75. #    FOR NOW - As a measure of SAFETY for all those
  76. #    wonderfull budding compiler builders (Including
  77. #    myself) these steps are COMMENTED out.
  78. #
  79. #    The ONLY reason I attempted to DO this in the first
  80. #    PLACE is because I needed an OS/2 version of FLEX.
  81. #
  82.  
  83. #    BISON/YACC must generate 'parse.c'
  84. #
  85. #parse.c: parse.y
  86. # bison -ld parse.y -o parse.c
  87.  
  88. #
  89. #    FLEX/LEX must generate 'scan.c'
  90. #
  91. #scan.c: scan.l
  92. # flex -sL scan.l
  93. # rename lexyy.c scan.c
  94.