home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c100 / 4.ddi / BISON.ZIP / MAKEFILE < prev    next >
Encoding:
Text File  |  1990-04-17  |  3.5 KB  |  109 lines

  1. # Makefile for bison
  2. #   Copyright (C) 1984, 1989 Bob Corbett and Free Software Foundation, Inc.
  3. # This file is part of Bison, the GNU Compiler Compiler.
  4. # Bison is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 1, or (at your option)
  7. # any later version.
  8. # Bison is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with Bison; see the file COPYING.  If not, write to
  14. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  15.  
  16. # Modified for Zortech C under MSDOS.  Tim Capps, 4-16-90
  17. # Other than changes to this makefile, all source code uses conditional
  18. # compilation to make this port work.
  19.  
  20. # names of parser files
  21. PFILE = bison.sim
  22. PFILE1 = bison.hai
  23.  
  24. PARSERDIR = \\SYS
  25.  
  26. PFILES = -DXPFILE="$(PARSERDIR)\\$(PFILE)" \
  27.      -DXPFILE1="$(PARSERDIR)\\$(PFILE1)"
  28.  
  29. .c.obj:
  30.  ZTC $* -ml -a -b -c -DZORTECH -DMSDOS -g
  31.  
  32. OBJECTS = LR0.obj allocate.obj alloca.obj closure.obj conflicts.obj \
  33.     derives.obj files.obj getargs.obj gram.obj lalr.obj lex.obj    \
  34.     main.obj nullable.obj output.obj print.obj reader.obj \
  35.     reduce.obj symtab.obj warshall.obj version.obj \
  36.     getopt.obj helper.obj
  37.  
  38. bison: $(OBJECTS)
  39.     link /CO /NOI @BISON.LNK
  40.  
  41. ##
  42. ## We use a linker response file as batch files can't operate the
  43. ## linker in interactive mode, and the command line would be too long
  44. ## for non-interactive mode.
  45. ##
  46. ## Note: fm.lnk is listed to cause fm.lnk to be automatically regenerated
  47. ## whenever this makefile is changed.
  48. ##
  49. ## Also, we use Microsoft's linker, as BLINK has its problems - TCC
  50.  
  51. bison: $(OBJECTS) BISON.LNK
  52.  lINK /CO /NOI @BISON.LNK
  53.  
  54. ##
  55. ## Build the linker response file
  56. ##
  57.  
  58. BISON.LNK : MAKEFILE
  59.  ECHO LR0+ > BISON.LNK
  60.  ECHO allocate+  >> BISON.LNK
  61.  ECHO alloca+    >> BISON.LNK
  62.  ECHO closure+   >> BISON.LNK
  63.  ECHO conflicts+ >> BISON.LNK
  64.  ECHO derives+   >> BISON.LNK
  65.  ECHO files+     >> BISON.LNK
  66.  ECHO getargs+   >> BISON.LNK
  67.  ECHO gram+      >> BISON.LNK
  68.  ECHO lalr+      >> BISON.LNK
  69.  ECHO lex+       >> BISON.LNK
  70.  ECHO main+      >> BISON.LNK
  71.  ECHO nullable+  >> BISON.LNK
  72.  ECHO output+    >> BISON.LNK
  73.  ECHO print+     >> BISON.LNK
  74.  ECHO reader+    >> BISON.LNK
  75.  ECHO reduce+    >> BISON.LNK
  76.  ECHO symtab+    >> BISON.LNK
  77.  ECHO warshall+  >> BISON.LNK
  78.  ECHO helper+    >> BISON.LNK
  79.  ECHO version+   >> BISON.LNK
  80.  ECHO getopt     >> BISON.LNK
  81.  ECHO BISON      >> BISON.LNK
  82.  ECHO NUL.MAP,,  >> BISON.LNK
  83.  
  84. # This file is different to pass the parser file names
  85. # to the compiler.
  86. files.obj: files.c files.h new.h gram.h
  87.     ZTC files -ml -a -b -c -DZORTECH -DMSDOS $(CFLAGS) $(PFILES) -g
  88.  
  89. LR0.obj: machine.h new.h gram.h state.h
  90. closure.obj: machine.h new.h gram.h
  91. conflicts.obj: machine.h new.h files.h gram.h state.h
  92. derives.obj: new.h types.h gram.h
  93. getargs.obj: files.h
  94. lalr.obj: machine.h types.h state.h new.h gram.h
  95. lex.obj: files.h symtab.h lex.h
  96. main.obj: machine.h
  97. nullable.obj: types.h gram.h new.h
  98. output.obj: machine.h new.h files.h gram.h state.h
  99. print.obj: machine.h new.h files.h gram.h state.h
  100. reader.obj: files.h new.h symtab.h lex.h gram.h
  101. reduce.obj: files.h new.h machine.h gram.h
  102. symtab.obj: new.h symtab.h gram.h
  103. warshall.obj: machine.h
  104.  
  105.