# The master makefile for the atree package

VPATH = examples

OBJECTS = atree.o bv.o
LIBS = -lm

#CFLAGS = -O -DNDEBUG
CFLAGS = -g

all : lf examples

lf : lf.o synan.o $(OBJECTS)
	$(CC) -o lf $(CFLAGS) lf.o synan.o $(OBJECTS) $(LIBS)

examples::
	(cd examples; make)

.c.o:
	$(CC) $(CFLAGS) -c $<

synan.c : synan.y atree.h bv.h lf.h
atree.o : atree.c atree.h bv.h
bv.o : bv.h
