|
|
1.1 ! root 1: # Makefile for bison ! 2: ! 3: NPROC=2 ! 4: ! 5: DESTDIR= ! 6: # where the installed binary goes ! 7: BINDIR = $DESTDIR/usr/bin ! 8: ! 9: # where the parsers go ! 10: PARSERDIR = $DESTDIR/usr/lib ! 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 ! 18: ! 19: PFILES = -DXPFILE=\"$PARSERDIR/${PFILE}\" \ ! 20: -DXPFILE1=\"$PARSERDIR/${PFILE1}\" ! 21: ! 22: OBJECTS = LR0.o allocate.o closure.o conflicts.o derives.o files.o \ ! 23: getargs.o gram.o lalr.o \ ! 24: lex.o main.o nullable.o output.o print.o reader.o symtab.o \ ! 25: warshall.o ! 26: ! 27: start:N: bison ! 28: ! 29: clean: ! 30: rm -f *.o core bison ! 31: ! 32: BINS=$BINDIR/bison $PARSERDIR/$PFILE1 $PARSERDIR/$PFILE ! 33: install:V: $BINS ! 34: $BINDIR/bison: bison ! 35: cp bison $target; chmod 775 $target; strip -g $target ! 36: $PARSERDIR/%: % ! 37: cp $prereq $target ! 38: ship:V: shipped ! 39: shipped: $BINS ! 40: ship $newprereq && touch shipped ! 41: ! 42: bison: $OBJECTS ! 43: $CC $LDFLAGS -o bison $OBJECTS ! 44: ! 45: dist: bison-dist.tar bison-dist.tar.Z ! 46: ! 47: bison-dist.tar: ! 48: tar cvf bison-dist.tar \ ! 49: COPYING Makefile REFERENCES bison.1 bison.simple bison.hairy \ ! 50: LR0.c allocate.c closure.c conflicts.c \ ! 51: derives.c files.c getargs.c gram.c lalr.c lex.c main.c \ ! 52: nullable.c output.c print.c reader.c symtab.c warshall.c \ ! 53: files.h gram.h lex.h machine.h new.h state.h symtab.h types.h \ ! 54: bison.cld build.com vmsgetargs.c vmshlp.mar ! 55: bison-dist.tar.Z: bison-dist.tar ! 56: compress < bison-dist.tar > bison-dist.tar.Z ! 57: ! 58: # This file is different to pass the parser file names ! 59: # to the compiler. ! 60: files.o: files.c files.h new.h gram.h ! 61: $CC -c $CFLAGS $PFILES files.c ! 62: ! 63: LR0.o: machine.h new.h gram.h state.h ! 64: closure.o: machine.h new.h gram.h ! 65: conflicts.o: machine.h new.h files.h gram.h state.h ! 66: derives.o: new.h types.h gram.h ! 67: getargs.o: files.h ! 68: lalr.o: machine.h types.h state.h new.h gram.h ! 69: lex.o: files.h symtab.h lex.h ! 70: main.o: machine.h ! 71: nullable.o: types.h gram.h new.h ! 72: output.o: machine.h new.h files.h gram.h state.h ! 73: print.o: machine.h new.h files.h gram.h state.h ! 74: reader.o: files.h new.h symtab.h lex.h gram.h ! 75: symtab.o: new.h symtab.h gram.h ! 76: warshall.o: machine.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.