
# Use these two lines for Sun compiling
#MACHINE = SUN3
#machine = sun3

# Use these two lines for Iris compiling
MACHINE = IRIS
machine = iris

############################################################################

AARG_DIR = /usr/local/lib
LIBS = /u/graphics/lib/$(machine)/cheyenne.a $(AARG_DIR)/libaa.i.a
LINT_LIBS = /u/graphics/lib/lint/$(machine)/llib-lcheyenne.ln

SRC = delaunay.c storage.c geom.c manip.c merge.c output.c sort.c vector.c vor.c voronoi.c my_cy.c traverse.c changes.c areas.c
OBJ = delaunay.o storage.o geom.o manip.o merge.o output.o sort.o vector.o vor.o voronoi.o my_cy.o traverse.o changes.o areas.o

LFLAGS = -I/u/share/include -I/u/graphics/include -D$(MACHINE) -I$(AARG_DIR)
CFLAGS = $(LFLAGS)
#CFLAGS = -g -Bstatic $(LFLAGS)

vor:	$(OBJ) 
	cc -o vor $(CFLAGS) $(OBJ) $(LIBS) -I/u/pixar/include -lm 

lint	: $(SRC)
	lint $(LFLAGS) $(SRC) $(LINT_LIBS) > lint.errs

#$(OBJ) : defines.h

clean:
	rm -f $(OBJ) vor
