home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / lang / bison.sit / makefile.mpw < prev    next >
Encoding:
Makefile  |  1988-11-19  |  2.5 KB  |  88 lines  |  [TEXT/Earl]

  1. # Makefile for bison--MPW version by Earle Horton
  2. #
  3. # May 1988
  4.  
  5. DESTDIR=
  6. # where the installed binary goes
  7. BINDIR = {mpw}tools:
  8.  
  9. # where the parsers go
  10. PARSERDIR = {clibraries}
  11.  
  12. # names of parser files
  13. PFILE = bison.simple
  14. PFILE1 = bison.hairy
  15.  
  16. # It is unwise ever to compile a program without symbols.
  17. CFLAGS = -g -DB32
  18. C = {mpw}tools:c    # MPW C compiler.  I keep Aztec C somewhere else.
  19.  
  20. .c.o    ─    .c
  21.     {C} {default}.c {CFLAGS} -o {default}.c.o -s {default}
  22.  
  23. PFILES = -DXPFILE=╢"{PFILE}╢" -DXPFILE1=╢"{PFILE1}╢"
  24.  
  25. LDFLAGS =     -d -b -c 'MPS ' -t MPST ╢
  26.         "{CLibraries}stubs.c.o" ╢
  27.         "{CLibraries}"CRuntime.o ╢
  28.         "{CLibraries}"StdCLib.o ╢
  29.         "{CLibraries}"CInterface.o ╢
  30.         "{CLibraries}"CSANElib.o
  31.  
  32. OBJECTS = LR0.c.o allocate.c.o closure.c.o conflicts.c.o derives.c.o files.c.o    ╢
  33.       getargs.c.o gram.c.o lalr.c.o                    ╢
  34.       lex.c.o main.c.o nullable.c.o output.c.o print.c.o reader.c.o symtab.c.o    ╢
  35.       warshall.c.o getopt.c.o alloca.a.o
  36. #      
  37.  
  38. start    ─ bison
  39.  
  40. clean    ─
  41.     delete -i ┼.o bison
  42.  
  43. install    ─ bison
  44.     duplicate bison {BINDIR}bison
  45.     duplicate  {PFILE} {PARSERDIR}{PFILE}
  46.     duplicate  {PFILE1} {PARSERDIR}{PFILE1}
  47.  
  48. bison    ─ {OBJECTS}
  49.     Link {LDFLAGS} -o bison {OBJECTS}
  50.  
  51. dist    ─    bison-dist.tar bison-dist.tar.Z
  52.  
  53. # Tar is presently Gail Zacharias' mtar port to MPW.
  54. # Syntax is different, and this command creates a UNIX
  55. # tar archive with newlines in it rather than carriage-returns.
  56. bison-dist.tar    ─
  57.     mtar -vu -f bison-dist.tar ╢
  58.         COPYING Makefile REFERENCES bison.1 bison.simple bison.hairy ╢
  59.         LR0.c allocate.c closure.c conflicts.c ╢
  60.         derives.c files.c getargs.c gram.c lalr.c lex.c main.c ╢
  61.         nullable.c output.c print.c reader.c symtab.c warshall.c ╢
  62.         files.h gram.h lex.h machine.h new.h state.h symtab.h types.h ╢
  63.         bison.cld build.com vmsgetargs.c vmshlp.mar getopt.c ╢
  64.         alloca.a Makefile.MPW Makefile.UNIX makemac.Hqx makeunix.Hqx
  65. bison-dist.tar.Z    ─ bison-dist.tar
  66.     maccompress bison-dist.tar
  67.  
  68. # This file is different to pass the parser file names
  69. # to the compiler.
  70. files.c.o    ─ files.c files.h new.h gram.h
  71.     {C} {CFLAGS} {PFILES} files.c
  72.  
  73. LR0.c.o    ─ machine.h new.h gram.h state.h
  74. closure.c.o    ─ machine.h new.h gram.h
  75. conflicts.c.o    ─ machine.h new.h files.h gram.h state.h
  76. derives.c.o    ─ new.h types.h gram.h
  77. getargs.c.o    ─ files.h
  78. lalr.c.o    ─ machine.h types.h state.h new.h gram.h
  79. lex.c.o    ─ files.h symtab.h lex.h
  80. main.c.o    ─ machine.h
  81. nullable.c.o    ─ types.h gram.h new.h
  82. output.c.o    ─ machine.h new.h files.h gram.h state.h
  83. print.c.o    ─ machine.h new.h files.h gram.h state.h
  84. reader.c.o    ─ files.h new.h symtab.h lex.h gram.h
  85. symtab.c.o    ─ new.h symtab.h gram.h
  86. warshall.c.o    ─ machine.h
  87. gram.c.o    ─ gram.h
  88.