CC =		lc
CFLAGS =	-damiga

.c.o:
		$(CC) $(CFLAGS) $*.c

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

CFILES =	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 =		Makefile files.h gram.h lex.h machine.h new.h state.h \
		symtab.h types.h

start :		bison calc

bison :		$(OBJECTS)
		blink with bison.lnk

calc :		calc.c
		lc -L calc.c

calc.c :	calc.y
		bison calc.y
		rename calc.tab.c calc.c
