home *** CD-ROM | disk | FTP | other *** search
Makefile | 1988-11-19 | 2.5 KB | 88 lines | [TEXT/Earl] |
- # Makefile for bison--MPW version by Earle Horton
- #
- # May 1988
-
- DESTDIR=
- # where the installed binary goes
- BINDIR = {mpw}tools:
-
- # where the parsers go
- PARSERDIR = {clibraries}
-
- # names of parser files
- PFILE = bison.simple
- PFILE1 = bison.hairy
-
- # It is unwise ever to compile a program without symbols.
- CFLAGS = -g -DB32
- C = {mpw}tools:c # MPW C compiler. I keep Aztec C somewhere else.
-
- .c.o ─ .c
- {C} {default}.c {CFLAGS} -o {default}.c.o -s {default}
-
- PFILES = -DXPFILE=╢"{PFILE}╢" -DXPFILE1=╢"{PFILE1}╢"
-
- LDFLAGS = -d -b -c 'MPS ' -t MPST ╢
- "{CLibraries}stubs.c.o" ╢
- "{CLibraries}"CRuntime.o ╢
- "{CLibraries}"StdCLib.o ╢
- "{CLibraries}"CInterface.o ╢
- "{CLibraries}"CSANElib.o
-
- OBJECTS = LR0.c.o allocate.c.o closure.c.o conflicts.c.o derives.c.o files.c.o ╢
- getargs.c.o gram.c.o lalr.c.o ╢
- lex.c.o main.c.o nullable.c.o output.c.o print.c.o reader.c.o symtab.c.o ╢
- warshall.c.o getopt.c.o alloca.a.o
- #
-
- start ─ bison
-
- clean ─
- delete -i ┼.o bison
-
- install ─ bison
- duplicate bison {BINDIR}bison
- duplicate {PFILE} {PARSERDIR}{PFILE}
- duplicate {PFILE1} {PARSERDIR}{PFILE1}
-
- bison ─ {OBJECTS}
- Link {LDFLAGS} -o bison {OBJECTS}
-
- dist ─ bison-dist.tar bison-dist.tar.Z
-
- # Tar is presently Gail Zacharias' mtar port to MPW.
- # Syntax is different, and this command creates a UNIX
- # tar archive with newlines in it rather than carriage-returns.
- bison-dist.tar ─
- mtar -vu -f bison-dist.tar ╢
- COPYING Makefile REFERENCES bison.1 bison.simple bison.hairy ╢
- LR0.c allocate.c closure.c conflicts.c ╢
- derives.c files.c getargs.c gram.c lalr.c lex.c main.c ╢
- nullable.c output.c print.c reader.c symtab.c warshall.c ╢
- files.h gram.h lex.h machine.h new.h state.h symtab.h types.h ╢
- bison.cld build.com vmsgetargs.c vmshlp.mar getopt.c ╢
- alloca.a Makefile.MPW Makefile.UNIX makemac.Hqx makeunix.Hqx
- bison-dist.tar.Z ─ bison-dist.tar
- maccompress bison-dist.tar
-
- # This file is different to pass the parser file names
- # to the compiler.
- files.c.o ─ files.c files.h new.h gram.h
- {C} {CFLAGS} {PFILES} files.c
-
- LR0.c.o ─ machine.h new.h gram.h state.h
- closure.c.o ─ machine.h new.h gram.h
- conflicts.c.o ─ machine.h new.h files.h gram.h state.h
- derives.c.o ─ new.h types.h gram.h
- getargs.c.o ─ files.h
- lalr.c.o ─ machine.h types.h state.h new.h gram.h
- lex.c.o ─ files.h symtab.h lex.h
- main.c.o ─ machine.h
- nullable.c.o ─ types.h gram.h new.h
- output.c.o ─ machine.h new.h files.h gram.h state.h
- print.c.o ─ machine.h new.h files.h gram.h state.h
- reader.c.o ─ files.h new.h symtab.h lex.h gram.h
- symtab.c.o ─ new.h symtab.h gram.h
- warshall.c.o ─ machine.h
- gram.c.o ─ gram.h
-