#
#  Makefile for the old flood fill algorithm (slightly incorrect).  Here
# it is used for markPoly.m
#
#  This requires Matlab-cmex and the C math library.
#
#  This file is for a SUN Sparc class machine.  See MakefileHP for
#  HP-PA architecture.
#
# DATE:  03.29.96
#

# Set for gcc on SunOs 4.1.3
#
CC = gcc
CFLAGS = -c -DNDEBUG 

#  You may need to adjust these paths
#
INC = -I/usr/local/matlab/extern/include
LIB = -L/usr/local/lib
CMEX = /usr/local/matlab/bin/cmex

all:  mrManifoldDistance.mex4


mrManifoldDistance.mex4: cityheap.o cityheap.h mrManifoldDistance.c
	$(CC) $(CFLAGS) $(INC) $(LIB)  mrManifoldDistance.c
	$(CMEX) mrManifoldDistance.o cityheap.o /usr/lib/libm.a
	mv mrManifoldDistance.mex4 ..


cityheap.o: cityheap.h cityheap.c
	$(CC) $(CFLAGS) $(INC) $(LIB) cityheap.c


