home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / src / lex / makefile.dos < prev    next >
Encoding:
Makefile  |  1997-08-18  |  1.4 KB  |  62 lines  |  [TEXT/R*ch]

  1. # Makefile for the Moscow ML lexer generator
  2.  
  3. INCLUDES=-I ..\compiler
  4. COMPFLAGS=$(INCLUDES)
  5. LINKFLAGS=-g $(INCLUDES)
  6.  
  7. !include "..\makefile.inc"
  8.  
  9. LIBOBJS= \
  10.     list.uo vector.uo array.uo strbase.uo char.uo string.uo stringcvt.uo \
  11.     word.uo word8.uo word8vec.uo word8arr.uo charvect.uo chararra.uo \
  12.     obj.uo basicio.uo nonstdio.uo lexing.uo parsing.uo
  13.  
  14. EXTOBJS= \
  15.     miscsys.uo printexc.uo filename.uo fnlib.uo sort.uo \
  16.     arg.uo hasht.uo
  17.  
  18. OBJS= \
  19.     syntax.uo scan_aux.uo gram_aux.uo grammar.uo scanner.uo \
  20.     lexgen.uo output.uo mainlex.uo
  21.  
  22. all: mosmllex
  23.  
  24. mosmllex: $(OBJS)
  25.     $(MOSMLL) $(LINKFLAGS) -noheader -o mosmllex -files &&|
  26. $(LIBOBJS)
  27. $(EXTOBJS)
  28. $(OBJS)
  29. |
  30.  
  31. clean:
  32.     del *.exe
  33.     del *.ui
  34.     del *.uo
  35.     del mosmllex
  36.     del grammar.sml
  37.     del grammar.sig
  38.     del scanner.sml
  39.     del makefile.bak
  40.  
  41. install:
  42.     $(MOSMLTOOLS)\installb mosmllex $(BINDIR)\mosmllex
  43.  
  44. grammar.sml grammar.sig: grammar.grm
  45.     $(MOSMLYACC) grammar.grm
  46.  
  47. depend: scanner.sml grammar.sml grammar.sig
  48.     del makefile.bak
  49.     ren makefile makefile.bak
  50.         $(MOSMLCUT) < makefile.bak > makefile
  51.         $(MOSMLDEP) >> makefile
  52.  
  53. ### DO NOT DELETE THIS LINE
  54. scanner.uo: scanner.ui syntax.uo scan_aux.uo grammar.ui 
  55. grammar.ui: syntax.uo 
  56. grammar.uo: grammar.ui syntax.uo gram_aux.uo 
  57. output.uo: syntax.uo 
  58. mainlex.uo: scan_aux.uo output.uo grammar.ui syntax.uo lexgen.uo scanner.ui 
  59. lexgen.uo: syntax.uo 
  60. gram_aux.uo: syntax.uo 
  61. scanner.ui: grammar.ui 
  62.