home *** CD-ROM | disk | FTP | other *** search
Makefile | 1989-01-01 | 2.7 KB | 94 lines | [TEXT/Earl] |
- # Makefile for bison--MPW version by Earle Horton
- #
- # MPW Makefiles have the Macintosh extended-character-set
- # characters '╢' and '─' in them. These must be
- # converted to ASCII prior to uploading, and back to Macintosh
- # prior to use. BinHexed shell scripts, "makemac" and
- # "makeunix" are provided for this purpose.
- #
- # May 1988
-
- DESTDIR=
- # where the installed binary goes
- BINDIR = {mpw}tools:
-
- # where the parsers gofi
- PARSERDIR = {clibraries}
-
- # names of parser files
- PFILE = bison.simple
- PFILE1 = bison.hairy
-
- # It is unwise ever to compile a program without symbols.
- CFLAGS = --n -Dmacintosh -e 800 -Dgetc=agetc -Dputc=aputc -DB16
-
- PFILES = -DXPFILE=╢"{PFILE}╢" -DXPFILE1=╢"{PFILE1}╢"
-
- LDFLAGS = -lmpw -lshcroot -lc
-
- OBJECTS = LR0.o allocate.o closure.o conflicts.o derives.o files.o ╢
- getargs.o gram.o lalr.o ╢
- lex.o main.o nullable.o output.o print.o reader.o symtab.o ╢
- warshall.o getopt.o alloca.o
- #
-
- start ─ bison
-
- clean ─
- delete -i ┼.o bison
-
- install ─ bison
- duplicate bison {BINDIR}bison
- duplicate {PFILE} {PARSERDIR}{PFILE}
- duplicate {PFILE1} {PARSERDIR}{PFILE1}
-
- bison ─ {OBJECTS}
- ln -o bison {OBJECTS} {LDFLAGS}
- delete -i ctmp
-
- 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
-
- .o ─ .c
- Cc {default}.c {CFLAGS} -o {default}.asm -A
- as {default}.asm -o {default}.o -ZAP
-
- alloca.o ─ alloca.s
- as alloca.s -o alloca.o
-
- # This file is different to pass the parser file names
- # to the compiler.
- files.o ─ files.c files.h new.h gram.h
- Cc files.c {CFLAGS} {PFILES} -o files.asm -A
- as files.asm -o files.o -ZAP
-
- LR0.o ─ machine.h new.h gram.h state.h
- closure.o ─ machine.h new.h gram.h
- conflicts.o ─ machine.h new.h files.h gram.h state.h
- derives.o ─ new.h types.h gram.h
- getargs.o ─ files.h
- lalr.o ─ machine.h types.h state.h new.h gram.h
- lex.o ─ files.h symtab.h lex.h
- main.o ─ machine.h
- nullable.o ─ types.h gram.h new.h
- output.o ─ machine.h new.h files.h gram.h state.h
- print.o ─ machine.h new.h files.h gram.h state.h
- reader.o ─ files.h new.h symtab.h lex.h gram.h
- symtab.o ─ new.h symtab.h gram.h
- warshall.o ─ machine.h
- gram.o ─ gram.h
-