CFLAGS =  -O -I../include -DBINARY -DREAL=double 
objects = DCEL.o GrahamHull.o Triangulate.o storage.o k-Dtree.o
pgms = Delaunay Delaunay
all: Delaunay

DCEL.o: DCEL.c DCEL.h

GrahamHull.o: GrahamHull.c GrahamHull.h DCEL.h

Delaunay: Delaunay.o GrahamHull.o DCEL.o storage.o null.o k-Dtree.o
	cc ${CFLAGS} -o Delaunay Delaunay.o GrahamHull.o null.o \
			DCEL.o storage.o k-Dtree.o \
			-lrle -lgl_s -lc_s -lm -lrle

install : ${pgms} ${objects}
	cp  ${pgms} ${objects} ..

clean :
	rm -f  ${pgms} *.o a.out core
