|
|
1.1 root 1: # Makefile for bison
2:
3: DESTDIR=
4: # where the installed binary goes
5: BINDIR = $(DESTDIR)/usr/bin
6:
7: # where the parsers go
8: PARSERDIR = $(DESTDIR)/usr/local/lib
9:
10: # names of parser files
11: PFILE = bison.simple
12: PFILE1 = bison.hairy
13:
14: # It is unwise ever to compile a program without symbols.
15: CFLAGS = -g
16:
17: PFILES = -DXPFILE=\"$(PARSERDIR)/$(PFILE)\" \
18: -DXPFILE1=\"$(PARSERDIR)/$(PFILE1)\"
19:
20: OBJECTS = LR0.o allocate.o closure.o conflicts.o derives.o files.o \
21: getargs.o gram.o lalr.o \
22: lex.o main.o nullable.o output.o print.o reader.o symtab.o \
23: warshall.o
24:
25: start: bison
26:
27: clean:
28: rm -f *.o core bison
29:
30: install: bison
31: cp bison $(BINDIR)
32: cp $(PFILE) $(PFILE1) $(PARSERDIR)
33:
34: bison: $(OBJECTS)
35: $(CC) $(LDFLAGS) -o bison $(OBJECTS)
36:
37: dist: bison-dist.tar bison-dist.tar.Z
38:
39: bison-dist.tar:
40: tar cvf bison-dist.tar \
41: COPYING Makefile REFERENCES bison.1 bison.simple bison.hairy \
42: LR0.c allocate.c closure.c conflicts.c \
43: derives.c files.c getargs.c gram.c lalr.c lex.c main.c \
44: nullable.c output.c print.c reader.c symtab.c warshall.c \
45: files.h gram.h lex.h machine.h new.h state.h symtab.h types.h \
46: bison.cld build.com vmsgetargs.c vmshlp.mar
47: bison-dist.tar.Z: bison-dist.tar
48: compress < bison-dist.tar > bison-dist.tar.Z
49:
50: # This file is different to pass the parser file names
51: # to the compiler.
52: files.o: files.c files.h new.h gram.h
53: $(CC) -c $(CFLAGS) $(PFILES) files.c
54:
55: LR0.o: machine.h new.h gram.h state.h
56: closure.o: machine.h new.h gram.h
57: conflicts.o: machine.h new.h files.h gram.h state.h
58: derives.o: new.h types.h gram.h
59: getargs.o: files.h
60: lalr.o: machine.h types.h state.h new.h gram.h
61: lex.o: files.h symtab.h lex.h
62: main.o: machine.h
63: nullable.o: types.h gram.h new.h
64: output.o: machine.h new.h files.h gram.h state.h
65: print.o: machine.h new.h files.h gram.h state.h
66: reader.o: files.h new.h symtab.h lex.h gram.h
67: symtab.o: new.h symtab.h gram.h
68: warshall.o: machine.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.